you want the category stuff on the home page?
You could rename
catalog/controller/home.php to home.php.old
catalog/language/english/controller/home.php to home.php.old
catalog/template/default/content/home.tpl to home.tpl.old
then make a copy of these category files and rename them to "home"
catalog/controller/category.php
catalog/language/english/controller/category.php
catalog/template/default/content/category.tpl
You could rename
catalog/controller/home.php to home.php.old
catalog/language/english/controller/home.php to home.php.old
catalog/template/default/content/home.tpl to home.tpl.old
then make a copy of these category files and rename them to "home"
catalog/controller/category.php
catalog/language/english/controller/category.php
catalog/template/default/content/category.tpl
But if I want to make module which has it's own stuff and includes some other modules, like category? In that way that including modules could be reused in other modules, without writing same code.
Last edited by VrEx on Sat Jan 03, 2009 10:23 pm, edited 1 time in total.
If I understand the OpenCart structure correctly, it basically uses some top-level controllers which can be accessed in the URL as query string arguments, e.g. '?controller=controller&action=whatever', using templates from /catalog/template/default/content/*.tpl, which go into the main content pane of the main layout.tpl. And there are sub-controllers called modules, such as for the cart, currency, footer, header, etc. These are internally invoked from the toplevel-controllers and they use templates from /catalog/template/default/module/*.tpl.
Export/Import Tool * SpamBot Buster * Unused Images Manager * Instant Option Price Calculator * Number Option * Google Tag Manager * Survey Plus * OpenTwig
Who is online
Users browsing this forum: No registered users and 4 guests