Wiki

Sorted by ratingX
Displaying 301-310 of 732 result(s).

CSqlDataProvider in CGridView

Created 11 months ago by Kostas Apazidis (KonApaz)Tutorials8 comments – viewed 10,864 times – ( +7 ) – version 1.1
In this wiki I will show how could use a CSqlDataProvider in CGridView with specific features

Elementary introduction to using jQuery ajax and the yii framework

Created 2 years ago by dhimesHow-tos4 comments – viewed 29,539 times – ( +7 ) – version 1.1
In doing internet searches trying to learn how to incorporated ajax into web pages generated by the yii framework I noticed that there seems to be a lot of confusion. I worry that too-clever hacks will be broken in upgrades of the framework.
tags: AJAX

Upload CSV File

Created 2 years ago by bhavesh vaghelaTutorials2 comments – viewed 11,076 times – ( +7 ) – version 1.1
View file

Handling Bootstrap active tabs in Yii via URL

Created 2 years ago by JamesBarnsleyHow-tos6 comments – viewed 18,418 times – ( +7 ) – 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.

Using Pear Mail Mail_Mime and Mail_Queue

Created 3 years ago by LorenHow-tos2 comments – viewed 9,117 times – ( +7 ) – version 1.1
Create a component (/protected/components/PearMail.php) Edit this as needed based on where you put the files from PEAR.

Implementing a Registration Process using the yii-user-management module

Created 3 years ago by thyseusTutorials6 comments – viewed 52,945 times – ( +7 ) – version 1.1
Hi Folks,

How to get & store Last Login DateTime in database?

Created 6 months ago by Rohit SutharHow-tos2 comments – viewed 3,987 times – ( +7 ) – version 1.1
In this wiki I will show how could be store last login date & time in database. First we need a field LastLoginTime (Type must be datetime). this field store a user login detalis (like - Date & Time).

CGridView. Add custom class to table rows preserving original „odd“ and „even“

Created about a year ago by Maug LeeHow-tos2 comments – viewed 23,354 times – ( +7 ) – version 1.1
Lets say we have such a CGridView widget showing a list of users for administrator. Users have status „active“ or „disabled“. Grid widget puts class „odd“ or „even“ to rows and we want to preserve this. So we want to add a class „disabled“ to rows with disabled users.

Local time zones and locales

Created 3 years ago by Russell EnglandHow-tos9 comments – viewed 54,510 times – ( +14 / -2 ) – version 1.1
Following on from international dates, I also wanted times in the local timezone and format. This was a little more tricky but I think I've got a solution. This is only really appropriate if you have an international app.

CButtonColumn: Use special variable $data for the 'id' in the 'options' of a button

Created 2 years ago by bluezedTutorials5 comments – viewed 22,203 times – ( +10 / -1 ) – version 1.1
In an application I had a CGridView with a CButtonColumn and for an Ajax-Request I needed to make sure that the IDs of the buttons would not change when the GridView was updated so in effect I wanted to link them to the $data->id. So I tried: