Difference between #4 and #5 of
Extension Development (beginner)

Revision #5 has been created by sefburhan on Jan 22, 2014, 5:58:30 AM with the memo:

Extension Development
« previous (#4) next (#6) »

Changes

Title unchanged

Extension Development (beginner)

Category unchanged

Tutorials

Yii version unchanged

Tags unchanged

extensions, extension-development, performance, security, extension-exmaple, yii-extension beginner, extension-tutorial, Widgets, aliase, how-to-extension

Content changed

[...]
4) For Access all the dependent files, use Yii standards Classes like
- [Register your script](http://www.yiiframework.com/doc/api/1.1/CClientScript "register your script")
- Current extension folder : $dir = dirname(__FILE__) . DIRECTORY_SEPARATOR . 'sources/files';
- CAssetManager :to avoid naming conflict , available as Yii::app()-assetManager [read more]( http://www.yiiframework.com/wiki/148/understanding-assets/ "read more ")

 
5) Initialize & check all the variables/attribute before use.
 
6) To access yii core libraries or other classes you can use import() in our extension
 
```php Yii::import(‘zyx.abc.MyClasss’); // class Yii::import('application.components.* '); // for entire package ```
 
7) Use your extensions : if your extension is in protected/extensions the you can access it by


```php
$this->widget('ext.myext.MyExt');
```
[...]
2 0
37 followers
Viewed: 26 961 times
Version: 1.1
Category: Tutorials
Written by: sefburhan
Last updated by: CeBe
Created on: Jan 21, 2014
Last updated: 10 years ago
Update Article

Revisions

View all history