Quantcast
Channel: BSOURCECODE
Browsing latest articles
Browse All 10 View Live

MetaTags In Yii Framework 1.0

In yii framework 1.0, Registers a meta tag that will be inserted in the head section (right before the title element) of the display page. Each call of this method will cause a rendering of new meta...

View Article


CActiveDataProvider With Custom Query

Hi i used CActiveDataProvider everytime to retrieve the data for CGridView.But one of my project needed custom query in criteria and have to show the result in CGridView. During that time i found...

View Article


Scenarios validation In Yii 1.0

Scenarios validation is the one of the useful future in yii framwork and seperating the validation on any class derived from CModel. For example When we register a user, we will do some validation. For...

View Article

Breadcrumbs Widget In Yii Framework1.0

Default Breadcrumbs Remove Home Link From Breadcrumbs Add Tag, Separatr For Link Direct Configuration For Breadcrumbs Links CBreadcrumbs displays a list of links indicating the position of the current...

View Article

Image Upload With Dimension Validation In Yii Model

This tutorial will help you to upload the image with image extension validation, image size validation and image dimension validation. So we can fix the width and height for image. CFileValidator is...

View Article


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. But dont forget to...

View Article

Hide CGridview Delete Button If the Record is used

In my project, I have to hide the delete button from ‘CGridview’ If the record is not related to any other records or table and i have to check the record id, Is it possible or not to delete. Now i...

View Article

Custom SQL Query To Excel In Yii1.0

Please read this tutorial before to follow this post. http://www.bsourcecode.com/2013/04/yii-cactivedataprovider-to-excel/ This tutorial will help you to create a excel sheet using custom sql query. In...

View Article


Yii 1.0 Form Label Configuration

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

View Article


Image may be NSFW.
Clik here to view.

Yii1.0 Custom Access Control With Dynamic Validation

This tutorial will help you to create a custom access method. I have done this method using “module-controller-action” method like “employee_employee_admin”. Here i used the getState and setState...

View Article
Browsing latest articles
Browse All 10 View Live