diff --git a/app/Config/routes.php b/app/Config/routes.php
index 1f0dcd9..03eda0f 100755
--- a/app/Config/routes.php
+++ b/app/Config/routes.php
@@ -31,6 +31,10 @@
Router::connect('/agb', array('controller' => 'home', 'action' => 'agb'));
Router::connect('/contact', array('controller' => 'home', 'action' => 'contact'));
+ 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('/profil', array('controller' => 'user', 'action' => 'profil'));
Router::connect('/profil/page/:page', array('controller' => 'user', 'action' => 'profil'),array("page" => "[0-9]+"));
Router::connect('/profil/edit', array('controller' => 'user', 'action' => 'profil_edit'));
diff --git a/app/Controller/Component/empty b/app/Controller/Component/empty
old mode 100755
new mode 100644
diff --git a/app/Model/DreamjobCompany.php b/app/Model/DreamjobCompany.php
index cd46a90..da0ad3c 100755
--- a/app/Model/DreamjobCompany.php
+++ b/app/Model/DreamjobCompany.php
@@ -38,6 +38,19 @@ class DreamjobCompany extends AppModel {
public $displayField = 'djaccount_ptr_id';
+ public function registration($data){
+ $dataSource = $this->getDataSource();
+ $dataSource->begin();
+ if ($result) {
+ $dataSource->commit();
+ return true;
+ } else {
+ $dataSource->rollback();
+ }
+ return false;
+ }
+
+
public function saveSettings($data){
$dataSource = $this->getDataSource();
$dataSource->begin();
diff --git a/app/Model/DreamjobWorker.php b/app/Model/DreamjobWorker.php
index 79a8e8b..5639e78 100755
--- a/app/Model/DreamjobWorker.php
+++ b/app/Model/DreamjobWorker.php
@@ -38,7 +38,19 @@ class DreamjobWorker extends AppModel {
*/
public $displayField = 'djaccount_ptr_id';
-
+ public function registration($data){
+ $dataSource = $this->getDataSource();
+ $dataSource->begin();
+ if ($result) {
+ $dataSource->commit();
+ return true;
+ } else {
+ $dataSource->rollback();
+ }
+ return false;
+ }
+
+
public function saveSettings($data){
$dataSource = $this->getDataSource();
$dataSource->begin();
diff --git a/app/View/Home/home.ctp b/app/View/Home/home.ctp
index c49938f..4d56efc 100755
--- a/app/View/Home/home.ctp
+++ b/app/View/Home/home.ctp
@@ -19,7 +19,7 @@
echo $this->Form->end();
echo "
";
if(!$isLoggedin){
- echo $this->Html->link(__('dreamjob.registration.to'),array('controller'=>'home', 'action'=>'home'),array("class" => "btn btn-primary"));
+ echo $this->Html->link(__('dreamjob.registration.to'),array('controller'=>'registration', 'action'=>'main'),array("class" => "btn btn-primary"));
echo "
";
echo "
";
}
diff --git a/app/View/Layouts/default.ctp b/app/View/Layouts/default.ctp
index afca417..580a314 100755
--- a/app/View/Layouts/default.ctp
+++ b/app/View/Layouts/default.ctp
@@ -14,6 +14,20 @@
?>