Articles in category "how-tos", sorted by date (updated)X
Displaying 221-230 of 345 result(s).

PayPal Integration And IPN (Instant Payment Notification)

Updated 2 years ago by yasenHow-tos3 comments – viewed 19,489 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.

Additional form data with XUpload

Updated 2 years ago by AsgarothHow-tos7 comments – viewed 31,886 times – ( +9 ) – version 1.1
In this article you'll learn how to send additional form data when uploading files using XUpload widget

How to show ajax delete status in CGridView like flash messages

Updated 2 years ago by adlersdHow-tos12 comments – viewed 40,179 times – ( +24 ) – 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())

Handling recursive deletion in Yii

Updated 2 years ago by JamesBarnsleyHow-tos3 comments – viewed 8,208 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.

Multilanguage Lorem Ipsum Text Generator

Updated 2 years ago by yasenHow-tos2 comments – viewed 5,618 times – ( +2 ) – version 1.1
Taking futher the idea from Piotr MaseĊ‚kowski - here's how to generate multilanguage Lorem Ipsum text. This example uses English and Bulgarian sample paragraphs. Create a class in /protected/components/LoremIpsum.php. Wall of text incoming wohoo...

TimeZone dropDown

Updated 2 years ago by Maurizio Domba CerinHow-tos0 comments – viewed 7,309 times – ( +2 ) – version 1.1
I spend a bit of time looking for the this piece of code while building time feature on a site this tutorial also helped Local time zones and locales

Load the Yii-Bootstrap Extension on Specific Actions

Updated 2 years ago by chuntleyHow-tos5 comments – viewed 17,914 times – ( +10 ) – version 1.1
A big problem I've hit with the Yii-Bootstrap extension is that all AJAX requests are initializing Bootstrap because of preload. This is a huge waste of resources, especially when using AJAX-based file uploaders that split the file into chunks. Large file uploads using that method could be initializing bootstrap hundreds of times.
tags: bootstrap, filter

CKEditor Integration (includes steps for file uploads) - Step by Step

Updated 2 years ago by shulmeHow-tos12 comments – viewed 45,145 times – ( +26 ) – version 1.1
Hey guys, I'm hoping other people will find this helpful. Today I went through the process of adding CKEditor to one of my projects, and then integrating KCFinder as the image uploader. It will be used in a CActiveForm, without the use of any crazy weird widgets. All paths are relative, using Yii functions, so this will work no matter where you install. Here it is:

How to use YiiBooster TbFileUpload widget

Updated 2 years ago by Antonio RamirezHow-tos15 comments – viewed 38,652 times – ( +11 ) – version 1.1
The following wiki is to explain how to make use of the TbFileUpload widget from YiiBooster. I have received a couple of requests and I thought was worth writing a wiki for it.

MigrateCommand class for multiple sites using one code base

Updated 2 years ago by Hudson NguyenHow-tos1 comment – viewed 3,349 times – ( +1 ) – version 1.1
My CMS supports multiple sites using one code base therefore the db connection can only be configured by detecting the site's domain.