Hi,
Is there some way to check if some view script (template file) exists?
I would like to do following in my view scripts:
<?php if ($this->scriptExists("subtype_templates/{$this->type}.phtml"): ?>
<?= $this->render("subtype_templates/{$this->type}.phtml") ?>
<?php else: ?>
here is my default template
<?php endif; ?>
br, Marko
--
View this message in context:
http://n4.nabble.com/Check-if-template-exists-in-view-script-tp1013108p1013108.html
Sent from the Zend Framework mailing list archive at Nabble.com.