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
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

 

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.