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;
|
break;
|
||||||
case 'crunchr.co':
|
case 'crunchr.co':
|
||||||
case '_DOMAIN_':
|
case '_DOMAIN_':
|
||||||
|
case 'cockpit.crunchr.co':
|
||||||
|
case 'cockpit._DOMAIN_':
|
||||||
$env = 'live';
|
$env = 'live';
|
||||||
break;
|
break;
|
||||||
case 'beta.crunchr.co':
|
case 'beta.crunchr.co':
|
||||||
@ -35,6 +37,7 @@ class Crunchbutton_App extends Cana_App {
|
|||||||
case 'dev.crunchr.co':
|
case 'dev.crunchr.co':
|
||||||
$env = 'dev';
|
$env = 'dev';
|
||||||
break;
|
break;
|
||||||
|
case 'cockpit.localhost':
|
||||||
case 'crunchbutton.localhost':
|
case 'crunchbutton.localhost':
|
||||||
$env = 'local';
|
$env = 'local';
|
||||||
break;
|
break;
|
||||||
@ -131,11 +134,18 @@ class Crunchbutton_App extends Cana_App {
|
|||||||
case 'wenzel.localhost':
|
case 'wenzel.localhost':
|
||||||
$domain->theme = 'onebuttonwenzel';
|
$domain->theme = 'onebuttonwenzel';
|
||||||
break;
|
break;
|
||||||
|
case 'cockpit.localhost':
|
||||||
|
case 'cockpit.crunchr.co':
|
||||||
|
case 'cockpit._DOMAIN_':
|
||||||
|
$domain->version = 'cockpit';
|
||||||
|
$domain->theme = 'default';
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
$domain->theme = 'crunchbutton';
|
$domain->theme = 'crunchbutton';
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
$config = $this->config();
|
$config = $this->config();
|
||||||
|
|
||||||
$config->host_callback = $host_callback;
|
$config->host_callback = $host_callback;
|
||||||
@ -289,6 +299,8 @@ class Crunchbutton_App extends Cana_App {
|
|||||||
$params['layout'] = $this->config()->defaults->layout;
|
$params['layout'] = $this->config()->defaults->layout;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
print_r($params);
|
||||||
|
|
||||||
parent::buildView($params);
|
parent::buildView($params);
|
||||||
|
|
||||||
return $this;
|
return $this;
|
||||||
|
|||||||
@ -965,6 +965,8 @@ class Crunchbutton_Order extends Cana_Table {
|
|||||||
unset($out['id']);
|
unset($out['id']);
|
||||||
unset($out['id_order']);
|
unset($out['id_order']);
|
||||||
|
|
||||||
|
$out['id'] = $this->uuid;
|
||||||
|
|
||||||
$out['_restaurant_name'] = $this->restaurant()->name;
|
$out['_restaurant_name'] = $this->restaurant()->name;
|
||||||
$out['user'] = $this->user()->uuid;
|
$out['user'] = $this->user()->uuid;
|
||||||
$out['_message'] = nl2br($this->orderMessage('web'));
|
$out['_message'] = nl2br($this->orderMessage('web'));
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user