Exemplo n.º 1
0
 public static function initialize($path)
 {
     Config::setPath($path . 'config/');
     self::$request = Request::instance();
     self::$config = Config::instance();
     self::$store = Store::instance();
 }
Exemplo n.º 2
0
 function get_index()
 {
     $info = Current::config('company');
     if ($this->input) {
         // set null in place of missing values to avoid "Undefined variable" in view.
         $info = $this->input + S::combine(array_keys($info), null);
     }
     $phone = head((array) $info['landline']) ?: head((array) $info['cellular']);
     return (array) $info + array('contactsURL' => null, 'phone' => $phone);
 }
Exemplo n.º 3
0
 static function config($name)
 {
     return Current::config('layouts.', $name);
 }
Exemplo n.º 4
0
 static function fromConfig($name)
 {
     return static::make(Current::config("menu.{$name}"))->name("{$name}");
 }
Exemplo n.º 5
0
 function config($key = null)
 {
     return $key ? Current::config("mail.{$key}") : Current::config('mail');
 }