This tip created in conjunction with IRC #yii channel users emilsedgh and tydeas - thanks!
This tip created in conjunction with IRC #yii channel users emilsedgh and tydeas - thanks!
I keep a reference to some simple but painful task if you forget a common or something. I am new to Yii and this took awhile for me to figure out. Everything I read said do this or do that and not a single one worked for me. However, the following did.
I'm developing a website that has an option to look up a car's registration number via SOAP and return additional details such as make, model, colour etc.
Many Yii users ask how to create helper classes and functions, and though there are numerous approaches spread out among the forum and wiki articles, this Tutorial tries to bring it all together in one place.
Since version 1.0.4, Yii developers can make use of the image gallery provided by Sebastian Tshan, a great javascript developer that has created some true gems like the jquery file upload plugin.
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 ?
So here is my complete solution - note that I'm using the 'short' date format throughout.
What would you do if you want/need to have a different than the main database connection in an module's models?
Simple Yii Script for performing CRUD operations:
This article is for those who have dealt with the complexity of Elasticsearch or any other indexing machines and are looking for an easier way to index the existing database without additional effort.
In this wiki I will show how to display data from two tables in Bootstrap TbGridView using dataProvider.
Using CActiveRecord->updateAll() and CActiveRecord->deleteAll() with scopes and criteria requires some tricks that are explained in this article. While findAll() , find() and some other methods use scopes automatically, updateAll() and deleteAll() do not.
I found a standard Yii app's protected
folder structure nearly perfect. With a few simple moves and a little bit change to the code, I managed to bring it to the level, which I found as fully perfect. I want to share my point of view, in case someone would like to use this structure as well.
Hi Friends, In this tutorial I write a code display dependent drop-down value using ajax call.
This article explains how to easily turn standard text-line validation errors into beautifully and professionally looking Twitter Bootstrap's Popovers.
This example includes a composite condition as well as an empty condition - as if you bypass or disable defaultScope without using resetScope().
When you develop a widget, you could need one image that is in the assets folder, you can use it simply within a css. You can load a css or javascript script doing this:
Yii::app()->getClientScript()->registerCssFile($filename);
yii-1.1.8.r3324 framework directory is 10.4 mb size.
I'm developing a web project for a company using Yii framework. We are using a git vcs in our development process. We like to use Yii extensions. But only if they are good.