Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to create a static page in cakephp?

Tags:

cakephp

Currently am creating one auction website using cakephp. It have a menu bar like about us, contact us. I have created only the default page. So i want to create those pages. advice me how to create.

like image 323
Rathika Jeganathan Avatar asked Aug 01 '11 10:08

Rathika Jeganathan


1 Answers

Old thread, but I found it while trying to do the same in 2.x.

Jack's answer is correct, with a small typo. It should be

Router::connect('/about', array('controller' => 'pages', 'action' => 'display', 'about'));

Hopefully this helps someone else, as it did me.

like image 171
wordy Avatar answered Sep 28 '22 16:09

wordy