Wiki

Articles in category "how-tos", sorted by viewsX
Displaying 81-90 of 355 result(s).

Integrating HybridAuth directly into Yii without an extension

Created 4 years ago by biz devHow-tos8 comments – viewed 41,595 times – ( +15 / -1 ) – version 1.1
This article tries to explain the steps required in integrating the HybridAuth into Yii directly, without using an extension.

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

Created 4 years ago by Maug LeeHow-tos2 comments – viewed 41,309 times – ( +8 / -1 ) – 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.

Nested inline active fields inside Bootstrap horizontal forms

Created 3 years ago by Kartik VHow-tos2 comments – viewed 41,156 times – ( +42 / -1 ) – version 2.0
Are you using the Bootstrap 3 form styles with Yii 2 Active Forms? Have you faced problems in displaying complex layouts which needs you to display multiple inline form fields in a single row, within bootstrap horizontal forms. Then read on.

How to register scripts and css

Created 2 years ago by oligalmaHow-tos0 comments – viewed 41,141 times – ( -1 ) – version 1.1
First of all, we need to download the jQuery library and store it in the js folder. In this example we are using the version 2.1.3.

Elementary introduction to using jQuery ajax and the yii framework

Created 5 years ago by dhimesHow-tos4 comments – viewed 41,069 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

Using International Dates

Created 6 years ago by Russell EnglandHow-tos4 comments – viewed 39,728 times – ( +18 / -1 ) – version 1.1
I needed British (dd/mm/yyyy) formatted dates throughout my application but found it very difficult to find examples of how to do this - until I found this excellent forum post http://www.yiiframework.com/forum/index.php?/topic/3649-dealing-with-i18n-date-formats/

Setting up PHPUnit and Selenium with IntelliJ IDEA/PhpStorm

Created 5 years ago by rAWTAZHow-tos0 comments – viewed 39,634 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.

URL management for Websites with secure and nonsecure pages

Created 5 years ago by qiangHow-tos12 comments – viewed 39,412 times – ( +29 / -1 ) – version 1.1
In this article, I will describe how to manage URLs for a Website that has both secure and nonsecure content.
tags: URL

Getting the Most out of APC for Yii

Created 5 years ago by Da:SourcererHow-tos10 comments – viewed 39,334 times – ( +17 / -1 ) – version 1.1
The Advanced PHP Cache is a PHP extension which primarily serves as an opcode cache for PHP. The basic idea is to save PHP from re-evaluating the PHP code to intermediate bytecode on each request. Installing and enabling APC already yields a significant performance benefit. However, APC is not a black box that will magically change all for the better. More over it is important to understand that APC needs memory to operate.
tags: caching, apc

Single table inheritance

Created 6 years ago by samdarkHow-tos8 comments – viewed 39,324 times – ( +41 / -1 ) – version 1.1
Relational databases do not support inheritance so if we need to represent it, we have to somehow store meta info while keeping performance by minimizing JOINs. One way to solve this problem is using single table inheritance. All fields for the whole class tree are stored in a single table. Class name is stored in the type field of the same table.