I have a small calendar widget-type thing on many pages throughout my site. The goal is for it to retrieve events from X category that fall between Y and Z dates.

My assumption (I'm new to CakePHP) was that I should create a component, and have it do the query. Something like this: 

```
class CalendarComponent extends Object {

    var $uses = array('Event');

    function getEvents($category = null, $date = null, $limit = null) {
        $events = $this->Event->find('list', //conditions to get correct events
        return $events;
    }

}

```

BUT, according to [this CakeBook page](http://book.cakephp.org/view/998/MVC-Class-Access-Within-Components): 

> 
> To access/use a model in a component
>  is not generally recommended
> 
> 
> 

So - where would I store this logic / model call if not in a component? I've admittedly not used a component yet (or not created one anyway) due to lack of really understanding how I should use them - any snippet of advice on this is also VERY welcome.