original_string: public function main()
      {
          try {
              // Initialize page and all elements from here
              $this->initLayout();
          } catch (Exception $e) {
              if (!($e instanceof Exception_Stop)) {
                  return $this->caughtException($e);
              }
              //$this->caughtException($e);
          }
  
          try {
              $this->hook('post-init');
              $this->hook('afterInit');
  
              $this->hook('pre-exec');
              $this->hook('beforeExec');
  
              if (isset($_GET['submit']) && $_POST) {
                  $this->hook('submitted');
              }
  
              $this->hook('post-submit');
              $this->hook('afterSubmit');
  
              $this->execute();
          } catch (Exception $e) {
              $this->caughtException($e);
          }
          $this->hook('saveDelayedModels');
      }
code: public function main()
      {
          try {
              // Initialize page and all elements from here
              $this->initLayout();
          } catch (Exception $e) {
              if (!($e instanceof Exception_Stop)) {
                  return $this->caughtException($e);
              }
              //$this->caughtException($e);
          }
  
          try {
              $this->hook('post-init');
              $this->hook('afterInit');
  
              $this->hook('pre-exec');
              $this->hook('beforeExec');
  
              if (isset($_GET['submit']) && $_POST) {
                  $this->hook('submitted');
              }
  
              $this->hook('post-submit');
              $this->hook('afterSubmit');
  
              $this->execute();
          } catch (Exception $e) {
              $this->caughtException($e);
          }
          $this->hook('saveDelayedModels');
      }
code_tokens: public function main ( ) { try { // Initialize page and all elements from here $ this -> initLayout ( ) ; } catch ( Exception $ e ) { if ( ! ( $ e instanceof Exception_Stop ) ) { return $ this -> caughtException ( $ e ) ; } //$this->caughtException($e); } try { $ this -> hook ( 'post-init' ) ; $ this -> hook ( 'afterInit' ) ; $ this -> hook ( 'pre-exec' ) ; $ this -> hook ( 'beforeExec' ) ; if ( isset ( $ _GET [ 'submit' ] ) && $ _POST ) { $ this -> hook ( 'submitted' ) ; } $ this -> hook ( 'post-submit' ) ; $ this -> hook ( 'afterSubmit' ) ; $ this -> execute ( ) ; } catch ( Exception $ e ) { $ this -> caughtException ( $ e ) ; } $ this -> hook ( 'saveDelayedModels' ) ; }
docstring: Call this method from your index file. It is the main method of Agile Toolkit.
docstring_tokens: Call this method from your index file . It is the main method of Agile Toolkit .