Articles Posted in the " Yii Tips " Category

  • Yii 1.0 Form Label Configuration

    This tutorial will help your to add the span, class, style etc for the Yii Form Label (Yii Framework 1.x). We can give ajax parameter using the below code. It will helpful for dynamic form requirement and validation.

  • Yii SQL Query To CGridview

    CSqlDataProvider implements a data provider based on a plain SQL statement. This tutorial will help you to display the custom sql query result into cgridview as normal crud view.

  • MetaTags In Yii Framework 1.0

    Yii 1.0 Framwork MetaTag Script like keywords, description, robots etc. Registers a meta tag that will be inserted in the head section of the display page.

  • Yii 1.0 Display Image Form Database

    Before save the image into database, i created one ‘text’ field in mysql table to save the image code. We can show the image in CDetailview from database table of yii framework. Here i […]

  • Yii Maintenance Mode

    Yii Maintenance Mode

    This tutorial will useful to change your yiiframework website to maintenance mode. User can access maintenance file only. Maintenance Controller Maintence File Maintenance Controller Make or Point the controller action to maintenance mode. return […]

  • Yii CHttpRequest

    Yii CHttpRequest

    CHttpRequest is equal to ‘$_SERVER’. we are using ‘$_SERVER’ variable to get the details of request, scripts, headers etc. We can get this information using CHttpRequest class. We can access the CHttpRequest via Yii::app()->request. […]

  • Yii Gridview CButtonColumn

    Yii Gridview CButtonColumn

    CButtonColumn used to renders one or more buttons in gridview columns. Basically cgridview column have three buttons. They are “view”, “update”, “delete” button and it have corresponding actions. We can change it using CButtonColumn […]