setOutputMode() 공개 메소드

Set HTML/XHTML output mode (overwrites self::$allowedTags)
public setOutputMode ( $mode ) : void
리턴 void
예제 #1
0
 public function beforeRender()
 {
     //nastaveni spravne cesty k obrazkum pro Texy
     $this->texy->imageModule->root = $this->template->basePath . '/images/';
     $this->texy->setOutputMode(\Texy\Texy::HTML5);
     $this->texy->figureModule->leftClass = 'pull-left';
     $this->texy->figureModule->rightClass = 'pull-right';
     $this->texy->imageModule->leftClass = 'pull-left';
     $this->texy->imageModule->rightClass = 'pull-right';
     $this->template->today = new \Nette\Utils\DateTime();
 }
예제 #2
0
 /**
  * @return Texy
  */
 public static function createTexy()
 {
     $texy = new Texy();
     $texy->encoding = 'utf-8';
     $texy->setOutputMode(Texy::HTML5);
     return $texy;
 }