Example #1
0
 /**
  *	@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');
 }
Example #2
0
 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'));
 }
Example #3
0
 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');
 }
Example #4
0
 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');
 }
Example #5
0
 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));
 }
Example #6
0
 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');
 }
Example #7
0
 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');
 }
Example #8
0
 /**
  *	@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');
 }
Example #9
0
 protected function init()
 {
     // Call parent's init method
     parent::init();
     $this->before_filter('log_visit');
 }
Example #10
0
 function init()
 {
     // Call parent's init method
     parent::init();
     $this->before_filter(array('log_visit', 'block_ip'));
 }
Example #11
0
 protected function init()
 {
     // Call parent's init method
     parent::init();
     $this->after_filter(array('shrink_html', 'compress'));
 }
Example #12
0
 protected function init()
 {
     parent::init();
 }