public function &bresourceAction()
 {
     $model_and_view = new __ModelAndView('resource');
     $resource_id = __ActionDispatcher::getInstance()->getRequest()->getParameter('resource_id');
     $model_and_view->addObject('resource_id', $resource_id);
     return $model_and_view;
 }
 protected function _process()
 {
     //Call to the model to get the lastest 5 advertisements:
     $last_5_advs = __ModelManager::getInstance()->getLastest5Advertisements();
     //Instantiate a __ModelAndView instance, by setting the view code as 'last_advertisements'
     $model_and_view = new __ModelAndView('last_advertisements');
     //Add the last 5 advertisements to the __ModelAndView instance:
     $model_and_view->addObject('last_advertisements', $last_5_advs);
     //Return the __ModelAndView instance:
     return $model_and_view;
 }