tags:

views:

282

answers:

2

It's need for preview function in backend. I want to avoid duplicating templates.

// in some backend module action $this->setTemplate(sfConfig::get('sf_apps_dir').'/frontend/modules/module/templates/tpl'); because context is backend, how about partials in tpl, routes and so forth?

A: 

When you call $this->setTemplate($name), $name refers to the name of a template within the same module. You cannot set templates from other modules using this method.

sjobe
but it works =), if template has't partials. If it has, symfony assumes current context e. g. backend and fails
eldar
Yes you can, sjobe.
Coronatus
A: 

I've found solution for partials: CrossAppPartialView.class.php

eldar