Thanks Adam,

It seems that I had a bit of confusion :-)

Now my component looks like this:

class CounterComponent extends Object {

    var $disableStartup = false;
        var $Counter = null;

        function startup(&$controller)  {
                App::import('Model','Counter');
        $this->Counter = new Counter;
        }

    function updateCounters($members) {
                $counterAll = $this->Counter->findByName('xxx');
                ...
        }
}

And I think it works.

If someone thinks that there are any bad design or another issue,
please tells me.

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

Reply via email to