| Line 23... |
Line 23... |
| 23 |
* Here, we are connecting '/' (base path) to controller called 'Pages',
|
23 |
* Here, we are connecting '/' (base path) to controller called 'Pages',
|
| 24 |
* its action called 'display', and we pass a param to select the view file
|
24 |
* its action called 'display', and we pass a param to select the view file
|
| 25 |
* to use (in this case, /app/View/Pages/home.ctp)...
|
25 |
* to use (in this case, /app/View/Pages/home.ctp)...
|
| 26 |
*/
|
26 |
*/
|
| 27 |
Router::connect('/', array('controller' => 'AppOffers', 'action' => 'index','1985','android'));
|
27 |
Router::connect('/', array('controller' => 'AppOffers', 'action' => 'index','1985','android'));
|
| - |
|
28 |
Router::connect('/:slug1', array('controller' => 'AppOffers', 'action' => 'index'));
|
| 28 |
Router::connect('/:slug1/:slug2', array('controller' => 'AppOffers', 'action' => 'index'));
|
29 |
Router::connect('/:slug1/:slug2', array('controller' => 'AppOffers', 'action' => 'index'));
|
| 29 |
/**
|
30 |
/**
|
| 30 |
* ...and connect the rest of 'Pages' controller's URLs.
|
31 |
* ...and connect the rest of 'Pages' controller's URLs.
|
| 31 |
*/
|
32 |
*/
|
| 32 |
Router::connect('/pages/*', array('controller' => 'pages', 'action' => 'display'));
|
33 |
Router::connect('/pages/*', array('controller' => 'pages', 'action' => 'display'));
|