xiaofei_felix Posted March 16, 2012 Share Posted March 16, 2012 When I use the Source code of "Developer Guide", like this: mymodule_page.tpl Welcome to my shop! mymodule_page.php <?php global $smarty; include('../../config/config.inc.php'); include('../../header.php'); $smarty->display(dirname(__FILE__).'/mymodule_page.tpl'); include('../../footer.php'); ?> in prestashop1.4,my "Welcome to my shop!" line neatly placed between header, footer and columns,It is correct. but in prestashop1.5.0.5,my "Welcome to my shop!" shows incorrect,it just placed between header and footer,leftcolumns and rightcolumns is invisible!why the Source code is same,but leftcolumns and rightcolumns don't show?I use the default theme of prestashop1.5.0.5. look at Attach Files who can help me,Thank you very much! Link to comment Share on other sites More sharing options...
Mike Kranzler Posted March 16, 2012 Share Posted March 16, 2012 Hi xiaofei_felix, Is that a screenshot of your 1.4 or 1.5 installation? Can you please post screenshots of both for comparison purposes? -Mike Link to comment Share on other sites More sharing options...
xiaofei_felix Posted March 16, 2012 Author Share Posted March 16, 2012 Thank you very much for your help,it is my screenshot in Prestashop 1.5.0.5,and I give you the source code of module.it is also the source code of Developer Guide("Creating a PrestaShop module"). mymodule.php mymodule_page.php mymodule_page.tpl.txt Link to comment Share on other sites More sharing options...
xiaofei_felix Posted March 19, 2012 Author Share Posted March 19, 2012 someone can help me? please. Link to comment Share on other sites More sharing options...
Samy_R Posted March 19, 2012 Share Posted March 19, 2012 The module pages (aka "module controllers") concept is slightly different in 1.5 : check the bankwire module folder for example to see how it works. Link to comment Share on other sites More sharing options...
Samy_R Posted March 19, 2012 Share Posted March 19, 2012 So, the /modules/mymodule/controllers/display.php file can be reached by /index.php?fc=module&module=mymodule&controller=module URL Link to comment Share on other sites More sharing options...
xiaofei_felix Posted March 19, 2012 Author Share Posted March 19, 2012 PrestaShop Fanatic,Thank you very much ,but can you give me a simple example for 1.5 ,like source code of Developer Guide 1.4("Creating a PrestaShop module"),because now,I can only see document 1.4, I want to konw how can i use module controllers to show my page,is it possible? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now