-- Jesse Meek <[EMAIL PROTECTED]> wrote (on Wednesday, 19 September 2007, 07:46 PM +1200): > 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.
Then you're talking about suffixes, not prefixes. You can't have two file suffixes -- the filesystem won't let you. However, you can easily use an alternate suffix. By default, we use the suffix '.phtml'; Apache recognizes this as PHP, and most editors that have syntax highlighting also do as well. However, if you wish to change it, it's fairly easy: // In the bootstrap or a plugin: $viewRenderer = Zend_Controller_Action_HelperBroker::getStaticHelper('viewRenderer'); $viewRenderer->setViewSuffix('html'); // setting suffix to '.html' // In your action controller: $this->_helper->viewRenderer->setViewSuffix('html'); > 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: fw-general@lists.zend.com > 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 > > -- Matthew Weier O'Phinney PHP Developer | [EMAIL PROTECTED] Zend - The PHP Company | http://www.zend.com/