Instead of using $uses which loads the model for every action
regardless of it being utilized you can use something more on the fly
when you actually need it like so:

In any action in your controller:

$CountEmail = ClassRegistry::init('CountEmail');
$CountEmail->find(....);


Nick

On Jun 14, 3:09 am, amjith ps <[email protected]> wrote:
> hi friends,
>
> I want to use another table update on a controller which users one
> model class.
>
> I have emailsController with its model as Email
> I uses this in the controller, while i fetch the data using Email
> model i want to update another table with count. say the table is
> count_emails. how will i do this in the same controller?
>
> Hope you got my doubt.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to