cc ?

On Thu, Oct 23, 2008 at 2:23 PM, Olivier Mansour <[EMAIL PROTECTED]> wrote:
> hello
>
> I have a strange issue with, I guess, autoloading
>
> In a filter I have this code :
>
> if ($this->isFirstCall())
> {
>   include_once
> ($this->getContext()->getConfigCache()->checkConfig('config/db_const.yml'));
> }
>
>
> In a plugin, a handler is defined :
> config/db_const.yml:
>   class: dbConstConfigHandler
>
>
> When I use a web controleur with debug set to true (ie, the dev one)
> everthing is ok. With a web controleur with debug set to false (the prod
> one) I have :
> Fatal error: Class 'dbConstConfigHandler' not found in
> /.../cache/frontend/prod/config/config_config_handlers.yml.php on line 25
>
> line 25 is $this->handlers['config/db_const.yml'] = new
> dbConstConfigHandler();
>
> Il I set the prod controler like this :
> <?php
> require_once(dirname(__FILE__).'/../config/ProjectConfiguration.class.php');
> $configuration =
> ProjectConfiguration::getApplicationConfiguration('frontend', 'prod', true);
> sfContext::createInstance($configuration)->dispatch();
>
> it works
>
> any idea ? Is it a bug ?
>
> Thanks
> Olivier
>
>
> --
> Olivier Mansour
> [EMAIL PROTECTED]
> http://www.glagla.org
>
> >
>



-- 
Thomas Rabaix
Internet Consultant

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-devs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to