Skip to content
Browse files

Make it work on cake2.x

Using App::uses() instead of require_once to import router.php
  • Loading branch information...
1 parent ad54454 commit 32f10dd96d46c23e637faf7bf7bd6ec3a3d21950 @ehthisham committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 named_route.php
View
2 named_route.php
@@ -1,5 +1,5 @@
<?php
-require_once(LIBS . 'router.php');
+App::uses('Router', 'Cake.Routing');
/**
* gets a named param
*

0 comments on commit 32f10dd

Please sign in to comment.
Something went wrong with that request. Please try again.