Lea2 Posted August 14, 2009 Share Posted August 14, 2009 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 More sharing options...
jcombs_31 Posted August 14, 2009 Share Posted August 14, 2009 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 Link to comment https://forums.phpfreaks.com/topic/170277-cakephp-newbie-needs-help/#findComment-898322 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.