Rev 15839 | Blame | Compare with Previous | Last modification | View Log | RSS feed
<?php/*** Routes configuration** In this file, you set up routes to your controllers and their actions.* Routes are very important mechanism that allows you to freely connect* different URLs to chosen controllers and their actions (functions).** CakePHP(tm) : Rapid Development Framework (http://cakephp.org)* Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)** Licensed under The MIT License* For full copyright and license information, please see the LICENSE.txt* Redistributions of files must retain the above copyright notice.** @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)* @link http://cakephp.org CakePHP(tm) Project* @package app.Config* @since CakePHP(tm) v 0.2.9* @license http://www.opensource.org/licenses/mit-license.php MIT License*//*** Here, we are connecting '/' (base path) to controller called 'Pages',* its action called 'display', and we pass a param to select the view file* to use (in this case, /app/View/Pages/home.ctp)...*/Router::connect('/', array('controller' => 'pages', 'action' => 'display','home'));/*** ...and connect the rest of 'Pages' controller's URLs.*///Router::connect('/pages/*', array('controller' => 'pages', 'action' => 'display'));Router::connect('/categorydeals/*', array('controller' => 'categories', 'action' => 'deals'));// Router::connect('/deals/*', array('controller' => 'store_products', 'action' => 'mine'));Router::connect('/deals/*', array('controller' => 'categories', 'action' => 'view',3));Router::connect('/filter/*', array('controller' => 'store_products', 'action' => 'filter'));Router::connect('/category/*', array('controller' => 'categories', 'action' => 'view'));Router::connect('/terms', array('controller' => 'sitemaps', 'action' => 'terms'));Router::connect('/posts/viaweb/*', array('controller' => 'products', 'action' => 'viaweb'));Router::connect('/privacy', array('controller' => 'sitemaps', 'action' => 'privacy'));Router::connect('/register', array('controller' => 'users', 'action' => 'register'));Router::connect('/activate', array('controller' => 'users', 'action' => 'activate'));Router::connect('/activate/:activation_code', array('controller' => 'users', 'action' => 'activate'), array('pass' => 'activation_code'));Router::connect('/forgotten_password/:password_reset', array('controller' => 'users', 'action' => 'forgotten_password'), array('pass' => 'password_reset_code'));Router::connect('/login', array('controller' => 'users', 'action' => 'login'));Router::connect('/admin/users/login', array('controller' => 'users', 'action' => 'login'));Router::connect('/search', array('controller' => 'store_products', 'action' => 'search'));Router::connect('/contactus', array('controller' => 'abouts', 'action' => 'pending'));Router::connect('/mydetails', array('controller' => 'users', 'action' => 'mine'));Router::connect('/mywallet', array('controller' => 'users', 'action' => 'mywallet'));Router::connect('/special/*', array('controller' => 'abouts', 'action' => 'native'));Router::connect('/cashbacks/mine', array('controller' => 'orders', 'action' => 'pendingcashbacks'));Router::connect('/about', array('controller' => 'pages', 'action' => 'display','about'));Router::connect('/faq', array('controller' => 'pages', 'action' => 'display','faq'));Router::connect('/cashbacks/by/*', array('controller' => 'orders', 'action' => 'usercashbacks'));/*** Load all plugin routes. See the CakePlugin documentation on* how to customize the loading of plugin routes.*/CakePlugin::routes();/*** Load the CakePHP default routes. Only remove this if you do not want to use* the built-in default routes.*/require CAKE . 'Config' . DS . 'routes.php';Router::mapResources(array('relationships','profiles','users'));Router::parseExtensions('json');