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; }
public function set(array $item, $value) { Hash::set($this->items, $item, $value); }