Wiki

Articles in category "how-tos", sorted by ratingX
Displaying 121-130 of 341 result(s).

Radio Button List with enum values for column of type ENUM >+> incorporate into giix

Created 3 years ago by pckabeerHow-tos1 comment – viewed 15,450 times – ( +7 ) – version 1.1
Let's say our table 'mug' has a column named 'color' of the type ENUM('red','green','blue'). We want to replace the textfield for the attribute color in the create and update forms of a 'mug' with a Radio Button List, which has the enum values as options. This is a rewrite of c@cba in the wiki article of enumDropdownListThe main code was contributed by zaccaria in the forum (see this post).

How to render a view in Fancybox using ajax

Created 2 years ago by rix.rix.How-tos1 comment – viewed 19,785 times – ( +7 ) – version 1.1
Sometimes you want to render a view in Fancybox.
tags: fancybox, ajax, views

Setting up PHPUnit and Selenium with IntelliJ IDEA/PhpStorm

Created 2 years ago by rAWTAZHow-tos0 comments – viewed 28,473 times – ( +7 ) – version 1.1
This article intends to summarize the steps taken to set up PHPUnit and Selenium for a Yii project, with IntelliJ IDEA Ultimate (the IDE). It was done on Mac OS X 10.6.

Elementary introduction to using jQuery ajax and the yii framework

Created 2 years ago by dhimesHow-tos4 comments – viewed 31,428 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

Handling Bootstrap active tabs in Yii via URL

Created 2 years ago by JamesBarnsleyHow-tos6 comments – viewed 19,967 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 4 years ago by LorenHow-tos2 comments – viewed 9,532 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.

How to create a Widget - Recent Comments widget

Created about a year ago by Nisanth thulasiHow-tos3 comments – viewed 13,332 times – ( +7 ) – version all
Here's a simple way to create a Recent comments showing widget to be used in your templates. The idea is just to highlighting your blog's new comments.

How to get & store Last Login DateTime in database?

Created 10 months ago by Rohit SutharHow-tos2 comments – viewed 5,285 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).

Local time zones and locales

Created 4 years ago by Russell EnglandHow-tos9 comments – viewed 57,707 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.

Pjax on ActiveForm and GridView - Yii2

Created 7 months ago by SreenadhHow-tos3 comments – viewed 19,857 times – ( +6 ) – version 2.0
Here is a example on how to use Pjax with GridView (yii\grid\GridView) and ActiveForm (yii\widgets\ActiveForm) widgets in Yii2.