diff --git a/laravel/view.php b/laravel/view.php index 214d67ac..dc9af0c0 100644 --- a/laravel/view.php +++ b/laravel/view.php @@ -306,13 +306,13 @@ protected function compile() * * * // Add a view instance to a view's data - * $view = View::make('foo')->partial('footer', 'partials.footer'); + * $view = View::make('foo')->nest('footer', 'partials.footer'); * * // Equivalent functionality using the "with" method * $view = View::make('foo')->with('footer', View::make('partials.footer')); * * // Bind a view instance with data - * $view = View::make('foo')->partial('footer', 'partials.footer', array('name' => 'Taylor')); + * $view = View::make('foo')->nest('footer', 'partials.footer', array('name' => 'Taylor')); * * * @param string $key @@ -320,7 +320,7 @@ protected function compile() * @param array $data * @return View */ - public function partial($key, $view, $data = array()) + public function nest($key, $view, $data = array()) { return $this->with($key, $this->factory->make($view, $data)); }