Wiki articles

Showing 101-120 of 822 items.

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

Created 11 years ago by sirin k, updated 6 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: 14 365 times
Version: 1.1
Category: Tips

An important tip when you are using CArrayDataProvider.

Created 11 years ago by sirin k, updated 6 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: 19 694 times
Version: 1.1
Category: Tips

Auto-update denormalized attributes with MongoDb and Yii2

Created 10 years ago by edoardo849, updated 9 years ago by CeBe.

You have different collections in MongoDb with de-normalized attributes. As you may know, due to its not-join nature, MongoDb tends to encourage repetition of the same value in different collections (de-normalization). In this MongoDb is opposed to a more SQL-like approach where you usually reference only the ID of the value with a foreign key.

1 0
3 followers
Viewed: 17 564 times
Version: 2.0
Category: Tips

Attaching multiple event handlers to onBeginRequest

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

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

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

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

0 0
1 follower
Viewed: 17 738 times
Version: 1.1
Category: Tutorials
Tags: indonesia

Making a CGridView to keep the selection between page changes

Created 10 years ago by bluyell, updated 9 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: 12 624 times
Version: 1.1
Category: Tutorials

Safely checking if a model class exists (without exploding)

Created 9 years ago by Boaz, updated 9 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: 17 463 times
Version: 1.1
Category: How-tos

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

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

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

2 1
3 followers
Viewed: 12 423 times
Version: 1.1
Category: How-tos

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

Created 11 years ago by bennouna, updated 10 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: 19 373 times
Version: 1.1
Category: Tutorials

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

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

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

1 0
3 followers
Viewed: 26 158 times
Version: 1.1
Category: How-tos

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

Created 9 years ago by realtebo, updated 8 years ago by realtebo.

Personalmente trovo che la versione "portable" sia molto più semplice da aggiornare, ed io tengo sempre costantemente aggiornato TUTTO il parco software relativo al mio webserver.

0 0
2 followers
Viewed: 27 868 times
Version: 2.0
Category: Tutorials

Advanced CGridview issues - custom button using php and html

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

How to use BootstrapInterface

Created 9 years ago by Antonio Ramirez, updated 9 years ago by Antonio Ramirez.

Yii2 introduces the BootstrapInterface to ease our application initialization tasks, whether they are composer based or Application bootstrap (do not mistaken with Bootstrap CSS Framework) based tasks. On this article, I am going to explain how to use it on y...

2 0
3 followers
Viewed: 19 600 times
Version: 2.0
Category: How-tos

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

Created 11 years ago by Rodrigo Coelho, updated 11 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: 13 808 times
Version: 1.1
Category: Tips
Tags:

Cómo enviar emails usando SMTP

Created 9 years ago by robregonm, updated 9 years ago by robregonm.
2 0
2 followers
Viewed: 32 700 times
Version: 2.0
Category: How-tos

What to do when composer fails to update your vendor packages?

Created 9 years ago by Kartik V, updated 9 years ago by Kartik V.
  • Running a composer update does not fetch any new packages (even though the source is updated)
  • A specific vendor package never gets updated
  • Facing on and off problems when fetching packages while performing composer update.
  • You ran a composer update earlier, but it was partially done, before you lost network connectivity, and you cannot refresh packages anymore.
0 4
36 followers
Viewed: 49 528 times
Version: 2.0
Category: Tutorials

Setting static modules' properties in config

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

pass variables or content block from view file to layout file

Created 11 years ago by yiqing95, updated 11 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: 50 395 times
Version: 1.1
Category: How-tos

My Own Components Folder in Yii2

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

In Yii1 I used to have my own components under the components folder of the structure, now with namespacing this is a little bit different.

2 1
2 followers
Viewed: 20 757 times
Version: 2.0
Category: Tips
2 0
1 follower
Viewed: 18 149 times
Version: 1.1
Category: How-tos