Ejemplo n.º 1
0
 public function index()
 {
     if ($this->RequestHandler->isRss()) {
         $feed_id = intval($this->passedArgs[0]);
         if ($feed_id > 0) {
             $o['limit'] = 20;
             $o['order'] = 'Item.created DESC';
             $o['conditions'] = array("Feed.id" => $feed_id);
             $items = $this->Feed->Item->find('all', $o);
             $this->set(compact('items'));
         } else {
             throw new NotFoundException(__("Invalid Feed ID"));
         }
     }
     parent::index();
 }
Ejemplo n.º 2
0
 public function add()
 {
     $this->___set();
     $this->set('editing', false);
     parent::add();
 }
Ejemplo n.º 3
0
 public function index()
 {
     parent::index();
 }
Ejemplo n.º 4
0
 public function view($id = null)
 {
     $m = ClassRegistry::init('Rss.UsersRole');
     $this->set('users_with_role', $m->findAllByRoleId($id));
     parent::view($id);
 }
Ejemplo n.º 5
0
 public function view($id = null)
 {
     $m = ClassRegistry::init('Rss.ItemsCategory');
     $this->set('items', $m->findAllByCategoryId($id));
     parent::view($id);
 }