fixing bugs in router.

This commit is contained in:
Taylor Otwell
2012-02-12 19:26:16 -06:00
parent 775b97ee76
commit 74887986a7
3 changed files with 19 additions and 29 deletions

View File

@@ -107,6 +107,8 @@ class Bundle {
*/
public static function routes($bundle)
{
if (static::routed($bundle)) return;
$path = static::path($bundle).'routes'.EXT;
// By setting the bundle property on the router the router knows what
@@ -116,10 +118,10 @@ class Bundle {
if ( ! static::routed($bundle) and file_exists($path))
{
static::$routed[] = $bundle;
require $path;
}
static::$routed[] = $bundle;
}
/**