Wiki

Articles in category "how-tos", sorted by ratingX
Displaying 31-40 of 353 result(s).

Authenticating against phpass hashes with Yii

Created 4 years ago by Da:SourcererHow-tos18 comments – viewed 26,856 times – ( +26 ) – version 1.1
Note: This guide is outdated as of Yii v1.1.14 which introduced the CPasswordHelper class. Please use that instead.

Render Form in popup via AJAX (Create and Update) with ajax validation & Also load any page via ajax Yii 2.0 (2.3)

Created about a year ago by skwordenHow-tos8 comments – viewed 72,924 times – ( +25 ) – version 2.0
There are a few issues with the other solutions I originally used that I found from other wikis. I address the issues I had in this much simpler and shorter way. I am also going to explain what is going into way more detail than others to help people understand what's going on.

Avoiding rendering entire page when using CGridView and CListView via AJAX

Created 5 years ago by xrxHow-tos17 comments – viewed 39,043 times – ( +25 ) – version 1.1
Since I used CGridView for a first time, I didn't like how it handled operations like sorting, filtering, changing page and etc using AJAX.

How to show ajax delete status in CGridView like flash messages

Created 5 years ago by hasanaviHow-tos12 comments – viewed 43,732 times – ( +25 ) – version 1.1
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())

Keeping a running total in a CGridView

Created 5 years ago by Steve FriedlHow-tos4 comments – viewed 30,195 times – ( +24 ) – version 1.1
This tip created in conjunction with IRC #yii channel users emilsedgh and tydeas - thanks!
tags: CGridView

How to validate CSRF token with session

Created 4 years ago by yangmlsHow-tos2 comments – viewed 49,741 times – ( +23 ) – version 1.1
First of all, You must change component config to enable the default Yii CSRF validation.
tags: CSRF, session

Integrating Wordpress and Yii: still another approach, using Yii as the router/controller

Created 4 years ago by acorncomHow-tos23 comments – viewed 53,198 times – ( +22 ) – version 1.1
A lot of people have written posts on integrating Yii and WordPress. This article combines goncin's approach with an article I read about integrating Symfony and WordPress and applies it all to Yii and WordPress.

How to use single form to collect data for two or more models (CActiveForm and Ajax Validation edition)

Created 5 years ago by RusAlexHow-tos9 comments – viewed 52,889 times – ( +22 ) – version 1.1
With Yii you can use one CActiveForm for collecting data for two or more models with ajax validation and client validation.

Using filters with CGridView and CArrayDataProvider

Created 4 years ago by marcovtwoutHow-tos33 comments – viewed 67,426 times – ( +22 ) – version 1.1
Using filters on CGridView with CActiveDataProvider is easy, but with CArrayDataProvider it is a bit tricky.

Using Yii with PHP 5.4 built-in webserver instead of Apache

Created 4 years ago by samdarkHow-tos1 comment – viewed 12,355 times – ( +21 ) – version 1.1
Since version 5.4 PHP can work as a simple webserver so you can develop Yii applications without installing Apache. That's how to use it: