Esempio n. 1
0
 private function getPartialPath($partial)
 {
     $path = [];
     $partial = ltrim($partial, '/') . '.html.php';
     if (!strpos($partial, '/')) {
         Hash::set($path, 'dir', strtolower(get_class($this)));
         Hash::set($path, 'file', $partial);
     } else {
         $tmp = explode('/', $partial);
         Hash::set($path, 'file', array_pop($tmp));
         Hash::set($path, 'dir', join($tmp));
     }
     return $path;
 }
Esempio n. 2
0
 public function set(array $item, $value)
 {
     Hash::set($this->items, $item, $value);
 }