Advertisement
VladimirsBudkins

Владимир Кравченко

May 30th, 2016
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.38 KB | None | 0 0
  1. public function getLazyFeed($param) {
  2.         if (!$this->input->is_ajax_request()) {
  3.             show_404();
  4.         }
  5.         $num = $this->input->get('num') ? $this->input->get('num') : 0;
  6.         $lazyFeed = $this->news_model->getLazyFeed($num);
  7.         $this->output
  8.                 ->set_content_type('application/json')
  9.                 ->set_output(json_encode($lazyFeed));
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement