Show Menu

Yii code templates for Netbeans Cheat Sheet by hoplayann

This code template is based on the NetBeans template downloadable here: http://www.yiiframework.com/wiki/83/netbeans-ide-and-yii-projects/

Yii model methods

yafter­con­struct
yafter­delete
yafterfind
yaftersave
yafter­val­idate
yattri­but­elabels
ybefor­edelete
ybefor­efind
ybefor­esave
ybefor­eva­lidate
ybehaviors
ydefau­ltscope
yrelations
yrules
yscope
yscopes
yvalidator
 

Yii controller methods

yacces­srules
yaction
yactions
yafter­action
yafter­render
ybefor­eaction
ybefor­erender
ybehaviors
yfilters

Yii generic methods

yinit
yrun
 

Yii function calls

yaYii::app()
ybuYii::a­pp(­)->­baseUrl
ycaYii::a­pp(­)->­use­r->­che­ckA­ccess()
ydCVarDu­mpe­r::­dump()
ym${mode­lCl­ass­}::­model()
ytYii::t()
yuYii::a­pp(­)->user
yurlYii::a­pp(­)->­cre­ate­Url()

Yii view templates

ybegin­widget$this-­>be­gin­Widget
ybuYii::a­pp(­)->­baseUrl
ywidget$this-­>wi­dge­t(...)
 

Share This Cheat Sheet!

Favourited by 2 Members:

Dranzz webdevo

Comments

No comments yet. Add yours below!

Add a Comment

Your Comment

Please enter your name.

    Please enter your email address

      Please enter your Comment.