javascriptController.php 548 B

12345678910111213141516171819
  1. <?php
  2. class FreshRSS_javascript_Controller extends Minz_ActionController {
  3. public function firstAction () {
  4. $this->view->_useLayout (false);
  5. }
  6. public function actualizeAction () {
  7. header('Content-Type: text/javascript; charset=UTF-8');
  8. $feedDAO = new FreshRSS_FeedDAO ();
  9. $this->view->feeds = $feedDAO->listFeeds ();
  10. }
  11. public function nbUnreadsPerFeedAction() {
  12. header('Content-Type: application/json; charset=UTF-8');
  13. $catDAO = new FreshRSS_CategoryDAO();
  14. $this->view->categories = $catDAO->listCategories(true, false);
  15. }
  16. }