Home website design new york | Free Quote website design new york | Call Now 646.657.9323 website design new york
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:32

CakePHP Tip - Creating static page

There 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






CakePHP Tip - Creating static page

, created on Thursday September 22, 2011, 6:32, article tagged with keywords: CakePHP, php developer, php, website,
Tags: CakePHP, php developer, php, website,

CakePHP Tip - Creating static page

, related articles:
  • 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...
ARCHIVE


Categories:



--


Our Tweets
blue dot When do-it-yourself is the bad choice: 5 items small #business owners should invest in http://t.co/w4lKVxue via @royaldeerdesign
10:30pm May 9, 2012

blue dot How to use social media to increase your profits http://t.co/dBlTUvOb via @royaldeerdesign #business #socialmedia
8:46pm May 5, 2012

blue dot Three factors that determine the cost of an app http://t.co/iA0U31Fs via @royaldeerdesign
11:15am April 29, 2012

blue dot Why A Simplistic Design Is The Best Design http://t.co/3Tvv9avL via @royaldeerdesign
10:38pm April 25, 2012


blue dot follow us on twitter