Royal Deer Design, Web Design New York City. We are a web design and internet marketing company located in New York City
Thursday September 22, 2011, 6:32There is an easy way of creating a static page in CakePHP. This tip allows also to create non-authenticated pages among applications that needs authentication.
For the purpose of this example, we will create a static page http://www.yourdomain.com/ about.
1. Go to /app/config/routes.php, and add this line:
Router::connect(‘/about', array(‘controller’ => ‘pages’, ‘action’ => ‘display’, ‘about'));
2. Now, you can create an actual page with a content that you want to display on your new static 'about' page. To do so, copy the file to:
/app/views/pages/about.ctp
Don't forget to save this file with an extension /*.ctp.
3. You can now access this page at http://www.yourdomain.com/about
Tweet
CakePHP Tip - Creating static page
For the purpose of this example, we will create a static page http://www.yourdomain.com/
1. Go to /app/config/routes.php, and add this line:
Router::connect(‘/about', array(‘controller’ => ‘pages’, ‘action’ => ‘display’, ‘about'));
2. Now, you can create an actual page with a content that you want to display on your new static 'about' page. To do so, copy the file to:
/app/views/pages/about.ctp
Don't forget to save this file with an extension /*.ctp.
3. You can now access this page at http://www.yourdomain.com/about
Tweet
- Opera - there are browsers worse than IE | Blog/News | Sunday December 13, 2009 5:00
Few reasons: - problem with displaying images, in... - New York Times will Charge for Online Access | Blog/News | Wednesday January 20, 2010 13:16
The New York Times is going to charge readers for ... - Entrepreneur.com writes about a website from our portfolio! | Blog/News | Saturday January 23, 2010 20:19
Royal Deer Design is working with MV Sport on the ... - Website loading time | Blog/News | Wednesday February 03, 2010 10:47
According to a new study from Gomez (the company w... - Job Search Websites | Blog/News | Saturday February 06, 2010 9:09
Monster Worldwide (the owner of monster.com) had a...
- Website Design | Articles/Encyclopedia | Sunday January 17, 2010 17:44
Web design (Website Design). Web design it is a se... - Bounce Rate | Articles/Encyclopedia | Friday February 26, 2010 21:51
Bounce rate - a phrase used in website site traffi...

When do-it-yourself is the bad choice: 5 items small #business owners should invest in http://t.co/w4lKVxue via @