Wiki

Articles in category "how-tos", sorted by ratingX
Displaying 131-140 of 355 result(s).

Use phing to make Yii application "installable"

Created 5 years ago by sensorarioHow-tos3 comments – viewed 9,685 times – ( +7 / -1 ) – version 1.1
To use this "how-to", you need to install phing in your machine.
tags: phing

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

Created 5 years ago by pckabeerHow-tos1 comment – viewed 18,700 times – ( +7 / -1 ) – 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 5 years ago by rix.rix.How-tos1 comment – viewed 23,529 times – ( +7 / -1 ) – 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 5 years ago by rAWTAZHow-tos0 comments – viewed 38,801 times – ( +7 / -1 ) – 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 5 years ago by dhimesHow-tos4 comments – viewed 40,037 times – ( +7 / -1 ) – 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

Yii2 and Pdf files with Mpdf

Created 3 years ago by CTalaHow-tos2 comments – viewed 16,894 times – ( +7 / -1 ) – version 2.0
I am still new to composer and packagist, so I want to share how I am creating the pdf files because for me was not as simple as it should be.

Handling Bootstrap active tabs in Yii via URL

Created 4 years ago by JamesBarnsleyHow-tos17 comments – viewed 28,452 times – ( +7 / -1 ) – version 1.1
I (www.jamesbarnsley.com) 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 6 years ago by LorenHow-tos2 comments – viewed 11,853 times – ( +7 / -1 ) – 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 get & store Last Login DateTime in database?

Created 3 years ago by Rohit SutharHow-tos2 comments – viewed 14,119 times – ( +7 / -1 ) – 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).

Yii2: Configuring different sessions for backend and frontend in Yii Advanced Application Template

Created 2 years ago by hrnairHow-tos2 comments – viewed 25,303 times – ( +7 / -1 ) – version 2.0
This is as an extension of this wiki by Kartik V which shows to make different enableAutoLogin cookies for frontend and backend.