Subversion Repositories SmartDukaan

Rev

Rev 16591 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 16591 Rev 16596
Line 22... Line 22...
22
/**
22
/**
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' => 'pages', 'action' => 'display', 'home'));
27
	Router::connect('/', array('controller' => 'AppOffers', 'action' => 'index','1985','android'));
28
	Router::connect('/:slug1/:slug2', array('controller' => 'AppOffers', 'action' => 'index'));
28
	Router::connect('/:slug1/:slug2', array('controller' => 'AppOffers', 'action' => 'index'));
29
/**
29
/**
30
 * ...and connect the rest of 'Pages' controller's URLs.
30
 * ...and connect the rest of 'Pages' controller's URLs.
31
 */
31
 */
32
	Router::connect('/pages/*', array('controller' => 'pages', 'action' => 'display'));
32
	Router::connect('/pages/*', array('controller' => 'pages', 'action' => 'display'));