- Yii based application
- Enabled path UrlFormat for UrlManager
- All rewrites rules shout be written (.htaccess or any other conf)
- Image extension for Yii installed ( http://www.yiiframework.com/extension/image/ )
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.
There are cases that model validators should be depended by controller/action and you couldn't manipulate on the model class or using scenarios in easy way
There are situations in which Active Record will generate nonsense queries from what a nieve Yii user might think is reasonable code. One such situation is a CActiveDataProvider
using CDbCriteria
to get data from parent and 1:n child table with a condition on the child table.