On Mon, Feb 20, 2012 at 6:08 PM, Tilen Majerle <[email protected]> wrote:
> because your PageSlugRoute has to be extended from CakeRoute :)
It is. I should have mentioned that.
class PageSlugRoute extends CakeRoute
I've been trying to debug how class loading is supposed to work. I
adjusted App::load()
public static function load($className) {
if (!isset(self::$_classMap[$className])) {
return false;
}
echo ": ${className} :";
I have to echo because debug() won't be available. I then added to
Router::connect()
if (isset($options['routeClass'])) {
$routeClass = $options['routeClass'];
debug($routeClass);
This gives me:
: Configure :: Cache :: FileEngine :: ErrorHandler :: Dispatcher ::
CakeRequest :: CakeResponse :: Inflector :: Router :: CakeRoute :
lib/Cake/Routing/Router.php (line 256)
PageSlugRoute
: PageSlugRoute :: Debugger :: Set :: String :
Warning (2): Unknown class passed as parameter
etc.
So, it seems to be properly loaded when it's needed, but I'm really
not sure where to go from here.
--
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
[email protected] For more options, visit this group at
http://groups.google.com/group/cake-php