PHP
CakePHP
cakephp3

CakePHP3 コントローラとコンポーネントのコールバック呼び出し順

呼び出し順

  1. Controller::initialize()
  2. Component::initialize()
  3. Component::beforeFilter(Event $event)
  4. Controller::beforeFilter(Event $event)
  5. Component::startup(Event $event)
  6. Component::beforeRender(Event $event)
  7. Controller::beforeRender(Event $event)
  8. Component::shutdown(Event $event)
  9. Controller::afterFilter(Event $event)