Categories
YII

Yii Tutorial : How to Add JavaScript into your views ?

This post is about registering inline and external javascript files into views, Yii provided CClientScript to manage the scripts and CSS files in Yii application. How to Register or add External java script files : Here Script file located at webroot/resources/js., Yii::app()->baseUrl will return app base url. How to Register or add inline java script: […]

Categories
YII

Yii Framework Tutorial ?

Yii is Open Source PHP Framework. Qiang Xue is the founder of Yii, He started the development of this open source framework on January 1st, 2008. What is Yii? Yii is fast and Easy,efficient and secure framework Yii is great tool kit for developing Web 2.0 applications. Great documented PHP framework Why Yii? Yii is […]

Categories
YII

How to Create A Custom Widget in Yii Framework ?

Yii is a wonderful framework that gives generated codes for the developer.in here I will show you how to create a Custom widget in Yii. Simplest possible way to get a Custom Widget going: Then, in a view, you can instantiate it like this: the init()

Categories
YII

Setting Home Page In yii Application With Default Controller And Default Action ?

We can set or change front page or home page of YII Driven web Application with simple Changes, we can do this with changing a default controller and a default action. Default Controller : Default Controller can be called , if no controller provided. Default action: Default Action is controller method, which will be called […]