In this wiki I will show you how to save/update a model with many related model For example: How to set a product to multiple categories only in one post form ?
In this wiki I will show you how to save/update a model with many related model For example: How to set a product to multiple categories only in one post form ?
This tutorial presents a way of separating JS code from views and passing to it values from PHP.
This wiki is a work in progress.
It is a common case coders often come accross. For example the purpose of these checkbox is to mark records to be deleted
I've found useful to have a step by step reference guide to work with Git with most used commands, feel free to update it with useful information you may find interesting too.
Since PHP is dynamically typed language, the way IDE may help you is limited.
Working with scenarios, with models that can receive many modifications in their rules or structures as development evolves, can create disruptions in the rescue process.
A dropdown list can be used to select a value, based on which we can filter the data to be displayed. For example, the extension page has a dropdown list to filter the displayed extensions according to the selected category.
To extend further static pages as shown by Qiang http://www.yiiframework.com/wiki/22/how-to-display-static-pages-in-yii/ here're the steps to take:
There are good reasons to use Google's Content Delivery Network (CDN) to serve jQuery and jQuery UI on your site:
This tutorial shows how to use a model to save and validate related (MANY_MANY) models.
The issue is covered in "The Definite Guide to Yii" (Error Handling - Handling Errors Using an Action).
Inspired by it I extended the CButtonColumn class like this:
I would like to share my little experience with Yii to the community in the form of the below small wiki:
This guide is for more or less advanced users. If you just started with Yii or didn't worked with any web-framework before, you may should come back later :-)
Installing WAMP on XP was pretty easy; W7 is not so trivial. It's not difficult once you know, but it took me best part of a day to figure out and required gleaning various bits of information from around the web; this tutorial brings it all together in one place to (hopefully) make other peoples lives that bit easier. It does assume that you are reasonably happy configuring Apache, PHP, and MySQL...
For those who feel, the Controller->accessRules() or RBAC (Role-Based Access Control) is too complicated or doesn't want the username(s) to be hard-coded in accessRules(), here is a very simple, easy-to-implement solution.
I hadn't specify whole flow as I assume you know yii crud flow well, and Quick understand of my specified admin flow.. :)
In this article, we introduce a set of CSS naming conventions that we have applied in several big projects and achieved success. The goal of these naming conventions is to eliminate the possibility of naming conflicts, facilitate debugging and maintenance, and to simplify the naming process.