Since Cake is a PHP4 compatible framework we cannot support visibility
keywords in core. However, feel free to make changes to your copy :)
Currently there are no templates for Models or Controllers. So you
will need to edit core files to change the output of those tasks.
-Mark
On Nov 18, 12:46 am, sjordan <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I am new to CakePHP.
>
> I have been following along in a tutorial and got to bake.
>
> I understand I can use bake to generate models, views, controllers for
> example.
>
> In this instance I had already constructed a model and was using bake
> to create a controller. However, bake kept failing.
>
> My model looked like the following:
>
> class Product extends AppModel {
> public $name = 'Product';
> public $belongsTo = array('Dealer' => array('className' =>
> 'Dealer',
> 'foreignKey' => 'dealer_id')
> );
>
> }
>
> In the end, I changed "public" to "var" and bake worked like a magic.
>
> I would prefer to write (and have written via bake) all code to be
> PHP5.
>
> How to I configure things such that all code generated by bake and any
> other "magic" is PHP5 compliant?
>
> Thank you in advance.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---