Permalink
Browse files

Make it work on cake2.x

Using App::uses() instead of require_once to import router.php
  • Loading branch information...
ehthisham committed Apr 30, 2013
1 parent ad54454 commit 32f10dd96d46c23e637faf7bf7bd6ec3a3d21950
Showing with 1 addition and 1 deletion.
  1. +1 −1 named_route.php
View
@@ -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.