When doing the following, view.yml constraints in neither module a nor b take effect, whilst the ‘all’ config in module a does.
a/actions/actions.class.php
public function executeShow(sfWebRequest $request) {
$this->setTemplate('example', 'b');
}
I have tried the following in both module a and b’s view.yml’s:
showSuccess:
components:
breadcrumbs: [sfDoctrineBreadcrumbs, breadcrumbs]
exampleSuccess:
components:
breadcrumbs: [sfDoctrineBreadcrumbs, breadcrumbs]
Just for completeness, I am trying to override the following in module a:
all:
components:
breadcrumbs: false
Taking out this condition does enable the component for the foreign template, but I’d rather now do this.
The all config of module b is also not applied.
I think it’s already loaded a view.yml at the point you call setTemplate, and don’t think it’ll load a second one.
I’ve used $this->forward instead of setTemplate before to get around the same issue.