Wiki

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

How to use YiiBooster Bootstrap Gallery

Created 2 years ago by Antonio RamirezHow-tos3 comments – viewed 21,645 times – ( +4 ) – version 1.1
Since version 1.0.4, Yii developers can make use of the image gallery provided by Sebastian Tshan, a great javascript developer that has created some true gems like the jquery file upload plugin.

Configuring controller access rules to default-deny

Created 3 years ago by Steve FriedlHow-tos3 comments – viewed 60,942 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 7 months ago by KonApazHow-tos3 comments – viewed 5,520 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 2 years ago by yasenHow-tos3 comments – viewed 16,630 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 2 years ago by JamesBarnsleyHow-tos3 comments – viewed 7,153 times – ( +3 ) – version 1.1
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.

Converting an Artisteer Theme to Yii

Created 3 years ago by bgleeHow-tos3 comments – viewed 21,640 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.

Save uploaded file with any filename characters

Created 7 months ago by KonApazHow-tos3 comments – viewed 2,464 times – ( +1 ) – version 1.1
First of all this is a very common problem, for more details see this post http://www.yiiframework.com/forum/index.php/topic/52052-upload-file-with-any-charset/

Extending an ActiveRecord model

Created about a year ago by BogseyHow-tos3 comments – viewed 11,657 times – ( +2 / -3 ) – version 1.1
Introduction

How to use an application behavior to maintain runtime configuration

Created 3 years ago by zaccariaHow-tos3 comments – viewed 25,183 times – ( +28 ) – version 1.1
In this tutorial will be explained a method to manage some configuration runtime. This excellent tutorial follows a similar approach, but requires to write a masterclass which all controllers are supposed to extend, following this wiki you can achieve the same by only editing the configuration.

YiiBooster: How to implement files and images upload on TbRedactor Widget

Created about a year ago by Antonio RamirezHow-tos3 comments – viewed 19,459 times – ( +13 ) – version 1.1
I have been requested to provide a tutorial on how to use the file upload feature of the TbRedactor widget, and even though I am no longer supporting the library due that the work belongs to Clevertech, I feel that I owe that to the Yii developers. So, here is the  tutorial.