Wiki

Articles in category "how-tos", sorted by commentsX
Displaying 141-150 of 336 result(s).

Using loginRequiredAjaxResponse to solve ajax session timeout

Created 2 years ago by RutgerHow-tos3 comments – viewed 20,523 times – ( +12 ) – version 1.1
This solution requires Yii 1.1.9 or above

Use phing to make Yii application "installable"

Created 2 years ago by sensorarioHow-tos3 comments – viewed 7,724 times – ( +7 ) – version 1.1
To use this "how-to", you need to install phing in your machine.
tags: phing

Upload files in Yii2 with MongoDb and GridFs

Created about a year ago by edoardo849How-tos3 comments – viewed 9,878 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).

Setting and getting systemwide static parameters

Created 4 years ago by Steve FriedlHow-tos3 comments – viewed 69,835 times – ( +11 ) – version 1.1
Occasionally one wishes to set systemwide parameters for an application, such as a contact address for email, an application name, or setting an option that guides major behavior. Yii provides for setting of static parameters in the configuration file, and this article talks about how to do it conveniently.
tags: config

Enforcing "You must agree" requirements in forms

Created 4 years ago by Steve FriedlHow-tos3 comments – viewed 17,809 times – ( +29 ) – version 1.1
Checkboxes have two possible values, true and false, but some applications require that the user select one particular value before proceeding. Examples might be:
tags: validation

Javascript and AJAX with Yii

Created 2 years ago by Fran├žois GannazHow-tos3 comments – viewed 106,297 times – ( +40 ) – version 1.1
This page intends to provide an exhaustive guide of how to use Javascript (JS) in Yii. It does not explain how to learn coding in JS, but how to deal with it "the Yii way".
tags: javascript, AJAX

Run an Yii Application inside an Wordpress page

Created 4 years ago by Paul ApostolHow-tos3 comments – viewed 20,717 times – ( +12 ) – version 1.1
Install a Wordpress site (mine is in "http://localhost/test/wordpress")

Serial Numbers (item counts) in GridView

Created 2 years ago by PeRoChAkHow-tos3 comments – viewed 7,446 times – ( +1 ) – version 1.1
Sometime we need to display numbers of items per page with their counting as a serial number.

Configuring controller access rules to default-deny

Created 3 years ago by Steve FriedlHow-tos3 comments – viewed 64,336 times – ( +11 ) – version 1.1
Starting with the blog tutorial, Yii developers are familiar with the notion of access rules defined in the controller, where the actions are allowed or denied depending on the user's name or role.

Update specific cgridview html row after AJAX request

Created 10 months ago by Kostas Apazidis (KonApaz)How-tos3 comments – viewed 6,783 times – ( +2 ) – version 1.1
After of model update (successfull or not) throught CGridView (check the below link) you probably need to updates the specific row html in cgridview (not entire cgridview)