Wiki articles

Showing 61-80 of 650 items.

Entire Messages into javascript object

Created 7 years ago by markux, updated 7 years ago by markux.

I needed all messages with their translation into javascript. This is my solution:

1 0
3 followers
Viewed: 8 287 times
Version: 1.1
Category: How-tos

Email by YiiMailer, Call Outlook, IMAP

Created 6 years ago by Scott_Huang, updated 6 years ago by CeBe.

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.

0 0
6 followers
Viewed: 12 980 times
Version: 1.1
Category: How-tos

ChromePHP for Yii

Created 9 years ago by imehesz, updated 9 years ago by imehesz.

ChromePHP is a console logging extension for Google Chrome.

3 1
4 followers
Viewed: 15 727 times
Version: 1.1
Category: Tips

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

Created 7 years ago by sirin k, updated 2 years ago by Maurizio Domba Cerin.

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 wi...
4 0
6 followers
Viewed: 10 462 times
Version: 1.1
Category: Tips
Tags: facebook, user

Extending common classes to allow better customization

Created 9 years ago by Steve Friedl, updated 9 years ago by Steve Friedl.

The two most commonly-used base classes in most Yii applications are CController and CActiveRecord, each extended to your own particular models and controllers.

36 0
19 followers
Viewed: 35 219 times
Version: 1.1
Category: Tips
Tags:

Solution for session lose of Facebook iframe application in Internet Explorer .

Created 7 years ago by sirin k, updated 2 years ago by Maurizio Domba Cerin.

Facebook iframe app’s session is losing in Internet Explorer when doing a second redirection inside the facebook iframe app.The main reason is ,by default IE wont allow cookies in its priavacy settings If cookies not available means session is also not available for our Facebook iframe app in IE.

2 0
4 followers
Viewed: 10 567 times
Version: 1.1
Category: Tips

An important tip when you are using CArrayDataProvider.

Created 7 years ago by sirin k, updated 2 years ago by Maurizio Domba Cerin.

Yii's CArrayDataProvider is very helpful to display model relation data's directly on it.But it is truely a confusing one because by default it will assume a table field named “id” as primary key for its pagination purpose and what if you dont have field named “id” as primary key on your table? so its truely confusing and if you tried to display without an “id” field on ur table you will get an...

5 1
5 followers
Viewed: 16 402 times
Version: 1.1
Category: Tips

Attaching multiple event handlers to onBeginRequest

Created 6 years ago by Boaz, updated 6 years ago by CeBe.

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).

1 0
2 followers
Viewed: 11 722 times
Version: 1.1
Category: How-tos

belajar AR : part 1 (learn AR : part 1)

Created 9 years ago by rianday, updated 9 years ago by rianday.

hai teman yii... apa kabar.. kembali lagi bersama catatan saya..

0 0
1 follower
Viewed: 16 827 times
Version: 1.1
Category: Tutorials
Tags: indonesia

Making a CGridView to keep the selection between page changes

Created 6 years ago by bluyell, updated 6 years ago by CeBe.

You may find this usefull when you discover your CGridView lost the selection after an update or after a page change, nicely i have build a new extension to cover this problem in a very easy way.

2 0
3 followers
Viewed: 9 518 times
Version: 1.1
Category: Tutorials

Safely checking if a model class exists (without exploding)

Created 6 years ago by Boaz, updated 6 years ago by CeBe.

While rewriting the PcReportContent extension I'm maintaining I've bumped to a challenge. This wiki was born out of it.

1 0
2 followers
Viewed: 12 172 times
Version: 1.1
Category: How-tos

Mais segurança em suas aplicações com Yii e PHPIDS

Created 9 years ago by Rafael Garcia, updated 9 years ago by Rafael Garcia.

PHPIDS é conhecido projeto que pode ser visto em php-ids.org.

2 1
3 followers
Viewed: 10 303 times
Version: 1.1
Category: How-tos

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

Created 7 years ago by bennouna, updated 6 years ago by bennouna.

But in the supposedly small share of webapps that don't ask users to activate their accounts, you can end up with a number of bounce messages and non-accessible active accounts.

1 0
7 followers
Viewed: 16 535 times
Version: 1.1
Category: Tutorials

How to avoid a database update if the ActiveRecord was not modified

Created 6 years ago by tomvdp, updated 6 years ago by tomvdp.

The classic Yii way for doing an update action is as follows:

1 0
3 followers
Viewed: 18 619 times
Version: 1.1
Category: How-tos

Advanced CGridview issues - custom button using php and html

Created 6 years ago by Kostas Apazidis (KonApaz), updated 6 years ago by Kostas Apazidis (KonApaz).

This wiki shows about how to make a custom column or how to pass php-Yii-html code in CButtonColumn (as a button)

1 0
2 followers
Viewed: 10 786 times
Version: 1.1
Category: How-tos

[pt-br] O guia de estudos do Yii para iniciantes

Created 7 years ago by Rodrigo Coelho, updated 7 years ago by Rodrigo Coelho.

You can find the english version of this wiki here: The complete beginner's study guide for the Yii Framework.

1 0
3 followers
Viewed: 11 584 times
Version: 1.1
Category: Tips
Tags:

Setting static modules' properties in config

Created 7 years ago by Alexander Palamarchuk, updated 7 years ago by Alexander Palamarchuk.

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.

1 1
2 followers
Viewed: 11 804 times
Version: 1.1
Category: Tips
Tags: config, module

pass variables or content block from view file to layout file

Created 7 years ago by yiqing95, updated 7 years ago by Maurizio Domba Cerin.

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.

2 0
6 followers
Viewed: 28 381 times
Version: 1.1
Category: How-tos
2 0
1 follower
Viewed: 13 919 times
Version: 1.1
Category: How-tos
1 3
3 followers
Viewed: 7 646 times
Version: 1.1
Category: How-tos