Wiki

Articles in category "how-tos"X
Displaying 151-160 of 309 result(s).

Kickstart development with Yii-App

Created about a year ago by Chris83How-tos24 comments – viewed 22,659 times – ( +21 / -1 ) – version 1.1
I recently created a project called Yii-App on GitHub to kickstart my development of smaller Yii applications. The main goal of the project is to provide a ready-to-use application template that includes my bootstrap extension and many other useful extensions. After reading this article you will be able to use this project as a starting point for all of your Yii projects.

Turn Web HTML Into Newsletter

Created about a year ago by yasenHow-tos1 comment – viewed 7,227 times – ( +8 ) – version 1.1
These newsletters have always been hard to create as regular web HTML is not properly read by web email interfaces and email clients. I thought that the simplest solution would be to use a web page that would serve as a web version of the newsletter and turn it somehow into newsletter HTML.

Handling Bootstrap active tabs in Yii via URL

Created about a year ago by JamesBarnsleyHow-tos6 comments – viewed 16,109 times – ( +6 ) – version 1.1
As a lead developer at Mutable Labs I found that when using the Yii Bootstrap tabs component you will sometimes want to direct the user to a specific tab and not necessarily the first tab. Yii Bootstrap already provides the "active" variable so you can define whether the tab is the active tab or not in PHP. I generally find though that a PHP solution to this problem is rather cumbersome as every tab component will need the PHP code inserted or you will have to extend the tab component somehow to do it.

jQuery UI Datepicker

Created about a year ago by softarkHow-tos11 comments – viewed 47,456 times – ( +12 ) – version 1.1
We all love the convenient gadget, namely jQuery UI Datepicker as an input element for date. Yii supports it as CJuiDatePicker. Let's see how to use it.

Handling recursive deletion in Yii

Created about a year ago by JamesBarnsleyHow-tos3 comments – viewed 6,754 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.

TimeZone dropDown

Created about a year ago by Tibor KatelbachHow-tos0 comments – viewed 5,884 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

Created about a year ago by chuntleyHow-tos5 comments – viewed 14,484 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

PayPal Integration And IPN (Instant Payment Notification)

Created about a year ago by yasenHow-tos3 comments – viewed 15,216 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.

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

Created about a year ago by shulmeHow-tos10 comments – viewed 31,088 times – ( +24 ) – 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: