added uri class. refactored.
This commit is contained in:
@@ -221,7 +221,10 @@ class Route {
|
||||
*/
|
||||
public function __call($method, $parameters)
|
||||
{
|
||||
if (strpos($method, 'is_') === 0) return $this->is(substr($method, 3));
|
||||
if (strpos($method, 'is_') === 0)
|
||||
{
|
||||
return $this->is(substr($method, 3));
|
||||
}
|
||||
|
||||
throw new \Exception("Call to undefined method [$method] on Route class.");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user