Пример #1
0
 /** Redefine this function instead of default constructor */
 function init()
 {
     $this->getLogger();
     // Verify Licensing
     $this->licenseCheck('atk4');
     // send headers, no caching
     $this->sendHeaders();
     $this->cleanMagicQuotes();
     parent::init();
     /** In addition to default initialization, set up logger and template */
     $this->initializeTemplate();
     if (get_class($this) == 'ApiWeb') {
         $this->setConfig(array('url_postfix' => '.php', 'url_prefix' => ''));
     }
 }
Пример #2
0
 /** Redifine this function instead of default constructor */
 function init()
 {
     // Do not initialize unless requsetd
     //$this->initializeSession();
     // find out which page is to display
     //$this->calculatePageName();
     $this->add('PageManager');
     // send headers, no caching
     $this->sendHeaders();
     parent::init();
     /** In addition to default initialization, set up logger and template */
     $this->getLogger();
     $this->initializeTemplate();
     if (get_class($this) == 'ApiWeb') {
         $this->setConfig(array('url_postfix' => '.php', 'url_prefix' => ''));
     }
 }