Example #1
0
 public function get404()
 {
     $view = $this->getView('Errors::404');
     $layout = $this->getLayout('Default', $view);
     $layout->addBodyClass('error');
     $layout->addArianne(new Link(Translator::get('module_' . $this->response->request->module), UrlFactory::backTo($this->response->request->module)));
     $layout->addArianne(new Link('404'));
 }
Example #2
0
    public function renderHtml()
    {
        ?>
		<form method="post" action="" class="backoffice-crud">
			<?php 
        $this->getFormHtml();
        ?>
			<div class="backoffice-valid">
				<input type="hidden" name="referer" value="<?php 
        echo UrlFactory::backTo($this->module);
        ?>
" />
				<button type="submit"><?php 
        echo Translator::get('module_submit');
        ?>
</button>
				<button type="reset"><?php 
        echo Translator::get('module_reset');
        ?>
</button>
			</div>
		</form>
	<?php 
    }