I started a project where the previous developer was using CakePHP and they've sent me their files (core and app folders and files). I'm trying to set this project up locally using MAMP to make changes.
I'm also saving my files in dropbox, I don't have any experience with CakePHP but have some knowledge with PHP mostly through WordPress. Not sure where to start.
Thanks!
@summea
Router::parseExtensions('csv');
Router::connect('/', array(
'controller' => 'pages',
'action' => 'view',
'home'
));
/**
* ...and connect the rest of 'Pages' controller's urls.
*/
Router::connect('/pages/*', array(
'controller' => 'pages',
'action' => 'display'
));
Router::connect('/' . Configure::read('Routing.admin') , array(
'controller' => 'statistics',
'action' => 'index',
'prefix' => Configure::read('Routing.admin') ,
'admin' => true
));
Router::connect('/img/*', array(
'controller' => 'attachments',
'action' => 'view'
) , array(
'size' => '(?:[a-zA-Z_]*)*'
));
Router::connect('/files/*', array(
'controller' => 'attachments',
'action' => 'view',
'size' => 'original'
));
Router::connect('/img/*', array(
'controller' => 'attachments',
'action' => 'view',
'size' => 'original'
));
Router::connect('/terms', array(
'controller' => 'pages',
'action' => 'display',
'terms'
));
Router::connect('/new-idea', array(
'controller' => 'ideas',
'action' => 'add'
));