Wiki

Sorted by viewsX
Displaying 531-540 of 704 result(s).

Profiling using XDebug

Created about a year ago by le_topHow-tos1 comment – viewed 5,592 times – ( +3 ) – version all
A short explication on how to extract profile information for PHP on your server using XDebug and KCacheGrind or WinCacheGrind.

two or more different collected data in one CGridView

Created 11 months ago by KonApazHow-tos2 comments – viewed 5,508 times – ( +3 / -1 ) – version 1.1
Assume that you have teachers and students model.

Displaying, Sorting and Filtering Model Relations on a GridView

Created 6 months ago by Antonio RamirezHow-tos0 comments – viewed 5,499 times – ( +5 ) – version 2.0
One of the things you will find tricky to implement is the the sorting and filtering of a GridView's column that displays related model data.

Setting static modules' properties in config

Created 2 years ago by Alexander PalamarchukTips0 comments – viewed 5,463 times – ( +2 / -2 ) – version 1.1
You may face a situation when you need to access to a configurable module's property from everywhere and you don't have an instance of this module's class.
tags: config, module

BUM - Add Additional Info to a User

Created about a year ago by fireflyHow-tos1 comment – viewed 5,455 times
How to add additional information to a user when using BUM extension?

Instanciar clase hija basada en campo de modelo padre (CActiveRecord)

Created about a year ago by robregonmHow-tos0 comments – viewed 5,284 times – ( +2 ) – version 1.1
[EN] [ES]

Access log output from unit tests

Created 2 years ago by MikeTips2 comments – viewed 5,259 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.

Get notified about the status of a Facebook user in your web app using periodic Ajax calls.

Created 2 years ago by sirin kTips0 comments – viewed 5,246 times – ( +4 ) – version 1.1
hello, This article is helpful only if you have the following situation: A web app which uses facebook login to login its users and if a user is logged out from his/her facebook account through another browser tab, then your app dont know that he is logged out out or not from his facebook account and he/she will remain as logged in your web application.Its ok if you have no problem with this situation.But if you want to forcefully logout the user from your application if he is logged out from his facebook account means you can try this example.This example uses periodic ajax calls to facebook's graph api to check whether the user is logged in or not.
tags: facebook, user

Alternative wildcard characters CDbCriteria

Created 2 years ago by maigretHow-tos0 comments – viewed 5,215 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:

How to implement cron in Yii 2

Created 6 months ago by hemcHow-tos7 comments – viewed 5,206 times – ( +8 ) – version 2.0
In advance template there is already a file yii. And there is no need to run it as php, it is Linux script.
tags: cron, yii2, console