public function init() { /* Initialize action controller here */ $this->_participant = parent::getActiveParticipant(); //Active participant... if (ADMIN_ENABLED !== 1) { throw new Exception("Get out of my sight! You don't belong here!"); } parent::isParticipanActive(); }
public function init() { /* Initialize action controller here */ $this->_table = new VoteTable(); $this->_participant = parent::getActiveParticipant(); //Active participant... if (null === $this->_participant) { throw new Exception("We don't like visitors here. You have to login in order to come inside!"); } }
public function init() { /* Initialize action controller here */ parent::getActiveParticipant(); }
public function init() { /* Initialize action controller here */ $this->_table = new ParticipantsTable(); $this->_participant = parent::getActiveParticipant(); }