for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* @author Andrew Coulton <[email protected]>
* @copyright 2015 inGenerator Ltd
* @license http://kohanaframework.org/license
*/
namespace Ingenerator\KohanaView\ViewModel\PageLayout;
use Ingenerator\KohanaView\Exception\UnassignedViewVarException;
use Ingenerator\KohanaView\TemplateSpecifyingViewModel;
class StaticPageContentView extends AbstractPageContentView implements TemplateSpecifyingViewModel
{
protected $variables = [
'page_path' => NULL,
];
* {@inheritdoc}
public function getTemplateName()
if ( ! $this->variables['page_path']) {
throw UnassignedViewVarException::forVariable(static::class, 'page_path', 'name/of/view');
}
return $this->variables['page_path'];