Wiki

Sorted by viewsX
Displaying 431-440 of 753 result(s).

YII SaaS Multi Tenant application with single database

Created 2 years ago by Rajith RTutorials5 comments – viewed 12,225 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 create a wrapper for a js library

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

Upload files in Yii2 with MongoDb and GridFs

Created about a year ago by edoardo849How-tos3 comments – viewed 12,136 times – ( +8 ) – version 2.0
Uploading files in a webapp can be extremely tricky and sometimes the quickest way to do it is to store the file directly in the webserver or into a DNS (like Amazon S3) and then to save the link and the metadata inside a table in the DB. The thing is that you'll have to deal with file permissions, server storage, file management and so on (which is perfectly fine, by the way).

Create image thumbnails with php_img_preview

Created 3 years ago by Anas AbuDayahTutorials6 comments – viewed 12,121 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

Integrating FirePHP

Created 4 years ago by ricardogranaTutorials5 comments – viewed 12,041 times – ( +8 ) – version 1.1
Install Firebug plugin for Firefox from here.

AutoTimestampBehavior

Created 6 years ago by jonahTutorials1 comment – viewed 12,027 times – ( +2 / -2 ) – version 1.1
Note: currently a variant of this class CTimestampBehavior is included into Yii distribution package.

Insert a multirow header in CGridView

Created 2 years ago by PeppeHow-tos2 comments – viewed 11,978 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.

Adding a link to a CDataColumn

Created 2 years ago by le_topTips6 comments – viewed 11,935 times – ( +3 ) – version 1.1
Backoffice Grid Views often list information like Posts for a blog while showing at the same time linked information like the User who wrote that post. For more efficiency, it is appropriate that the User is displayed as a link to the User detail page.

HOW TO: Use token based authentication

Created about a year ago by le_topHow-tos2 comments – viewed 11,865 times – ( +4 ) – version 1.1
After reading the other wiki article regarding token based access, I thought that it might be interesting to share my method.

How to use bizRules in standard accessControl filter

Created 2 years ago by Maciej Li┼╝ewskiHow-tos8 comments – viewed 11,799 times – ( +3 ) – version 1.1
I assume you are familiar with accessControl standard filter. It allows you to separate privileges to run some action from action code itself. There is however one problem with most common usage - you cannot use bizRules, at least based on some parameters passed to 'checkAccess' just because it is hard to pass them in accessRules() result.