App_CLI::_beforeInit PHP Method

_beforeInit() public method

Finds out which page is requested. We don't need this method for CLI, but others might need it.
public _beforeInit ( )
    public function _beforeInit()
    {
        // Loads all configuration files
        $this->readAllConfig();
        $this->add($this->pathfinder_class);
    }

Usage Example

Example #1
0
File: Web.php Project: atk4/atk4
 /**
  * Executed before init, this method will initialize PageManager and
  * pathfinder.
  */
 public function _beforeInit()
 {
     $this->pm = $this->add($this->pagemanager_class, $this->pagemanager_options);
     /** @type Controller_PageManager $this->pm */
     $this->pm->parseRequestedURL();
     parent::_beforeInit();
 }
All Usage Examples Of App_CLI::_beforeInit