Wiki

Articles in category "how-tos", sorted by ratingX
Displaying 211-220 of 302 result(s).

Entire Messages into javascript object

Created about a year ago by markuxHow-tos0 comments – viewed 4,280 times – ( +2 ) – version 1.1
I needed all messages with their translation into javascript. This is my solution:

Attaching multiple event handlers to onBeginRequest

Created 4 months ago by BoazHow-tos0 comments – viewed 2,027 times – ( +2 ) – version 1.1
There came the need to perform two operations, always, on 'application boot' time. Example? My real world example involved some geo-location logic (that's the first operation) and syncing of some session details so KcFinder can be in sync with the user in context - each user with his own session container (the second).

Using phpseclib with Yii

Created about a year ago by nkdHow-tos8 comments – viewed 5,975 times – ( +2 ) – version 1.1
I installed phpseclib because I needed to do some AES encryption in my project. After all the hassle of installing php lib, I found out that Yii already has a security module (securityManager). I finally decided to keep using phpseclib because it has one big advantage over Yii securityManager module, it does not requite mcrypt to be installed in the phpserver!
tags: security

How to use GridView with AJAX

Created 2 months ago by Antonio RamirezHow-tos0 comments – viewed 3,083 times – ( +2 ) – 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

Cómo enviar emails usando SMTP

Created 2 months ago by robregonmHow-tos0 comments – viewed 1,195 times – ( +2 ) – version 2.0
Seguir a @robregonm

pass variables or content block from view file to layout file

Created about a year ago by yiqing95How-tos0 comments – viewed 12,379 times – ( +2 ) – version 1.1
If you use yiic to generate webApplication there will be a layout folder under the protected/views/, and the Controller class under protected/components which will use by default these layouts files.

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

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

caching controllers with filters()

Created 3 years ago by RusAlexHow-tos1 comment – viewed 9,435 times – ( +2 ) – version 1.1
Hello, this article will describe some aspects about caching controllers with filters() method in your controller. And I will describe some problems I meet when using this approach for caching, the main problem was

Update related models of a model using listBox and checkBoxList in the form

Created 2 months ago by KonApazHow-tos0 comments – viewed 1,708 times – ( +2 ) – version 1.1
Suppose you want to have a list in Category with its related products and you want to updates the list (removing or insert product items) This wiki show us how to do that

Multilanguage Lorem Ipsum Text Generator

Created about a year ago by yasenHow-tos2 comments – viewed 4,287 times – ( +2 ) – version 1.1
Taking futher the idea from Piotr Masełkowski - http://www.yiiframework.com/extension/elipsum/ here's how to generate multilanguage Lorem Ipsum text. This example uses English and Bulgarian sample paragraphs. Create a class in /protected/components/LoremIpsum.php. Wall of text incoming wohoo...