예제 #1
0
 /**
  * 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'));
 }
예제 #2
0
<?php

\Phalcon\Tag::setDoctype(\Phalcon\Tag::HTML401_STRICT);
?>

예제 #3
0
 protected function initialize()
 {
     Tag::setDoctype(Tag::HTML5);
     Tag::setTitle($this->config->auth->name);
     $this->view->setVar("i18n", $this->_getTranslation());
 }