Wiki

Sorted by date (updated)X
Displaying 91-100 of 470 result(s).

Making friends' configs, DB credentials and paths with version control

Updated 4 months ago by ajsharmaTips1 comment – viewed 2,733 times – ( +2 / -1 )
In many cases developers of one project use their own local environments for coding. There may be a common test platform and, of course, production. All these environments usually have different DB credentials and directory structures (first of all, path to YII framework directory). Another feature is debugging. It's convenient to turn it on for local environments, eventually - on the test server and never (generally speaking) - on the production.
tags: config

Behaviors & events

Updated 4 months ago by GismoTutorials7 comments – viewed 48,975 times – ( +39 )
These features provide endless possibilities and unbelievable flexibility, but as current documentation does not give more than a few examples, it might be difficult to fully understand their internals and requirements.

Adding search to Yii blog example (using Zend Lucene)

Updated 4 months ago by klammeraffeTutorials15 comments – viewed 34,258 times – ( +28 / -2 )
For this tutorial I will add a search to the blog demo. The search would be based on Zend Lucene.

Upload CSV File

Updated 4 months ago by bhavesh vaghelaTutorials0 comments – viewed 4,052 times – ( +3 )
View file

CSS Naming Conventions

Updated 4 months ago by GismoTutorials4 comments – viewed 21,072 times – ( +35 )
In this article, we introduce a set of CSS naming conventions that we have applied in several big projects and achieved success. The goal of these naming conventions is to eliminate the possibility of naming conflicts, facilitate debugging and maintenance, and to simplify the naming process.

Additional form data with XUpload

Updated 4 months ago by AsgarothHow-tos5 comments – viewed 10,227 times – ( +5 )
In this article you'll learn how to send additional form data when uploading files using XUpload widget

Using CJuiDatePicker for CGridView filter

Updated 4 months ago by softarkHow-tos3 comments – viewed 15,631 times – ( +16 )
We can use a CJuiDatePicker for a CGridView inline filter.

How to show ajax delete status in CGridView like flash messages

Updated 4 months ago by adlersdHow-tos9 comments – viewed 18,736 times – ( +16 )
I've seen many tickets regarding how to show friendly delete confirmation using CGridView's CButtonColumn in ajax request. If you are using relational database, after producing CRUD functionality when you try to delete a record in ajax mode which has child record it can't be deleted and you can see the ajax loader forever. By this way you can't show the users if a record has been successfully deleted or if there are some problem in flash style (setFlash() / getFlash())

Handling recursive deletion in Yii

Updated 5 months ago by JamesBarnsleyHow-tos3 comments – viewed 3,435 times – ( +3 )
As a lead developer at Mutable Labs I was tasked to find a way to do recursive deletion in Yii. As I asked other developers and looked around the internet the usual answers all came up, use a plugin or use cascade delete at the DB level, but I did not want to do either of these.

ePay Integration - Bulgarian Payment Provider

Updated 5 months ago by yasenTutorials2 comments – viewed 2,971 times – ( +6 )
I. In the view script add the following hidden fields: