Arr, sorry I indeed meant SUFFIX. Okay good to know, I've already set it to
.php, just needed to know if I could do two or not. Thanks for all the quick
replies. This is a very live list, I'm recommending it to other developers.
Keep up the good work frameworkers!
Pádraic Brady-2 wrote:
>
> That's the suffix ;)
>
> Zend_View takes a full file name when rendering so it doesn't care about
> what the suffix is. If you do not directly use Zend_View from your
> Controllers then the view template naming is likely controlled by
> Zend_Controller_Action_Helper_ViewRenderer since it's enabled by default.
>
> This contructs the name of a template based on the current
> Controller/Action/Module names. And it defaults to using .phtml as the
> file extension. You can change this (note the change is global unless you
> do it on a per Controller/Action basis) by using the
> Zend_Controller_Action_Helper_ViewRenderer::setViewSuffix() method.
>
> A little code you could use in the bootstrap:
>
> require_once 'Zend/Controller/Action/Helper/ViewRenderer.php';
> $viewRenderer = new Zend_Controller_Action_Helper_ViewRenderer;
> $viewRenderer->setViewSuffix('html');
> Zend_Controller_Action_HelperBroker::addHelper($viewRenderer);
>
> I wrote very quick guide to ViewRenderer a few months ago to make similar
> changes:
> http://blog.astrumfutura.com/archives/290-Having-a-bad-ViewRenderer-day-in-your-ZF-app.html
>
> Pádraic Brady
> http://blog.astrumfutura.com
> http://www.patternsforphp.com
>
>
> ----- Original Message ----
> From: Jesse Meek <[EMAIL PROTECTED]>
> To: Pádraic Brady <[EMAIL PROTECTED]>
> Cc: Zend Framework General <[email protected]>
> Sent: Wednesday, September 19, 2007 8:46:20 AM
> Subject: Re: [fw-general] two view prefixes?
>
> Hi Paddy,
>
> Like .html and .php. The idea is to make it as easy and natural as
> possible for dreamweaver designers and the like to work at the 'view' /
> 'template' level.
>
>
> Cheers,
> Jess
>
> On 19/09/2007, at 7:35 PM, Pádraic Brady wrote:
>
> Hi Jesse,
>
> Can you give an example of what you mean?
>
> In general, the view templates should always follow the same name format
> when they are connected to a specific Controller and Action. However you
> can use any format for view templates you include/render explicitly from
> another view template.
>
> Paddy
>
> Pádraic Brady
> http://blog.astrumfutura.com
> http://www.patternsforphp.com
>
>
> ----- Original Message ----
> From: Waigani <[EMAIL PROTECTED]>
> To: [email protected]
> Sent: Wednesday, September 19, 2007 3:43:37 AM
> Subject: [fw-general] two view prefixes?
>
>
> Hi,
>
> Is it possible to set two different view prefixes?
>
> Thanks,
>
> --
> View this message in context:
> http://www.nabble.com/two-view-prefixes--tf4478451s16154.html#a12769919
> Sent from the Zend Framework mailing list archive at Nabble.com.
>
>
>
>
>
>
>
> Tonight's top picks. What will you watch tonight? Preview the hottest
> shows on Yahoo! TV.
>
> Jesse Meek
> Web Developer
> Division of Health Sciences
> University of Otago
> Dunedin
> New Zealand
>
>
> Tel: +64 3 479 8076
> Email: [EMAIL PROTECTED]
> Web: www.otago.ac.nz/healthsciences
>
>
>
>
>
>
>
>
>
>
>
> ____________________________________________________________________________________
> Catch up on fall's hot new shows on Yahoo! TV. Watch previews, get
> listings, and more!
> http://tv.yahoo.com/collections/3658
>
--
View this message in context:
http://www.nabble.com/two-view-prefixes--tf4478451s16154.html#a12784889
Sent from the Zend Framework mailing list archive at Nabble.com.