loadModel("YourModel");
$model = &new YourModel();
I've been told that using models in your components is not best
practice, however I do this myself quite often.
On Sep 21, 2:32 pm, "Ananda Putra" <[EMAIL PROTECTED]> wrote:
> How to load a model in a component without declare it in the
> controller which cal the component??
>
> I want to focus and implement all business logic in the component. The
> controller just for call the logic in the component and generate the
> view.
>
> Thanks.
>
> --
> Regards,
> Ananda Putra
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---