Rapid Application Development with Open Source Software

Next: CakePHP 2 Layout for RSS UP: TOC

Let start with the controller code of CakePHP.

touch /usr/local/www/logikfabrik.com/cakephp/app/Controller/RssController.php

Here is the complete controller action

layout = 'rss/default';

    // get recently updates chapters:   
    $recent = $this->Rss->getRecent();
    $this->RequestHandler->setContent('rss','application/rss+xml');
    $this->response->type('xml');

    // return the result to the view
    return $this->set(compact('recent'));
}



}
Next: CakePHP 2 Layout for RSS UP: TOC