From 2eeb6361981673dff785dcf3121c7cf34950e390 Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Wed, 28 Sep 2011 23:30:11 -0500 Subject: [PATCH] changed $view->with to $view->nest. --- laravel/view.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 @@ class View { * * * // 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 @@ class View { * @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)); }