eg:
function view($id){
$this->data=$this->Item->read(null,$id);
$this->data['Item']['view']+=1;
$this->data['Item']['modified']=false;
$this->Item->save($this->data);
}
function view($id){
$this->data=$this->Item->read(null,$id);
$this->data['Item']['view']+=1;
$this->data['Item']['modified']=false;
$this->Item->save($this->data);
}
App::import('Controller', 'App');
$appController = new AppController();
$appController->constructClasses();
$appController->Session->setFlash('ACCESS DENIED');
$appController->redirect('/');