custom route classes in 2.x?
In routes.php I've changed:
App::import('Lib', 'routes/PageSlugRoute');
to:
App::uses('PageSlugRoute', 'Lib/routes');
My custom class is in app/Lib/routes/PageSlugRoute.php
This throws a warning:
Warning (2): Unknown class passed as parameter
[CORE/Cake/Routing/Router.php, line 255]
Code Context
is_subclass_of - [internal], line ??
Router::connect() - CORE/Cake/Routing/Router.php, line 255
include - APP/Config/routes.php, line 213
etc.
The problem is in is_subclass_of() so I presume that my app::uses() is
incorrect. Can anyone show me an example that works?
--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home