dreamjob/app/Config/routes.php

93 lines
5.6 KiB
PHP
Raw Normal View History

2014-02-18 12:10:29 +01:00
<?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' => 'home', 'action' => 'home'));
Router::connect('/login', array('controller' => 'home', 'action' => 'login'));
Router::connect('/logout', array('controller' => 'home', 'action' => 'logout'));
Router::connect('/impressum', array('controller' => 'home', 'action' => 'impressum'));
2014-03-23 10:16:15 +01:00
Router::connect('/agb', array('controller' => 'home', 'action' => 'agb'));
2014-02-18 12:10:29 +01:00
Router::connect('/contact', array('controller' => 'home', 'action' => 'contact'));
2014-04-02 20:37:38 +02:00
Router::connect('/registration', array('controller' => 'registration', 'action' => 'main'));
Router::connect('/registration/user', array('controller' => 'registration', 'action' => 'worker'));
Router::connect('/registration/company', array('controller' => 'registration', 'action' => 'company'));
Router::connect('/registration/active/:code', array('controller' => 'registration', 'action' => 'active'),array("code" => "(?i:code)"));
2014-04-02 20:37:38 +02:00
2014-02-18 12:10:29 +01:00
Router::connect('/profil', array('controller' => 'user', 'action' => 'profil'));
Router::connect('/profil/page/:page', array('controller' => 'user', 'action' => 'profil'),array("page" => "[0-9]+"));
2014-04-01 20:58:36 +02:00
Router::connect('/profil/edit', array('controller' => 'user', 'action' => 'profil_edit'));
Router::connect('/settings', array('controller' => 'user', 'action' => 'settings_account'));
2014-03-26 09:15:43 +01:00
Router::connect('/settings/pages', array('controller' => 'user', 'action' => 'settings_pageInh'));
Router::connect('/settings/pages/:page', array('controller' => 'user', 'action' => 'settings_pageInh'),array("page" => "[0-9]+"));
Router::connect('/settings/isearch', array('controller' => 'user', 'action' => 'settings_isearch'));
2014-03-15 13:56:26 +01:00
2014-02-18 12:10:29 +01:00
Router::connect('/user/:id', array('controller' => 'user', 'action' => 'profil'),array("id" => "[0-9]+"));
Router::connect('/user/:id/page/:page', array('controller' => 'user', 'action' => 'profil'),array("id" => "[0-9]+","page" => "[0-9]+"));
2014-02-19 00:02:17 +01:00
Router::connect('/opening', array('controller' => 'job', 'action' => 'openingList'));
Router::connect('/opening/add', array('controller' => 'job', 'action' => 'openingAdd'));
2014-02-23 09:39:07 +01:00
Router::connect('/opening/edit/:id', array('controller' => 'job', 'action' => 'openingEdit'),array("id" => "[0-9]+"));
2014-02-19 00:02:17 +01:00
Router::connect('/opening/:id', array('controller' => 'job', 'action' => 'openingGet'),array("id" => "[0-9]+"));
Router::connect('/opening/:id/:favorite', array('controller' => 'job', 'action' => 'openingGet'), array("id" => "[0-9]+",'favorite' => '(?i:favorite)'));
Router::connect('/opening/:id/application', array('controller' => 'job', 'action' => 'applicationByOpening'),array("id" => "[0-9]+"));
2014-02-19 00:02:17 +01:00
2014-03-02 11:35:22 +01:00
Router::connect('/application', array('controller' => 'job', 'action' => 'applicationList'));
Router::connect('/application/:id', array('controller' => 'job', 'action' => 'applicationGet'),array("id" => "[0-9]+"));
Router::connect('/application/:id/page/:page', array('controller' => 'job', 'action' => 'applicationGet'),array("id" => "[0-9]+","page" => "[0-9]+"));
2014-03-15 01:52:07 +01:00
Router::connect('/application/:id/curriculum:vitea', array('controller' => 'job', 'action' => 'applicationGet'), array("id" => "[0-9]+",'vitea' => '(?i:vitea)'));
Router::connect('/application/:id/mess:ages', array('controller' => 'job', 'action' => 'applicationGet'), array("id" => "[0-9]+",'ages' => '(?i:ages)'));
Router::connect('/application/:id/arc:hiv', array('controller' => 'job', 'action' => 'applicationGet'), array("id" => "[0-9]+",'hiv' => '(?i:hiv)'));
Router::connect('/applicate/:id', array('controller' => 'job', 'action' => 'applicationSend'),array("id" => "[0-9]+"));
2014-03-02 11:35:22 +01:00
2014-02-19 00:02:17 +01:00
Router::connect('/favorite', array('controller' => 'job', 'action' => 'favorite'));
2014-03-29 21:35:00 +01:00
Router::connect('/search', array('controller' => 'search', 'action' => 'listopening'));
2014-02-18 12:10:29 +01:00
Router::connect('/test/', array('controller' => 'user', 'action' => 'test'));
2014-03-15 01:52:07 +01:00
Router::parseExtensions('json');
Router::connect('/profil/save/cv', array('controller' => 'user', 'action' => 'saveCvJson'));
2014-03-23 10:16:15 +01:00
Router::connect('/settings/pages/delete', array('controller' => 'user', 'action' => 'savePageDeleteJson'));
Router::connect('/settings/pages/order', array('controller' => 'user', 'action' => 'savePageOrder'));
2014-02-18 12:10:29 +01:00
/**
* ...and connect the rest of 'Pages' controller's URLs.
*/
//Router::connect('/pages/*', array('controller' => 'pages', 'action' => 'display'));
/**
* 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';