This commit is contained in:
Martin Müller 2014-04-22 20:50:09 +02:00
parent 474f9cfba1
commit a14438dc78
2 changed files with 14 additions and 0 deletions

View File

@ -58,6 +58,8 @@
Router::connect('/application', array('controller' => 'job', 'action' => 'applicationList')); 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', array('controller' => 'job', 'action' => 'applicationGet'),array("id" => "[0-9]+"));
Router::connect('/application/:id/pdf', array('controller' => 'pdf', 'action' => 'applicationGetPdf'),array("id" => "[0-9]+"));
Router::connect('/application/:id.pdf', array('controller' => 'pdf', 'action' => 'applicationGetPdf'),array("id" => "[0-9]+"));
Router::connect('/application/:id/page/:page', array('controller' => 'job', 'action' => 'applicationGet'),array("id" => "[0-9]+","page" => "[0-9]+")); Router::connect('/application/:id/page/:page', array('controller' => 'job', 'action' => 'applicationGet'),array("id" => "[0-9]+","page" => "[0-9]+"));
Router::connect('/application/:id/curriculum:vitea', array('controller' => 'job', 'action' => 'applicationGet'), array("id" => "[0-9]+",'vitea' => '(?i:vitea)')); 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/mess:ages', array('controller' => 'job', 'action' => 'applicationGet'), array("id" => "[0-9]+",'ages' => '(?i:ages)'));

View File

@ -222,6 +222,18 @@ class DreamjobJobApplication extends AppModel {
'conditions' => array('DreamjobJobOpening.graducation_id = DreamjobListGraducation.id'), 'conditions' => array('DreamjobJobOpening.graducation_id = DreamjobListGraducation.id'),
'limit' => 1 'limit' => 1
), ),
'DreamjobListCity' => array(
'className' => 'DreamjobListCity',
'foreignKey' => false,
'conditions' => array('DreamjobJobOpening.city_id = DreamjobListCity.id'),
'limit' => 1
),
'DreamjobListBranch' => array(
'className' => 'DreamjobListBranch',
'foreignKey' => false,
'conditions' => array('DreamjobJobOpening.branch_id = DreamjobListBranch.id'),
'limit' => 1
)
); );
public $hasAndBelongsToMany = array( public $hasAndBelongsToMany = array(