public getTemplate ( ) : string | ||
Résultat | string |
public function getTemplate()
{
return $this->template;
}
public function testSetAndGetTemplate() { $f = new Form('/submit', 'post'); $f->setTemplate(__DIR__ . '/../../../../../public/examples/form/form.phtml'); $f->setTemplate('This is the template'); $this->assertEquals('This is the template', $f->getTemplate()); $f->setTemplate(__DIR__ . '/../tmp/access.txt'); $this->assertContains('testuser', $f->getTemplate()); }