refactoring routing and adding comments.

This commit is contained in:
Taylor Otwell
2011-08-31 23:51:52 -05:00
parent 30514d9020
commit 5e40e296bd
2 changed files with 43 additions and 19 deletions

View File

@@ -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.
*