refactoring routing and adding comments.
This commit is contained in:
@@ -93,6 +93,18 @@ class View_Factory {
|
||||
$this->composer = $composer;
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a new view instance.
|
||||
*
|
||||
* @param string $view
|
||||
* @param array $data
|
||||
* @return View
|
||||
*/
|
||||
public function make($view, $data = array())
|
||||
{
|
||||
return new View($view, $data, $this->path($view), $this->composer, $this);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a new view instance from a view name.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user