Wiki

Sorted by commentsX
Displaying 361-370 of 470 result(s).

Using Bootstrap with LESS

Created 4 months ago by Chris83How-tos1 comment – viewed 10,869 times – ( +13 )
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.

config Use MS SQL SERVER 2005 2008.

Created 2 years ago by vcxz_1982Tutorials1 comment – viewed 15,402 times – ( +4 )
Use SQL SERVER 2000, the date format not like: yyyy/mm/dd hh:mm:ss. So I change to use SQL SERVER 2008 EXPRESS.

Limit a CGridView field to some preset length.

Created 2 months ago by le_topHow-tos1 comment – viewed 2,352 times – ( +8 )
Sometimes text inside a gridview column is just too long. That's why I figured out a way to make the column smaller while still providing the information.

Email function at Contact page

Created 2 months ago by sarthakTutorials1 comment – viewed 2,321 times – ( +1 / -3 )
***note : only for linux users.
tags: email, contact, ssmtp

Open Dialog from ajax content

Created 2 months ago by TouzasHow-tos1 comment – viewed 4,142 times – ( +3 / -1 )
This tutorial will show you how to create Ajax dialog. It's very simple code.

A simple way to get Yii client-side form validation run when submitting by ajax

Created 2 months ago by nlacTutorials1 comment – viewed 3,794 times – ( +4 )
A time ago i've met the issue that Yii doesn't run any client-side form validation when submitting the form by CHtml::ajaxSubmitButton. The small javascript below helps to fix it.

Using a CDbDataReader (sql query result) in a zii widget (such as CGridView or CListView)

Created about a year ago by Revelis Luc BonninHow-tos1 comment – viewed 12,952 times – ( +9 / -1 )
If in your application you have to proceed to a complex SQL query that is not associated to a model, you will use CDbDataReader like it is described in the Yii documentation. An example could be

How to use a component before every action of a controller

Created about a month ago by transistorTips1 comment – viewed 2,722 times – ( +1 )
I guess this is a tip on how to execute some code before every action in a controller, because I will tell you how I did it and maybe you can use the idea in your project.

Display a nice exception message on ajax requests

Created about a year ago by Maurizio DombaTips1 comment – viewed 15,210 times – ( +11 )
When an exception is thrown in our code like
tags: error, exception

Profiling using XDebug

Created 23 days ago by le_topHow-tos1 comment – viewed 1,160 times – ( +2 )
A short explication on how to extract profile information for PHP on your server using XDebug and KCacheGrind or WinCacheGrind.