Ok, I've found.
In sfPHPView->configure() there is the call
    require($this->context->getConfigCache()->checkConfig('modules/'.
$this->moduleName.'/config/view.yml'));
where inside you can find some magic behaviors that bring us in a
default view.yml.php where all the view configuration is done with an
include directive.

I didn't gone inside this call because the name checkConfig() told me
that it was a 'check' not an configuration ...

Cheers
cyrille.

On 4 juil, 16:10, Cyrille37 <[email protected]> wrote:
> Hello,
> I go to be mad ... I'would like to find how the template directory is
> set for views. I'm tracing the page request with Eclipse and XDebug
> but where the code could set this directory, it is already set ...
>
> at the end of sfController->getView there is the instanciation of the
> view :
>     return new $class($this->context, $moduleName, $actionName,
> $viewName);
> When I follow this :
>  sfView->__construct(...)
>  sfView->initialize(...)
>  sfPHPView->configure()
>       // set template directory
>     if (!$this->directory)
> I can see that sfPHPView->directory is already set, but I never see
> where and by who ??
>
> Have you got a peace of help for me please ?
>
> Cheers
> cyrille
--~--~---------~--~----~------------~-------~--~----~
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