| 1234567891011121314151617181920212223 |
- <?php
- namespace TestApp\Controller\Component;
- use Shim\Controller\Component\Component;
- use Cake\Event\Event;
- class TestComponent extends Component {
- public $Controller;
- public $isInit = false;
- public $isStartup = false;
- public function beforeFilter(Event $event) {
- $this->isInit = true;
- }
- public function startup(Event $event) {
- $this->isStartup = true;
- }
- }
|