slam4:php:phalcon:viewhelpers

Ceci est une ancienne révision du document !


View Helpers

La classe Phalcon\Tag fourni un ensemble de méthode facilitant l'écriture des vues, avec phtml ou avec volt.

Définition du doctype dans le contrôleur :

...
public function testAction(){
    $this->tag->setDoctype(\Phalcon\Tag::HTML401_STRICT);
    echo $this->view->render("test");
}

Utilisation du docType dans la vue :

<?php echo $this->tag->getDocType();

  • slam4/php/phalcon/viewhelpers.1420943931.txt.gz
  • Dernière modification : il y a 6 ans
  • (modification externe)