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

Template path
public templatePath ( mixed $templatePath = false ) : mixed
$templatePath mixed The path of the template to use
Результат mixed
Пример #1
0
 /**
  * Test the custom paths for Templates
  *
  * @dataProvider provider
  */
 public function testCustomTemplatePaths($config)
 {
     $pdf = new CakePdf($config);
     $pdf->viewVars(['post' => 'testing']);
     $pdf->template('view', 'default');
     $pdf->templatePath('Posts/pdf');
     $result = $pdf->output();
     $expected = '<h2>Rendered with default layout</h2>' . "\n" . 'Post data: testing';
     $this->assertEquals($expected, $result);
 }