Page 1 of 1
How to make custom pages
Posted: Tue Aug 04, 2009 2:29 am
by Rytis
Hello,
for some reasons I want to make
custom page. But it won't work me. I create files in catalog/view, language, controller, but it drops
Code: Select all
Fatal error: Class 'Controllercommonsutikimas' not found in /var/www/sex/system/engine/front.php on line 39
What I am doing wrong?
Re: How to make custom pages
Posted: Mon Aug 10, 2009 10:20 pm
by npws
I am having this issue, as well.
These are the steps I took to create a new custom page, similar to the "contact" and "information" pages:
1. Make a copy of "controller/information/contact.php", "language/english/information/contact.php" and "view/template/default/information/contact.tpl" and rename each copy from "contact" to "custom".
2. Open the files and replace "information/contact" with "information/custom".
3. Open my OpenCart store and specify "route=information/custom".
These steps result in the same error as the OP of this thread (different route name, same error).
Any help would be much appreciated.
Re: How to make custom pages
Posted: Mon Aug 10, 2009 10:41 pm
by Qphoria
If you want the
custom pages to be in the information sidebox you can just create more information pages.
If you want the
custom pages to be in their own sidebox, you can use codebits Directory Module. It is basically a clone of the information module:
http://forum.opencart.com/viewtopic.php?f=23&t=5481
Re: How to make custom pages
Posted: Tue Aug 11, 2009 12:24 am
by npws
That didn't answer my question at all.... as clearly stated, I am looking to build a new page which I can modify through TPL/PHP files, not through a WYSIWYG editor in the admin panel.
I did, however, get it working by myself. The only thing I forgot to do, was:
In "catalog/controller/information/custom.php" I had to rename the class on Line 2 as "Controllerinformationcustom".
To the OP of this thread, that was most likely your mistake too. Rename that class extender and you should be good to go.