Re: Pages without the "pages" in the URL

2008-05-05 Thread basstech
roller' => 'pages', 'action' => > 'display', 'about')); > > In cake 1.1 > $Route->connect('/about', array('controller' => 'pages', 'action' => > 'display', 'about'));

Pages without the "pages" in the URL

2008-05-04 Thread basstech
Is there an easy way to configure my CakePHP app to construct URLs without the "pages/" part in it? For example, if I use the HtmlHelper like so: $html->link('About Me', 'about', null, false, false); Right now, CakePHP constructs the URL "http://domain.name/pages/ about/". I would like this beh

Re: Development/Production setup with databases

2008-05-04 Thread basstech
p I have a few class variables to specify each of my db > setups (staging, qa,production). > > Then in AppModel, I specify $useDbConfig using my constant so that all > my models use the right DB setup. > > -- John > > On May 2, 2008, at 10:19 AM, basstech wrote: > > >

Development/Production setup with databases

2008-05-02 Thread basstech
After reading through the configuration documentation, it is nice that CakePHP supports multiple database configurations. However, I am wondering if there is an easy way to simply "turn on" one configuration over another across the entire application. In the documentation it says: The $default c