Wiki

Sorted by viewsX
Displaying 651-660 of 782 result(s).

Access log output from unit tests

Created 4 years ago by MikeTips2 comments – viewed 7,455 times – ( +4 ) – version 1.1
Say, you want to write a test for a component which provides a caching feature. How would you know, that some method of your component returns a cached result? With the solution described here you can inspect all log outputs. So you could search the logs for accesses to the DB to really make sure, that the result was served from cache.

Alternative wildcard characters CDbCriteria

Created 4 years ago by maigretHow-tos0 comments – viewed 7,442 times – ( +3 ) – version 1.1
In SQL, wildcard characters can be used in "LIKE" expressions; the percent sign (%) matches zero or more characters, and underscore (_) a single character. Sometimes users are not familiar with these or they are using different ones like (*) and (+) similar to regular expressions. My colleages do so and then i decided to add this feature by extending CbCriteria. Especially adding a new parameter $wildcard_chars to the method addSearchCondition to replace them if needed with standard SQL characters:

using editors of yiibooster - fix issues - configuration

Created 3 years ago by Kostas Apazidis (KonApaz)How-tos0 comments – viewed 7,416 times – ( +5 ) – version 1.1
if you have use the yiibooster extension, you have definitely used the amazing redactor, html5 and ckEditor editors.

Safely checking if a model class exists (without exploding)

Created 2 years ago by BoazHow-tos0 comments – viewed 7,413 times – ( +1 ) – version 1.1
While rewriting the PcReportContent extension I'm maintaining I've bumped to a challenge. This wiki was born out of it.

Cómo enviar emails usando SMTP

Created 2 years ago by robregonmHow-tos0 comments – viewed 7,374 times – ( +3 ) – version 2.0
Seguir a @robregonm

Email by YiiMailer, Call Outlook, IMAP

Created 2 years ago by Scott_HuangHow-tos0 comments – viewed 7,359 times – version 1.1
In Yii community we have lots of extention can send emails, such as YiiMailer and Swift and so on, or even IMAPI, thanks for team contribution. However, sometimes, in the intranet enviroment, the program cannot run successfully since SMTP /IMAP port been banded. So you need to seek other ways. The most simple way is **call outlook** as COM.

How to apply a layout to an AJAX update

Created 2 years ago by trondHow-tos1 comment – viewed 7,347 times – ( +1 ) – version 1.1
The template system in Yii is quite flexible. By default you have three layers of content:
tags: AJAX, views

CMenu widget like bootstrap navbar with submenu

Created 9 months ago by kv4ntTutorials0 comments – viewed 7,249 times – version 1.1

Make an ajax request to another server using JSONP

Created 2 years ago by Kostas Apazidis (KonApaz)Tips0 comments – viewed 7,226 times – ( +1 ) – version 1.1
There are cases that you want to make an ajax request to another server and get the results.

Save uploaded file with any filename characters

Created 2 years ago by Kostas Apazidis (KonApaz)How-tos3 comments – viewed 7,223 times – ( +1 ) – version 1.1
First of all this is a very common problem, for more details see this post http://www.yiiframework.com/forum/index.php/topic/52052-upload-file-with-any-charset/