Wiki

Sorted by viewsX
Displaying 421-430 of 750 result(s).

Using updateAll and deleteAll with scopes

Created 10 months ago by le_topHow-tos4 comments – viewed 11,690 times – ( +5 ) – version 1.1
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.

Using Google Maps in Yii Applications via Jquery

Created 2 years ago by bluyellHow-tos2 comments – viewed 11,586 times – ( +2 / -1 ) – version 1.1

Upload CSV File

Created 2 years ago by bhavesh vaghelaTutorials2 comments – viewed 11,568 times – ( +7 ) – version 1.1
View file

Create image thumbnails with php_img_preview

Created 2 years ago by Anas AbuDayahTutorials6 comments – viewed 11,540 times – ( +3 ) – version 1.1
This is another way to view images in your application and I like this way because it's simple and I think it's better performance than other.
tags: images, views

How to create a wrapper for a js library

Created 3 years ago by zaccariaHow-tos2 comments – viewed 11,497 times – ( +16 / -1 ) – version 1.1
This wiki will explain how to include a javascript library in a widget.
tags: wrapper, js, uploadify

YII SaaS Multi Tenant application with single database

Created about a year ago by Rajith RTutorials5 comments – viewed 11,388 times – ( +11 / -10 ) – version 1.1
Lots of people are asking how to solve it with YII,We think its difficult with YII. But its easy to solve . There is no database triggers needed . we can simply sove it by extending a class(say "RActiveRecord") from CActiveRecord .Then extend all our model classes from that class.

How to ensure unicity to url

Created 3 years ago by zaccariaTips3 comments – viewed 11,382 times – ( +14 ) – version 1.1
Many time for SEO porpouses is important that each page will have a unique address.
tags: SEO, unique, URL

URL component access functions

Created 4 years ago by Steve FriedlTips1 comment – viewed 11,281 times – ( +28 ) – version 1.1
Many applications wish to obtain parts of the URL for the current page (the hostname, the query string, etc.), and the CHttpRequest class wraps various $_SERVER variables to break down the URL into its constituent parts.
tags: URL, request

Insert a multirow header in CGridView

Created about a year ago by PeppeHow-tos2 comments – viewed 11,262 times – ( +6 ) – version 1.1
The CGridView widget is very useful and customizable, but sometimes you need a little more. One limit I found is to have only one row for headers; yes, you can write each column header in more than one row, but just inside the single cell. I was looking instead for the possibility to use more than one row, with different structure one from the others. This way you can write columns grouping headers, and obtain a nicer view.

Handling tabular data loading and validation in Yii 2

Created about a year ago by Kartik VTutorials3 comments – viewed 11,216 times – ( +41 / -5 ) – version 2.0
How do you read and handle tabular data submission via form in Yii framework 2.0? Sometimes we want to collect user input in a batch mode. That is, the user can enter the information for multiple model instances and submit them all at once. We call this tabular input because the input fields are often presented in an HTML table.