Show Menu
Cheatography

Yii code templates for Netbeans Cheat Sheet by [deleted]

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

ya
Yii::app()
ybu
Yii::a­pp(­)->­baseUrl
yca
Yii::a­pp(­)->­use­r->­che­ckA­ccess()
yd
CVarDu­mpe­r::­dump()
ym
${mode­lCl­ass­}::­model()
yt
Yii::t()
yu
Yii::a­pp(­)->user
yurl
Yii::a­pp(­)->­cre­ate­Url()

Yii view templates

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

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.

          Related Cheat Sheets

          Php + Yii code templates for NetBeans Cheat Sheet
          Selenium WebDriver Cheat Sheet Cheat Sheet
          ISTQB Test Automation Engineering Cheat Sheet

          More Cheat Sheets by [deleted]

          Php code templates for NetBeans Cheat Sheet
          Php + Yii code templates for NetBeans Cheat Sheet
          Bazaar version control system Cheat Sheet