Articles in category "how-tos", sorted by commentsX
Displaying 151-160 of 353 result(s).

Enforcing "You must agree" requirements in forms

Created 6 years ago by Steve FriedlHow-tos3 comments – viewed 23,262 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 4 years ago by François GannazHow-tos3 comments – viewed 136,116 times – ( +42 ) – 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 6 years ago by Paul ApostolHow-tos3 comments – viewed 26,548 times – ( +12 ) – version 1.1
Install a Wordpress site (mine is in "http://localhost/test/wordpress")

Serial Numbers (item counts) in GridView

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

Displaying uploaded file from DB for update with FileInput widget

Created 2 years ago by Kartik VHow-tos3 comments – viewed 32,762 times – ( +39 / -5 ) – version 2.0
This is for folks who are using \kartik\widgets\FileInput to upload files from your client. How do you display an image for update after you have uploaded it to the server using the widget?

Configuring controller access rules to default-deny

Created 5 years ago by Steve FriedlHow-tos3 comments – viewed 81,973 times – ( +12 ) – 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 2 years ago by Kostas Apazidis (KonApaz)How-tos3 comments – viewed 12,256 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)

PayPal Integration And IPN (Instant Payment Notification)

Created 4 years ago by yasenHow-tos3 comments – viewed 23,995 times – ( +9 ) – version 1.1
Had to implement PayPal payments for a client and would like to share part of my code with you. Because the tutorial will become too long, I'll leave some code to be done by you, e.g. creating models, controllers and db tables for products, orders.

Handling recursive deletion in Yii

Created 4 years ago by JamesBarnsleyHow-tos3 comments – viewed 9,966 times – ( +3 ) – version 1.1
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.

Converting an Artisteer Theme to Yii

Created 5 years ago by bgleeHow-tos3 comments – viewed 25,652 times – ( +9 ) – version 1.1
There are two approaches to converting an Artisteer theme. The first is to simply copy an existing Artisteer – based Yii theme, overlay the CSS and images, then make any necessary tweaks to the layout files. This is undoubtedly the fastest route, but won't teach you as much as doing it from scratch. That's ok. Sometimes getting the job done is the top priority. The second approach is more general and will apply to some extent to other HTML templates that you may want to convert. I'll be covering the first approach in detail, while the second will be more of a general discussion.