Subversion Repositories SmartDukaan

Rev

Rev 15217 | Rev 16709 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
13532 anikendra 1
<?php
2
/**
3
 * Routes configuration
4
 *
5
 * In this file, you set up routes to your controllers and their actions.
6
 * Routes are very important mechanism that allows you to freely connect
7
 * different URLs to chosen controllers and their actions (functions).
8
 *
9
 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
10
 * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
11
 *
12
 * Licensed under The MIT License
13
 * For full copyright and license information, please see the LICENSE.txt
14
 * Redistributions of files must retain the above copyright notice.
15
 *
16
 * @copyright     Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
17
 * @link          http://cakephp.org CakePHP(tm) Project
18
 * @package       app.Config
19
 * @since         CakePHP(tm) v 0.2.9
20
 * @license       http://www.opensource.org/licenses/mit-license.php MIT License
21
 */
22
/**
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
25
 * to use (in this case, /app/View/Pages/home.ctp)...
26
 */
27
	Router::connect('/', array('controller' => 'pages', 'action' => 'display', 'home'));
28
/**
29
 * ...and connect the rest of 'Pages' controller's URLs.
30
 */
31
	Router::connect('/pages/*', array('controller' => 'pages', 'action' => 'display'));
13568 anikendra 32
	Router::connect('/categorydeals/*', array('controller' => 'categories', 'action' => 'deals'));
14928 anikendra 33
	// Router::connect('/deals/*', array('controller' => 'store_products', 'action' => 'mine'));
34
	Router::connect('/deals/*', array('controller' => 'categories', 'action' => 'view',3));
15015 anikendra 35
	Router::connect('/filter/*', array('controller' => 'store_products', 'action' => 'filter'));
16368 anikendra 36
	Router::connect('/skus/filter/*', array('controller' => 'store_products', 'action' => 'skus'));
13579 anikendra 37
	Router::connect('/category/*', array('controller' => 'categories', 'action' => 'view'));
13532 anikendra 38
	Router::connect('/terms', array('controller' => 'sitemaps', 'action' => 'terms'));
39
	Router::connect('/posts/viaweb/*', array('controller' => 'products', 'action' => 'viaweb'));
40
	Router::connect('/privacy', array('controller' => 'sitemaps', 'action' => 'privacy'));
41
	Router::connect('/register', array('controller' => 'users', 'action' => 'register'));
42
	Router::connect('/activate', array('controller' => 'users', 'action' => 'activate'));
43
	Router::connect('/activate/:activation_code', array('controller' => 'users', 'action' => 'activate'), array('pass' => 'activation_code'));
44
	Router::connect('/forgotten_password/:password_reset', array('controller' => 'users', 'action' => 'forgotten_password'), array('pass' => 'password_reset_code'));
45
	Router::connect('/login', array('controller' => 'users', 'action' => 'login'));
13646 anikendra 46
	Router::connect('/admin/users/login', array('controller' => 'users', 'action' => 'login'));
13815 anikendra 47
	Router::connect('/search', array('controller' => 'store_products', 'action' => 'search'));
13699 anikendra 48
	Router::connect('/contactus', array('controller' => 'abouts', 'action' => 'pending'));
13740 anikendra 49
	Router::connect('/mydetails', array('controller' => 'users', 'action' => 'mine'));
14019 anikendra 50
	Router::connect('/mywallet', array('controller' => 'users', 'action' => 'mywallet'));
14891 anikendra 51
	Router::connect('/special/*', array('controller' => 'abouts', 'action' => 'native'));
13762 anikendra 52
	Router::connect('/cashbacks/mine', array('controller' => 'orders', 'action' => 'pendingcashbacks'));
15217 anikendra 53
	Router::connect('/cashbacks/by/*', array('controller' => 'orders', 'action' => 'usercashbacks'));
13532 anikendra 54
/**
55
 * Load all plugin routes. See the CakePlugin documentation on
56
 * how to customize the loading of plugin routes.
57
 */
58
	CakePlugin::routes();
59
 
60
/**
61
 * Load the CakePHP default routes. Only remove this if you do not want to use
62
 * the built-in default routes.
63
 */
64
	require CAKE . 'Config' . DS . 'routes.php';
65
 
66
	Router::mapResources(array('relationships','profiles','users'));
67
	Router::parseExtensions('json');