hi
Thanks for the suggestions..
@amit
I specifically don't want to put in AppModel as I think it can also be
useful to controllers as well as views.
@grigri
Thanks for the detailed explanation. One thing about my class is that
it doesn't necessarily has to extend Object. I was just trying to copy
Set class of CakePHP. Given this, can you describe the tradeoff
between putting in vendor vs as a CakePHP library
Regards,
Ritesh
On Oct 15, 8:04 am, "Amit Badkas" <[EMAIL PROTECTED]> wrote:
> On 10/15/07, bingo <[EMAIL PROTECTED]> wrote:
>
>
>
> > Hi,
>
> > I have some generic data processing that most of the models need. So I
> > wrote a class that extends Object. However, I didn't understand to
> > make available throughout my application. This is how my class is
> > define
>
> - Why not in the AppModel class?
>
> Class ExtendedSetOperations extends Object{
>
>
>
>
>
> > public getCount($data, $path)
> > ....
> > }
> > }
>
> > What I am trying to is call this class from my model in the same way
> > as I call Set::extract
>
> > I considered the object of Using vendor library but I don't want to
> > get that route as then I have to load it everything a model needs
> > these functions.
>
> > Regards,
> > Ritesh
>
> --
> Regards,
> Amit
>
> http://amitrb.wordpress.com/http://cheesecake-photoblog.org/http://www.sanisoft.com/blog/author/amitbadkas-
> Hide quoted text -
>
> - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake
PHP" 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
-~----------~----~----~----~------~----~------~--~---