hello there, i'm still trying developing something for my forum and now i am searching to add two mcp modules.
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
here is my code:But it blocks the installation and don't know why. i've searched the wiki, but it reports the example of a single module installation only...the skeleton extension created this one (for only one module but i need two of them):the result i would like to have is in SQL:
|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)
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:
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:
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)
Statistics: Posted by sebo — Sun Mar 10, 2024 8:57 pm