Wiki

Sorted by date (updated)X
Displaying 681-690 of 785 result(s).

Using CJuiDialog to edit rows in a CGridView

Updated 6 years ago by Russell EnglandTips8 comments – viewed 33,672 times – ( +4 / -2 ) – version 1.1
I have a CGridView with a list of clients/events. For each row (EventClient) I wanted a quick edit dialog.

Integrating Yii with Wordpress

Updated 6 years ago by isekreamTips5 comments – viewed 55,068 times – ( +10 / -2 ) – version 1.1
Well I finally had some time and tinkered a bit with the notion of integrating wordpress and Yii. Now for me I wanted to use Yii as a framework to develop wordpress plugins. Using some tips from imasia Article I was able to do a simple integration of yii as a wordpress plugin. The integration was very basic and i just used yii with its default installation site. I don;t know how it will really react with CRUD application as yet but it was fairly easy to integrate after reading the article...

How to write a simple application component

Updated 6 years ago by zaccariaHow-tos5 comments – viewed 57,265 times – ( +20 / -8 ) – version 1.1
An application component is a confortable way for share information among all component of the application

Sub-domains with different databases in Yii!

Updated 6 years ago by jwerdHow-tos5 comments – viewed 16,643 times – ( +2 / -1 ) – version 1.1
Sub-domains with different databases in Yii!

Single table inheritance

Updated 6 years ago by samdarkHow-tos8 comments – viewed 36,786 times – ( +41 / -1 ) – version 1.1
Relational databases do not support inheritance so if we need to represent it, we have to somehow store meta info while keeping performance by minimizing JOINs. One way to solve this problem is using single table inheritance. All fields for the whole class tree are stored in a single table. Class name is stored in the type field of the same table.

Getting nulls from database instead of empty strings

Updated 6 years ago by samdarkTips2 comments – viewed 12,265 times – ( +13 / -1 ) – version 1.1
To get null from database instead of empty strings you need to set up your DB connection as follows:
tags: database, null

Local time zones and locales

Updated 6 years ago by Russell EnglandHow-tos9 comments – viewed 71,596 times – ( +14 / -3 ) – version 1.1
Following on from international dates, I also wanted times in the local timezone and format. This was a little more tricky but I think I've got a solution. This is only really appropriate if you have an international app.

[PT-BR] Proteção Contra Logout CSRF

Updated 6 years ago by Rodrigo CoelhoTutorials0 comments – viewed 8,486 times – ( +2 / -2 ) – version 1.1
CSRF é o acrônimo para Cross-site request forgery. CSRF é um ataque que forca o usuário a executar ações não desejadas numa aplicação Web na qual ele está autenticado.

Implementing a Registration Process using the yii-user-management module

Updated 6 years ago by thyseusTutorials6 comments – viewed 65,668 times – ( +7 / -1 ) – version 1.1
Hi Folks,

A simple class to use a different db for a module

Updated 6 years ago by Maurizio Domba CerinTips3 comments – viewed 18,865 times – ( +10 / -1 ) – version 1.1
What would you do if you want/need to have a different than the main database connection in an module's models?