hi
i have a question about loading extension !
if i define a extension in app config, this extension will be load when application run or will be include when i use it ?
Page 1 of 1
Extension Loading
#2
Posted 14 April 2012 - 12:59 AM
It depends on the kind of extension you've made/using. If it is an Application Component (CApplicationComponent) then you can definitely preload it or lazy load it: Yii::app()->foo->bar()
#3
Posted 14 April 2012 - 04:26 AM
rookie84, on 14 April 2012 - 12:59 AM, said:
It depends on the kind of extension you've made/using. If it is an Application Component (CApplicationComponent) then you can definitely preload it or lazy load it: Yii::app()->foo->bar()
i using Mailer extension that i downloaded from extensions directory
and i configure it in app file config :
'mailer' => array( 'class' => 'ext.mailer.EMailer', 'pathViews' => 'application.views.email', 'pathLayouts' => 'application.views.email.layouts' ),
#4
Posted 23 April 2012 - 08:04 PM
If you did write the code below in config/main.php then you can use this extension as:
Yii::app()->mailer->(whatever functions are supported)
Yii::app()->mailer->(whatever functions are supported)
afshin, on 14 April 2012 - 04:26 AM, said:
i using Mailer extension that i downloaded from extensions directory
and i configure it in app file config :
and i configure it in app file config :
'mailer' => array( 'class' => 'ext.mailer.EMailer', 'pathViews' => 'application.views.email', 'pathLayouts' => 'application.views.email.layouts' ),
Share this topic:
Page 1 of 1

Help














