While there is a reasonable amount of documentation regarding CForm (form builder) and file uploads seperately, there really is not any coverage of both in combination.
While there is a reasonable amount of documentation regarding CForm (form builder) and file uploads seperately, there really is not any coverage of both in combination.
It's well known that there are Lazy Loading approach and Eager Loading approach in the relational query. But it's important to note that you should distinguish 2 different modes in the Eager Loading in Yii 1.1.x.
In this tip, I'll help you to change in few second buttons of your CGridView. I hope you like it =).
In case of a multilingual application, one might consider it a reasonable approach to store the preferred language of the user in a session variable, and after that, every time a page is requested, to check this session variable and render the page in the indicated language.
This tutorial shows a Yii-way of doing this.
We implement an event handler for the onBeginRequest event; as the nam...
As you know, the CDetailView widget displays details of a single model. If no formatting is specified, boolean values that are stored in the database as 0 and 1, are represented in the detail view as 0 and 1. If formatted as boolean, they are represented as 'No' and 'Yes'. We want to add i18n support, so that Yes and No appear in the current language.
The most difficult thing in a big project, is to manage conflicts with files modified by others users. Git can do this work for us.
In this tutorial we will be setting up a content type to be ordered by weight using the JUI Sortable plugin.
Let's say you have an internal messaging system in your webapp, and you want to display messages dynamically and real-time to the relevant recipients.
This artical is related to allow user to filter CGridView with date range using datepicker on submit button. Here I use Yii Cookie to preserve date in datepicker textbox after submitting the form.
This is a tutorial to work with radioButtonList which will handle enum datatype. Form design and validation both are detailed here.
YiiBackboneBoilerplate, aims to provide Yii Backbone developers with an application folder to ease the startup of their projects. It uses the flexibility of our YiiBoilerplate with a twist for BackboneJS applications.
Sometimes text inside a gridview column is just too long. That's why I figured out a way to make the column smaller while still providing the information.
As you know, events are used by:
If you tried this extension with success, maybe you thought how to do it without page submission or ajax calls.
In this cookbook I will attempt to explain how to use the lightweight version of Role-Based Access Control using a php file. This version does not use database but a php file and is controlled by CPhpAuthManager class.
This is an incipient implementation of application-driven database with Yii.
I had some troubles with the password confirmation field for when adding updating user records, so i thought that i should share the way i got it working.
This tutorial assumes some basic knowledge of Yii and a functional development environment.
Yesterday I've written a module for myself. Just an experiment. When I was feeling satisfied, I've created a repository on github, and pushed my code. My module and yii are on github. So I'll show you a "new" way to start our yii projects.