public function _init()
{
parent::_init();
/*
*
* if (!Session::read('user'))
$this->redirect('Sessions::add');
alliances::applyFilter('save', function($self, $params, $chain) {
//Temporarily store our entity object so that we can manipulate it
$record = $params['entity'];
//If an id doesn't exist yet, then we know we're saving for the first time. If a
//password is provided, we need to hash it
var_dump($record->foto);
//Write the modified object back to $params
$params['entity'] = $record;
//Allow the next filter to be run
return $chain->next($self, $params, $chain);
});
*
*
*/
}