This commit is contained in:
parent
474f9cfba1
commit
a14438dc78
|
@ -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)'));
|
||||||
|
|
|
@ -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(
|
||||||
|
|
Loading…
Reference in New Issue