Archive for June 12th, 2009

Jun
12
2009

cakePHP: Static page handling tips

You can create static pages in cakePHP by adding .ctp files under /app/views/pages folder and can access it using the URI http://sitename/pages/pagename.ctp.

Try creating two files page1.ctp and page2.ctp and add those files under /app/views/pages folder.

page1.ctp

<h1>Page 1</h1>
<p>Static Content for page 1 goes here</p>

page2.ctp

<h1>Page 1</h1>
<p>Static Content for page 1 goes here</p>

(more…)

  • Share/Save/Bookmark