Difference between #1 and #2 of
Attaching multiple event handlers to onBeginRequest

Revision #2 has been created by CeBe on Apr 14, 2014, 5:47:49 AM with the memo:

changed yii version
« previous (#1)

Changes

Title unchanged

Attaching multiple event handlers to onBeginRequest

Category unchanged

How-tos

Yii version unchanged

Tags unchanged

events, event handler

Content unchanged

[...]
$webapp->onBeginRequest = ['MyClassA', 'staticMethodA'];
$webapp->onBeginRequest = ['MyClassB', 'staticMethodB'];
$webapp->run();
```

A quick debugging revealed - both methods are being called exactly as presumed. QED.
1 0
2 followers
Viewed: 15 981 times
Version: 1.1
Category: How-tos
Written by: Boaz
Last updated by: CeBe
Created on: Mar 13, 2014
Last updated: 10 years ago
Update Article

Revisions

View all history