Wiki articles

Showing 61-80 of 650 items.

Changing Controllers Name

Created 8 years ago by Trejder, updated 6 years ago by Trejder.

This very short how-to presents steps required to change controller name. It is oriented for less experienced users, which are starting their journey with Yii, to avoid common newbie pitfalls.

4 0
2 followers
Viewed: 19 434 times
Version: 1.1
Category: How-tos

The MrFisk IRC Bot

Created 6 years ago by rAWTAZ, updated 5 years ago by rAWTAZ.

MrFisk is a sleek little bot hanging out in the official #yii IRC channel on freenode, meant to serve Yii users with documentation lookups and other things. This document intends to provide a summary of what MrFisk can do for you and how to use his fin^H^Heatures.

6 0
7 followers
Viewed: 30 067 times
Version: 1.1
Category: Others
Tags: bot, IRC, MrFisk, YiiBot

Custom Archive in Blog system

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

Hi I had made simple archive system for blog system that can handle tbl_post. I had used simple CDbCriteria not more than that. I know there is more and many better way to this but I think this will give some idea to users to generate new idea or customized or modified this version of code.

1 0
2 followers
Viewed: 7 480 times
Version: 1.1
Category: Tips

Entire Messages into javascript object

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

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

1 0
3 followers
Viewed: 7 856 times
Version: 1.1
Category: How-tos

Email by YiiMailer, Call Outlook, IMAP

Created 5 years ago by Scott_Huang, updated 5 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: 11 789 times
Version: 1.1
Category: How-tos

ChromePHP for Yii

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

ChromePHP is a console logging extension for Google Chrome.

3 1
4 followers
Viewed: 14 902 times
Version: 1.1
Category: Tips

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

Created 6 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: 9 792 times
Version: 1.1
Category: Tips
Tags: facebook, user

Extending common classes to allow better customization

Created 8 years ago by Steve Friedl, updated 8 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: 33 873 times
Version: 1.1
Category: Tips
Tags:

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

Created 6 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: 9 971 times
Version: 1.1
Category: Tips

An important tip when you are using CArrayDataProvider.

Created 6 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: 15 773 times
Version: 1.1
Category: Tips

Attaching multiple event handlers to onBeginRequest

Created 5 years ago by Boaz, updated 5 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: 10 731 times
Version: 1.1
Category: How-tos

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

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

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

0 0
1 follower
Viewed: 9 580 times
Version: 1.1
Category: Tutorials
Tags: indonesia

Making a CGridView to keep the selection between page changes

Created 5 years ago by bluyell, updated 5 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.

1 0
3 followers
Viewed: 8 706 times
Version: 1.1
Category: Tutorials

Safely checking if a model class exists (without exploding)

Created 5 years ago by Boaz, updated 5 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: 11 235 times
Version: 1.1
Category: How-tos

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

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

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

2 1
3 followers
Viewed: 9 981 times
Version: 1.1
Category: How-tos

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

Created 6 years ago by bennouna, updated 5 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: 11 564 times
Version: 1.1
Category: Tutorials

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

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

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

1 0
3 followers
Viewed: 16 604 times
Version: 1.1
Category: How-tos

Advanced CGridview issues - custom button using php and html

Created 5 years ago by Kostas Apazidis (KonApaz), updated 5 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 029 times
Version: 1.1
Category: How-tos

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

Created 6 years ago by Rodrigo Coelho, updated 6 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: 10 998 times
Version: 1.1
Category: Tips
Tags:

Setting static modules' properties in config

Created 6 years ago by Alexander Palamarchuk, updated 6 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 226 times
Version: 1.1
Category: Tips
Tags: config, module