or just one line code: Zend_Layout::getMvcInstance()->getView()->doctype(Zend_View_Helper_Doctype::XHTML1_STRICT);
On Wed, Apr 16, 2008 at 6:33 PM, Denis Fohl <[EMAIL PROTECTED]> wrote: > Thank you Vincent, > > that's not exactly what i was looking for but it helps. > > Denis. > > Vincent a écrit : > > > > > > On 4/16/08, *Denis Fohl* <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>> > > wrote: > > > > Hi all, > > > > in comments to this tutorial : > > > > http://codeutopia.net/blog/2008/03/17/introduction-to-zend_layout-updated-for-zf-15/ > > > > Matthew said : "I'd recommend calling the doctype() helper with the > > doctype you want from your bootstrap. " > > > > how to do that ? > > > > > > I currently do it like this: > > > > $viewRenderer = > > Zend_Controller_Action_HelperBroker::getStaticHelper('ViewRenderer'); > > $view = new Zend_View(array('encoding' => 'utf-8')); > > $view->doctype('XHTML1_STRICT'); > > $viewRenderer->setView($view); > > > > Thanks. > > > > -- Denis > > > > > > -- > > Vincent > > > > -- > Denis Fohl > -------------- > df-info > 06 84 38 21 99 > > -- Pagarbiai // Gruß, Vladas Diržys tel.: +370 620 69020 (Omnitel) +370 677 17851 (Tele2) www.dirzys.com
