Fixes for userguide, added url_resolve to Table()

This commit is contained in:
Deon George
2013-11-08 22:26:58 +11:00
parent 45cadf0945
commit c014a4cec8
3 changed files with 23 additions and 6 deletions

View File

@@ -62,18 +62,18 @@ abstract class lnApp_Controller_TemplateDefault extends Kohana_Controller_Templa
* @uses meta
*/
public function before() {
// Do not template media files
if ($this->request->action() === 'media') {
$this->auto_render = FALSE;
return;
}
// Actions that start with ajax, should only be ajax
if (! Kohana::$config->load('debug')->ajax AND preg_match('/^ajax/',Request::current()->action()) AND ! Request::current()->is_ajax())
throw HTTP_Exception::factory(412,_('Unable to fulfil request.'));
parent::before();
// Do not template media files
if ($this->request->action() === 'media') {
$this->auto_render = FALSE;
return;
}
// Check user auth and role
if ($this->_auth_required()) {
if (PHP_SAPI === 'cli')