I'm redesigning site that use CakePHP, and till now everything goes well because I just update pages, change content of page already set, but now I need new page... And I don't know how to add...
There is a page that have layout that I need on my new page, site now use link like: http://site.com/pages/30, but I want to create new page that use same layout ( same top/bottom headers, same panel on right side, everything to be as it is, but just to change main part of page, and create NEW ( not change this one ) link http://site.com/logo
I know PHP perfectly, but this CakePHP is killing me... It's very difficult to work with CakePHP when you know PHP, it's totally different point of view but almost same thing...
I already have code for that middle part created, but I need to create this new link, use layout from this page, and insert it...
Can anyone help me with creating this?
If you can write step-by-step how to do this, I will really appreciate that... Where can I find files that control this, how to add new, and etc...
Please
In Cakephp you have got layout files (under views/layouts) and this layout file (eg. Default.ctp) is your main template. The view from a controller is loaded in this template.
Link: In Cakephp you can name links under the directory config in the fileroutes.php. Look in this file. It´s very easy.
For new pages you can build for example an article controller where you can create your new pages (with the specific layout file)...
But you can start with the blog tutorial or read the handbook of cakephp.