From the API page for the IApplicationComponent interface which CApplicationComponent
implements.
After the application completes configuration, it will invoke the
init()
method of every loaded application component.
After digging a little deeper this is the source code for CModule::setComponent()
. CModule is the base class for all module and application classes therefore the _init
will be called by your base application class.
elseif($component instanceof IApplicationComponent)
{
$this->_components[$id]=$component;
if(!$component->getIsInitialized())
$component->init(); // <----
return;
}