Wiki

Sorted by ratingX
Displaying 561-570 of 771 result(s).

Attaching multiple event handlers to onBeginRequest

Created 2 years ago by BoazHow-tos0 comments – viewed 5,982 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).

Catching bounce messages (NDR) and piping them to a Yii command

Created 3 years ago by bennounaTutorials0 comments – viewed 8,726 times – ( +2 ) – version 1.1
In order to avoid bounce messages and unsolicited registrations, most webapps send automatic activation emails upon user registration, and the account remain inactive as long as it is not activated. Better yet, you can periodically purge your data by removing accounts that have not yet been activated.

Installare Yii 2.0.* usando XAMPP su Windows in versione portabile

Created 2 years ago by realteboTutorials0 comments – viewed 10,102 times – ( +2 ) – version 2.0
Una delle soluzioni che preferisco per studiare un framework PHP è avere a disposizione un webserver portabile, ovvero che non richiede una vera e propria installazione. Questo mi permette spesso di lavorare direttamente su una chiavetta USB, potendo passare da un computer ad un altro di casa, o al lavoro, o dai clienti per le demo, senza alcun problema, avendo sempre con me l'ambiente server completo: server web, server MySQL, interprete php.

Using phpseclib with Yii

Created 3 years ago by nkdHow-tos8 comments – viewed 9,020 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

Cómo enviar emails usando SMTP

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

pass variables or content block from view file to layout file

Created 3 years ago by yiqing95How-tos0 comments – viewed 18,855 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 3 years ago by robregonmHow-tos0 comments – viewed 8,044 times – ( +2 ) – version 1.1
[EN] [ES]

Syncing sessions between Yii and KCFinder

Created 3 years ago by Thanasis FotisHow-tos8 comments – viewed 7,857 times – ( +2 ) – version 1.1
Info: As KCFinder's documentation mentions, if your application (Yii in our case) session handling is using the PHP environment configuration - meaning no change in session handling at all, then no change is needed also on KCFinder side to be able to use this session and thus have this simple interface between your Yii webapp and KCFinder. If that's your case then you probably need not read the rest of this article but rather just make sure that before a user attempts to upload or browse your server a session variable is already set for him (or her) with his specific configuration already waiting for KCFinder there. What can this session interface be useful for? For example, for having per-user upload directory. You could have uploadURL variable established in the session variable to contain the user's id. When an upload or browse use case will occur, the client side will trigger the KCFinder completely decoupled from the Yii application. Yet, since you've already synced your user-specific-configuration with KCFinder via the session, KCFinder will pick it up and use it.
tags: File upload

caching controllers with filters()

Created 5 years ago by RusAlexHow-tos1 comment – viewed 12,143 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 years ago by Kostas Apazidis (KonApaz)How-tos0 comments – viewed 11,599 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