Rearranged view methods.
This commit is contained in:
@@ -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 {
|
|||||||
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.
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user