Commit fa1fa876 authored by Taylor Otwell's avatar Taylor Otwell

Rearranged view methods.

parent c688eef3
...@@ -204,17 +204,6 @@ class View { ...@@ -204,17 +204,6 @@ class View {
static::$composers[$module] = (file_exists($composers)) ? require $composers : array(); static::$composers[$module] = (file_exists($composers)) ? require $composers : array();
} }
/**
* Magic Method for handling the dynamic creation of named views.
*/
public static function __callStatic($method, $parameters)
{
if (strpos($method, 'of_') === 0)
{
return static::of(substr($method, 3), $parameters);
}
}
/** /**
* Get the parsed content of the view. * Get the parsed content of the view.
* *
...@@ -265,6 +254,17 @@ class View { ...@@ -265,6 +254,17 @@ class View {
return $this; return $this;
} }
/**
* Magic Method for handling the dynamic creation of named views.
*/
public static function __callStatic($method, $parameters)
{
if (strpos($method, 'of_') === 0)
{
return static::of(substr($method, 3), $parameters);
}
}
/** /**
* Magic Method for getting items from the view data. * Magic Method for getting items from the view data.
*/ */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment