Wiki

Articles in category "how-tos", sorted by viewsX
Displaying 71-80 of 350 result(s).

How to use nested DB transactions (MySQL 5+, PostgreSQL)

Created 6 years ago by mindehHow-tos6 comments – viewed 38,487 times – ( +46 ) – version 1.1
Original source code and idea are from: PHP, PDO & Nested Transactions.

Avoiding rendering entire page when using CGridView and CListView via AJAX

Created 5 years ago by xrxHow-tos17 comments – viewed 38,265 times – ( +24 ) – version 1.1
Since I used CGridView for a first time, I didn't like how it handled operations like sorting, filtering, changing page and etc using AJAX.

How to use GridView with AJAX

Created 2 years ago by Antonio RamirezHow-tos6 comments – viewed 38,127 times – ( +14 ) – version 2.0
With the adoption of PJax on Yii2 things  have change quite a bit with GridView when it comes to work with them in AJAX mode. It will probably be confusing at the beginning, but then you will soon realize how powerful the new approach is.
tags: yii2, pjax, widget

Open bootstrap modal and load content via Ajax

Created 2 years ago by JbalTeroHow-tos1 comment – viewed 36,301 times – ( +3 ) – version 1.1
My goal here is to Open bootstrap modal and load ANY content using ajax response.

How to send emails using SMTP

Created 2 years ago by robregonmHow-tos1 comment – viewed 36,205 times – ( +7 ) – version 2.0
Follow @robregonm
tags: yii2, email, mail, mailer, smtp

Using International Dates

Created 5 years ago by Russell EnglandHow-tos4 comments – viewed 35,808 times – ( +18 ) – 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/

Integrating HybridAuth directly into Yii without an extension

Created 3 years ago by biz devHow-tos8 comments – viewed 35,549 times – ( +14 ) – version 1.1
This article tries to explain the steps required in integrating the HybridAuth into Yii directly, without using an extension.

Elementary introduction to using jQuery ajax and the yii framework

Created 3 years ago by dhimesHow-tos4 comments – viewed 35,519 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

Getting the Most out of APC for Yii

Created 4 years ago by Da:SourcererHow-tos10 comments – viewed 35,061 times – ( +17 ) – 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

Client-side form validation using Twitter Bootstrap's Popovers

Created 3 years ago by TrejderHow-tos4 comments – viewed 34,929 times – ( +4 / -1 ) – version 1.1
This article explains how to easily turn standard text-line validation errors into beautifully and professionally looking Twitter Bootstrap's Popovers.