Wiki

Sorted by date (updated)X
Displaying 361-370 of 468 result(s).

How to write a simple application component

Updated about a year ago by zaccariaHow-tos4 comments – viewed 20,031 times – ( +12 / -7 )
An application component is a confortable way for share information among all component of the application

Sub-domains with different databases in Yii!

Updated about a year ago by jwerdHow-tos3 comments – viewed 7,942 times – ( +1 )
Sub-domains with different databases in Yii!

Single table inheritance

Updated about a year ago by samdarkHow-tos6 comments – viewed 13,660 times – ( +31 )
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 about a year ago by samdarkTips2 comments – viewed 6,658 times – ( +12 )
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 about a year ago by Russell EnglandHow-tos9 comments – viewed 30,234 times – ( +12 / -2 )
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 2 years ago by Rodrigo CoelhoTutorials0 comments – viewed 4,323 times – ( +2 / -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.

A simple class to use a different db for a module

Updated 2 years ago by Maurizio DombaTips2 comments – viewed 8,502 times – ( +8 )
What would you do if you want/need to have a different than the main database connection in an module's models?

How to install pdo_oci

Updated 2 years ago by Horacio SeguraHow-tos1 comment – viewed 12,366 times – ( +1 )
From: http://lacot.org/ and me.
tags: pdo oci php

Using Pear Mail Mail_Mime and Mail_Queue

Updated 2 years ago by LorenHow-tos2 comments – viewed 5,683 times – ( +7 )
Create a component (/protected/components/PearMail.php) Edit this as needed based on where you put the files from PEAR.