I can't tell anything here as I don't know, anyway I can suggest you to add
xdebug extension to your php development server, then use netbeans or
eclipse to step-by-step follow the execution, so you can see why you have
this behavior.

Before Printing, Think about Your Environmental Responsibility!
Avant d'Imprimer, Pensez à Votre Responsabilitée Environnementale!


On Mon, Jan 4, 2010 at 8:28 PM, Alexandru-Emil Lupu <[email protected]>wrote:

> HI!
> please let me understand something. Not all the config handlers are ran on
> the first app init? i mean this:
>
> I have in a Frontend app 2 modules Foo & Bar which have some configs (view,
> security etc).
> If i would access the homepage, then any of Foo / Bar config files would
> not be cached. Only when i will hit that module, the symfony will config
> cache that module ... right ?
>
> I have fixed my problem, but, only i have override the sfRoutePattern and
> the class that handles the routing (sfRouringConfigCache), and now i get 3
> (expected), but all 3 have the same content, which i don't think is ok...
> Any suggestions ?
>
> Alecs
>
> On Thu, Dec 31, 2009 at 9:54 PM, Alexandru-Emil Lupu <[email protected]
> > wrote:
>
>> HI!
>> I am trying to create a custom handler that would allow me to create
>> routing.yml files inside my each config dir of my app modules.
>> I have tried following things, but none of it worked:
>>
>> Phase 1:
>>
>> I have created a file called: config_handlers.yml file in my
>> apps/frontend/config dir with following content:
>>
>> modules/*/config/routing.yml:
>>   class:    sfRoutingConfigHandler
>>
>> I have modified the "sfRoutingConfigHandler" execute method and added an
>> print_r($configFiles); but only the maiin config routing.yml is shown.
>>
>>
>> Phase 2:
>>
>> I have moved the config_handlers.yml file to project/config/ dir, but this
>> also did not worked.
>>
>> Phase 3:
>>
>> I have altered the content of the config_handlers.yml file and i have
>> modified the content to:
>>
>> modules/*/config/routing.yml:
>>   class:    sfModuleRoutingConfigHandler
>>
>> Issue 1:
>>
>> Class sfModuleRoutingConfigHandler not found. (i have made a workaround by
>> adding a require in order to include it.
>>
>> Issue 2:
>>
>> Method execute of the sfModuleRoutingConfigHandler is not being executed.
>>
>> <?php
>>
>> class sfModuleRoutingConfigHandler extends sfYamlConfigHandler
>> {
>>   public function execute($configFiles)
>>   {
>>     print_r($configFiles);
>>   }
>> }
>>
>>
>>
>> Now i am asking:
>>
>> Is it a bug?
>> There is any support for it? As the file seems to be added as instance but
>> not included into the execution stream.
>> What i am doing wrong ?
>>
>> Thanks.
>> Alecs
>>
>> --
>> Have a nice day!
>> Alecs
>>
>> As programmers create bigger & better idiot proof programs, so the
>> universe creates bigger & better idiots!
>> I am on web:  http://www.alecslupu.ro/
>> I am on twitter: http://twitter.com/alecslupu
>> I am on linkedIn: http://www.linkedin.com/in/alecslupu
>> Tel: (+4)0748.543.798
>>
>>
>
>
> --
> Have a nice day!
> Alecs
>
> As programmers create bigger & better idiot proof programs, so the universe
> creates bigger & better idiots!
> I am on web:  http://www.alecslupu.ro/
> I am on twitter: http://twitter.com/alecslupu
> I am on linkedIn: http://www.linkedin.com/in/alecslupu
> Tel: (+4)0748.543.798
>
>  --
> You received this message because you are subscribed to the Google Groups
> "symfony users" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<symfony-users%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en.
>

--

You received this message because you are subscribed to the Google Groups 
"symfony users" 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-users?hl=en.


Reply via email to