On 7/22/06, Gustavo Carreno
<[EMAIL PROTECTED]> wrote:
On 7/23/06, Samuel DeVore < [EMAIL PROTECTED]> wrote:
> Though I think that using the __constructor() that cake uses
> everywhere else for php4 and 5 uniformity should work as well.
One should use both ways to define constructor and drop the code on
the __construct, calling it from the PHP4 way:
function ClassName() { $this->__construct();}
function __construct() { //put all your constructor code here }
This way if you migrate to php5 only, it won't break.
--
Gustavo Carreno
---
< If you know Red Hat you know Red Hat,
If you know Slackware you know Linux >
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cake-php
-~----------~----~----~----~------~----~------~--~---
- Correct procedure for db config switching? Ixulai
- Re: Correct procedure for db config switching? Samuel DeVore
- Re: Correct procedure for db config switching? Gustavo Carreno
- Re: Correct procedure for db config switching... Samuel DeVore
- Re: Correct procedure for db config switching? Ixulai