rendered paste body<?php
class AppController extends Controller {
var $components = array('Session', 'Acl', 'Auth');
var $helpers = array('Session', 'Html', 'Form');
function beforeFilter() {
//Configure AuthComponent
$this->Auth->authorize = 'actions';
$this->Auth->loginAction = array('controller' => 'users', 'action' => 'login');
$this->Auth->logoutRedirect = array('controller' => 'users', 'action' => 'logout');
$this->Auth->autoRedirect = false;
$this->Auth->actionPath = 'controllers/';
$latestPage = 1;
$this->set('latest_page', $latestPage); // this is for the view, I know it is not for the extended controller
}
}
?>
<?php
class FepagesController extends AppController {
//var $name = 'Pages';
var $uses = null;
function beforeFilter() {
parent::beforeFilter();
$this->Auth->allowedActions = array('*');
}
function latest() {
echo(parent::$latestPage);
}
}
?>