added support for route filter parameters.

This commit is contained in:
Taylor Otwell
2011-09-30 22:23:47 -05:00
parent 21592ec67f
commit dfe3a04651
2 changed files with 14 additions and 2 deletions

View File

@@ -126,7 +126,9 @@ class Route {
{
if (is_array($this->callback) and isset($this->callback[$name]))
{
return explode(', ', $this->callback[$name]);
$filters = $this->callback[$name];
return (is_string($filters)) ? explode('|', $filters) : $filters;
}
return array();