Wiki

Articles in category "how-tos", sorted by date (updated)X
Displaying 121-130 of 255 result(s).

Using Bootstrap with LESS

Updated about a year ago by Chris83How-tos1 comment – viewed 28,587 times – ( +14 ) – version 1.1
I discovered Twitter Bootstrap almost two years ago. After trying it out for a while I fell in love with it. It didn't take long before I realized that it would be great to write an extension that allowed developers to start using Bootstrap in their Yii projects. One night I sat down and started writing what later became my now popular bootstrap extension. Now that the extension is quite widely used in the community I felt that it was time to write about how to use Bootstrap to its full potential. If you use the Bootstrap CSS files you're really missing out on some great features. After reading this article you'll be able to take full advantage of Bootstrap using LESS.

Kickstart development with Yii-App

Updated about a year ago by Chris83How-tos24 comments – viewed 19,943 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.

Handling Bootstrap active tabs in Yii via URL

Updated about a year ago by JamesBarnsleyHow-tos6 comments – viewed 13,317 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.

simple CSV export

Updated about a year ago by bluyellHow-tos5 comments – viewed 10,992 times – ( +3 / -1 ) – version 1.1
tags: csv, excel, export

Filter / Search with CListView

Updated about a year ago by JohnPollardHow-tos7 comments – viewed 27,074 times – ( +24 ) – version 1.1
This is what I did. Its the EASIEST solution that I know of. I just reused the advanced search done in CGridView.

Cheat Sheet: Displaying Name instead of Numbers and Displaying Alphanumeric instead of numeric values

Updated about a year ago by skwordenHow-tos4 comments – viewed 10,755 times – ( +4 / -1 ) – version 1.1
I keep a reference to some simple but painful task if you forget a common or something. I am new to Yii and this took awhile for me to figure out. Everything I read said do this or do that and not a single one worked for me. However, the following did.

PayPal Integration And IPN (Instant Payment Notification)

Updated about a year ago by yasenHow-tos3 comments – viewed 12,670 times – ( +8 ) – 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 about a year ago by AsgarothHow-tos7 comments – viewed 21,186 times – ( +7 ) – 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 about a year ago by adlersdHow-tos12 comments – viewed 29,314 times – ( +20 ) – 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 about a year ago by JamesBarnsleyHow-tos3 comments – viewed 5,953 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.