| 17 | | public $helpers = array('Ajax', 'Fck', 'Gags'); |
| 18 | | |
| 19 | | public $components = array('Edublog', 'Portal', 'Search'); |
| | 17 | public $helpers = array('Ajax', 'Fck', 'Gags', 'Rss'); |
| | 18 | |
| | 19 | public $components = array('Edublog', 'Portal', 'Search', 'RequestHandler'); |
| 82 | | $user_id = $this->Entry->User->field('id', array('User.username'=>$username)); |
| 83 | | $this->Entry->unbindModel(array('hasMany'=>array('Comment'))); |
| 84 | | $this->layout = 'rss'; |
| 85 | | $conditions = array("Entry.status"=>1, "Entry.user_id"=>$user_id); |
| 86 | | $fields = array("Entry.id", "Entry.title", "Entry.created", "Entry.body", "Entry.subject_id", "Entry.user_id", "User.username", "User.name_blog"); |
| 87 | | $order = 'Entry.id DESC'; |
| 88 | | $limit = 20; |
| 89 | | |
| 90 | | $this->set('data', $this->Entry->findAll($conditions, $fields, $order, $limit)); |
| | 82 | |
| | 83 | $channelData = array('title' => 'eduBlog Recent Writing | '. $username, |
| | 84 | 'link' => array('controller' => 'entries', 'action' => 'view', $username), |
| | 85 | 'url' => array('controller' => 'entries', 'action' => 'view', $username), |
| | 86 | 'description' => $username . ' eduBlog Recent on Karamelo', |
| | 87 | 'language' => 'es-mx' |
| | 88 | ); |
| | 89 | |
| | 90 | $user_id = $this->Entry->User->field('User.id', array('User.username'=>$username)); |
| | 91 | |
| | 92 | $this->Entry->unbindModel(array('hasMany'=>array('Comment'))); |
| | 93 | |
| | 94 | $conditions = array("Entry.status"=>1, "Entry.user_id"=>$user_id); |
| | 95 | $fields = array("Entry.id", "Entry.title", "Entry.created", "Entry.body", "Entry.subject_id", "Entry.user_id", "User.username", "User.name_blog"); |
| | 96 | $order = 'Entry.id DESC'; |
| | 97 | $limit = 20; |
| | 98 | |
| | 99 | $entries = $this->Entry->findAll($conditions, $fields, $order, $limit); |
| | 100 | |
| | 101 | $this->set(compact('channelData', 'entries')); |
| | 102 | |