Capplication Extension

Hi everyone, sorry for this stupid question but I want to know how CWebApplication class can extend CApplication class without including it? How CWebApplication knows about the place where is it? And if yii has some code where it includes all base classes can you show me that place in yii please? Thank you! :rolleyes:

See


spl_autoload_register(array('YiiBase','autoload'));

at the bottom of the YiiBase class code and method YiiBase::autoload().

So calling


Yii::createWebApplication

in index.php will register the Yii core classes for autoloading.