Jump to content

CakePHP newbie needs help


Lea2

Recommended Posts

hi everyone,

I have to maintain now a website running with CakePHP and I'm totaly lost: A can change now existing pages but I'm not able to add a new one - I made a new .ctp file for the page in views/pages + an entry in the data base ("site_structure") - it doesn't work. What did I do wrong or what is missing.

 

I'm really totally lost!!!!

 

thanks, lea

Link to comment
https://forums.phpfreaks.com/topic/170277-cakephp-newbie-needs-help/
Share on other sites

I don't understand what you mean by inserting an entry into the database.  If the static page is not part of the model/controller then you just use the built in pages controller.

 

So, say your page is named "mypage.ctp" in the pages folder, you would access this page by

 

http://mydomain/pages/mypage

 

You should read a little bit of the documentation. You may want to start with the view and layout documentation http://book.cakephp.org/view/95/View-Templates

 

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.