/** * @fn init * @short Initialization method for the Controller. * @details Here you can define custom filters, caching strategies etc. */ protected function init() { // Call parent's init method parent::init(); $this->before_filter('check_auth'); $this->after_filter('compress'); }
protected function init() { // Call parent's init method parent::init(); $this->before_filter(array('log_visit', 'block_ip')); $this->after_filter(array('shrink_html', 'compress')); }
function init() { // Call parent's init method parent::init(); $this->caches_page(array('index')); //$this->before_filter(array('log_visit', 'block_ip')); $this->after_filter('compress'); }
protected function init() { // Call parent's init method parent::init(); $this->caches_page(array('download_stats', 'widgets_versioncheck', 'releasenotes', 'changelog')); $this->before_filter('block_ip'); $this->before_filter('log_visit', array('except' => array('widgets_versioncheck', 'download', 'download_stats', 'user_quotes'))); $this->after_filter('shrink_html', array('except' => array('widgets_versioncheck', 'download', 'download_stats', 'user_quotes'))); $this->after_filter('compress'); }
protected function init() { // Call parent's init method parent::init(); $cached_pages = array('software', 'software_comments', 'diario'); //$this->before_filter(array('log_visit', 'block_ip')); $this->before_filter('block_ip'); $this->caches_page($cached_pages); $this->after_filter('compress', array('only' => $cached_pages)); }
protected function init() { // Call parent's init method parent::init(); $this->before_filter(array('log_visit', 'block_ip')); $this->after_filter('my_morse_encode', array('only' => 'encode')); $this->after_filter('my_morse_decode', array('only' => 'decode')); $this->after_filter('shrink_html'); $this->after_filter('compress'); }
protected function init() { // Call parent's init method parent::init(); //$this->caches_page(array('index', 'read')); $this->before_filter(array('log_visit', 'block_ip')); $this->before_filter('init_math_test', array('only' => array('read'))); $this->after_filter('highlight_words', array('only' => array('search', 'live_search', 'index', 'read'))); $this->after_filter('shrink_html'); $this->after_filter('compress'); }
/** * @fn init * @short Initialization method for the Controller. * @details Here you can define custom filters, caching strategies etc. */ protected function init() { // Call parent's init method parent::init(); $this->before_filter(array('log_visit', 'block_ip')); if (@$_GET['hl'] == 'morse' || @$_COOKIE['hl'] == 'morse') { $this->after_filter('morse_encode'); } else { if (@$_GET['hl'] == 'sanskrit' || @$_COOKIE['hl'] == 'sanskrit') { $this->after_filter('sanskrit_ambra'); } } $this->after_filter('shrink_html'); $this->after_filter('compress'); }
protected function init() { // Call parent's init method parent::init(); $this->before_filter('log_visit'); }
function init() { // Call parent's init method parent::init(); $this->before_filter(array('log_visit', 'block_ip')); }
protected function init() { // Call parent's init method parent::init(); $this->after_filter(array('shrink_html', 'compress')); }
protected function init() { parent::init(); }