Wiki

Articles in category "how-tos", sorted by commentsX
Displaying 51-60 of 182 result(s).

A simple go back button widget

Created 7 months ago by CTalaHow-tos5 comments – viewed 6,834 times – ( +3 / -2 )
We all know that widgets are really useful. We can use the almost everywhere we want, and we can use the same code a lot of times ( Almost OOP ).

Syncing sessions between Yii and KCFinder

Created 6 months ago by Thanasis FotisHow-tos5 comments – viewed 2,612 times – ( +1 )
I have been trying to find information on how to sync the sessions between Yii and KCFinder so that the two applications can "communicate" with each other. I managed to find some bits and pieces on the correct approach to use, but not a definite guide or concrete code.

Load the Yii-Bootstrap Extension on Specific Actions

Created 5 months ago by chuntleyHow-tos5 comments – viewed 6,213 times – ( +8 )
A big problem I've hit with the Yii-Bootstrap extension is that all AJAX requests are initializing Bootstrap because of preload. This is a huge waste of resources, especially when using AJAX-based file uploaders that split the file into chunks. Large file uploads using that method could be initializing bootstrap hundreds of times.
tags: bootstrap, filter

Custom Autocomplete Display and Value Submission

Created about a year ago by Antonio RamirezHow-tos5 comments – viewed 21,372 times – ( +12 / -1 )
How many of us has wondered how to create an autocomplete that will display the names of a related models but do require the id of that selected name to be submitted for model creation/update?

Run Yiic directly from your app without a shell

Created about a year ago by jacmoeHow-tos5 comments – viewed 11,108 times – ( +15 )
Sometimes it would be nice if we could run yiic from an action, for example a migrate database button in our admin panel. Or because you are on a host which doesn't have shell access. Or maybe you are not allowed run popen or exec.

Filter / Search with CListView

Created about a year ago by JohnPollardHow-tos5 comments – viewed 17,498 times – ( +21 )
This is what I did. Its the EASIEST solution that I know of. I just reused the advanced search done in CGridView.

CPhpAuthManager - how it works, and when to use it

Created about a year ago by dckurushinHow-tos5 comments – viewed 12,251 times – ( +1 / -3 )
Before reading this article, you should first learn this How to setup RBAC with a php file

How to use nested DB transactions (MySQL 5+, PostgreSQL)

Created 3 years ago by mindehHow-tos4 comments – viewed 12,979 times – ( +32 )
Original source code and idea are from: PHP, PDO & Nested Transactions.

Tarpit for bad bots

Created about a year ago by mitherealHow-tos4 comments – viewed 3,794 times – ( +1 )
I recently built a tarpit for bad bots.
tags: tarpit, bots

Reference: Model rules validation

Created 3 years ago by krillzipHow-tos4 comments – viewed 250,826 times – ( +84 )
This is a reference to be used for Model rule validation and is compiled from the Yii documentation and code. The purpose is to have all the information gathered in one place instead of scattered. This reference is not an intro. See The Definitive Guide to Yii, Declaring Validation Rules for a tutorial.