Saturday, September 27, 2008

Re: Fatal error: Class 'Dispatcher' not found - please help

Oh, got it kind of working, the workaround was quite strange however:

//this must be set on home.pl
if (strpos('example.com', $_SERVER['SERVER_NAME']) !== false) {
ini_set('include_path', '/app/..:/app:.');
define('APP_PATH', '/app');
define('CORE_PATH', '/');

}

around line 77 in app/webroot/index.php. Maybe that will save someone
hours of debugging.

The strpos check is there only to allow running dev version on a
separate domain where cake works fine...

Regards,
Piotr
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
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?hl=en
-~----------~----~----~----~------~----~------~--~---

No comments: