If i install it via SQL (i've tryed before in xampp PhpMyAdmin) it works.
If i try to install via extension manager it crashes.
so i guess my errors are in the
install_mcp_module.php
here is my code:
Code: Select all
public function update_data()
{
return [
['module.add', [
'mcp',
0,
'MCP_PANDANOTIZIE_TITLE'
]],
['module.add', [
'mcp',
'MCP_PANDANOTIZIE_TITLE',
[
'module_basename' => '\sebo\pandanotizie\mcp\main_module',
'modes' => ['front'],
],
]],
['module.add', [
'mcp',
'MCP_PANDANOTIZIE_TITLE',
[
'module_basename' => '\sebo\pandanotizie\mcp\settings_module',
'modes' => ['settings'],
],
]],
];
}
Code: Select all
public function update_data()
{
return [
['module.add', [
'mcp',
0,
'MCP_PANDANOTIZIE_TITLE'
]],
['module.add', [
'mcp',
'MCP_PANDANOTIZIE_TITLE',
[
'module_basename' => '\sebo\pandanotizie\mcp\main_module',
'modes' => ['front'],
],
]],
];
}
|module_id|module_enabled|module_display|module_basename|module_class|parent_id|left_id|right_id|module_langname|module_mode|module_auth|
|323|1|1|\sebo\pandanotizie\mcp\settings_module|mcp|321|76|77|MCP_PANDANOTIZIE_SETTINGS|settings|ext_sebo/pandanotizie|
|322|1|1|\sebo\pandanotizie\mcp\main_module|mcp|321|74|75|MCP_PANDANOTIZIE|front|ext_sebo/pandanotizie|
|321|1|1|NULL|mcp|0|73|78|MCP_PANDANOTIZIE_TITLE|NULL|NULL|
how can i do it? what's wrong?!
eg. i want the main module in mcp with two subpages:
one front (main)
and one settings (settings one)