getTemplate() публичный Метод

Get the form template for the render method to utilize.
public getTemplate ( ) : string
Результат string
Пример #1
0
 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());
 }