fixes stuff
This commit is contained in:
parent
08304ab063
commit
f3b1d73296
3
include/controllers/cockpit/cockpit/home/index.php
Normal file
3
include/controllers/cockpit/cockpit/home/index.php
Normal file
@ -0,0 +1,3 @@
|
||||
<?php
|
||||
|
||||
die('default/cockpit');
|
||||
3
include/controllers/cockpit/default/error/index.php
Normal file
3
include/controllers/cockpit/default/error/index.php
Normal file
@ -0,0 +1,3 @@
|
||||
<?php
|
||||
|
||||
die('sss');
|
||||
3
include/controllers/cockpit/default/home/index.php
Normal file
3
include/controllers/cockpit/default/home/index.php
Normal file
@ -0,0 +1,3 @@
|
||||
<?php
|
||||
|
||||
die('cockput/dewhatevfault');
|
||||
@ -27,6 +27,8 @@ class Crunchbutton_App extends Cana_App {
|
||||
break;
|
||||
case 'crunchr.co':
|
||||
case '_DOMAIN_':
|
||||
case 'cockpit.crunchr.co':
|
||||
case 'cockpit._DOMAIN_':
|
||||
$env = 'live';
|
||||
break;
|
||||
case 'beta.crunchr.co':
|
||||
@ -35,6 +37,7 @@ class Crunchbutton_App extends Cana_App {
|
||||
case 'dev.crunchr.co':
|
||||
$env = 'dev';
|
||||
break;
|
||||
case 'cockpit.localhost':
|
||||
case 'crunchbutton.localhost':
|
||||
$env = 'local';
|
||||
break;
|
||||
@ -131,10 +134,17 @@ class Crunchbutton_App extends Cana_App {
|
||||
case 'wenzel.localhost':
|
||||
$domain->theme = 'onebuttonwenzel';
|
||||
break;
|
||||
case 'cockpit.localhost':
|
||||
case 'cockpit.crunchr.co':
|
||||
case 'cockpit._DOMAIN_':
|
||||
$domain->version = 'cockpit';
|
||||
$domain->theme = 'default';
|
||||
break;
|
||||
default:
|
||||
$domain->theme = 'crunchbutton';
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
$config = $this->config();
|
||||
|
||||
@ -288,6 +298,8 @@ class Crunchbutton_App extends Cana_App {
|
||||
} else {
|
||||
$params['layout'] = $this->config()->defaults->layout;
|
||||
}
|
||||
|
||||
print_r($params);
|
||||
|
||||
parent::buildView($params);
|
||||
|
||||
|
||||
@ -964,6 +964,8 @@ class Crunchbutton_Order extends Cana_Table {
|
||||
unset($out['id_user']);
|
||||
unset($out['id']);
|
||||
unset($out['id_order']);
|
||||
|
||||
$out['id'] = $this->uuid;
|
||||
|
||||
$out['_restaurant_name'] = $this->restaurant()->name;
|
||||
$out['user'] = $this->user()->uuid;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user