Re: Access to Classes

2006-07-18 Thread John David Anderson (_psychic_)


On Jul 18, 2006, at 9:31 AM, [EMAIL PROTECTED] wrote:


 I'm new to Cake, and am wondering how I access the pre-defined classes
 in the cake structure.  I understand how to implement components, and
 helpers.  Is there a special way at including certain classes such as
 the File, NeatString, or NeatArray classes.

The uses() function will automatically include CakePHP libraries for  
you.

uses('sanitize', 'neat_array', 'neat_string');

After using uses(), you can create new instantiations of the objects.

-- John



--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Re: Access to Classes

2006-07-18 Thread [EMAIL PROTECTED]

Sweet!  Thanks.


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---