Get the form template for the render method to utilize.
public getTemplate ( ) : string | ||
return | string |
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()); }