/** * Tests the tagHtml with name parameter and self close * * @author Nikos Dimopoulos <*****@*****.**> * @since 2013-04-04 */ public function testTagHtmlNameSelfCloseXhtml() { \Phalcon\Tag::setDoctype(\Phalcon\Tag::XHTML10_STRICT); $name = 'img'; $expected = '<img />'; $actual = \Phalcon\Tag::tagHtml($name, null, true); \Phalcon\Tag::setDoctype(''); $this->assertEquals($expected, $actual, sprintf($this->message, 'tagHtml bare')); }
<?php \Phalcon\Tag::setDoctype(\Phalcon\Tag::HTML401_STRICT); ?>
protected function initialize() { Tag::setDoctype(Tag::HTML5); Tag::setTitle($this->config->auth->name); $this->view->setVar("i18n", $this->_getTranslation()); }