Changeset 465
- Timestamp:
- 06/23/10 18:49:08 (20 months ago)
- Location:
- trunk
- Files:
-
- 4 edited
-
controllers/podcasts_controller.php (modified) (3 diffs)
-
views/layouts/blog.ctp (modified) (1 diff)
-
views/layouts/rss/rss.ctp (modified) (1 diff)
-
views/podcasts/rss.ctp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/controllers/podcasts_controller.php
r463 r465 25 25 26 26 /** 27 * Load CakePHP helpers28 * @access public 29 * @var array 30 */ 31 public $components = array(' RequestHandler', 'Blog');27 * Load CakePHP components 28 * @access public 29 * @var array 30 */ 31 public $components = array('Blog', 'RequestHandler'); 32 32 33 33 /** … … 39 39 { 40 40 parent::beforeFilter(); 41 $this->Auth->allow(array('all', 'view', ' rss'));41 $this->Auth->allow(array('all', 'view', 'index')); 42 42 } 43 43 … … 85 85 * @return void 86 86 */ 87 public function rss($username) 88 { 89 $this->layout = 'rss'; 87 public function index($username) 88 { 90 89 $params = array('conditions' => array('username'=>$username), 91 90 'contain' => False, -
trunk/views/layouts/blog.ctp
r408 r465 18 18 <link rel="alternate" type="application/rss+xml" title="<?php echo $username; ?> RSS 2.0" href="/entries/rss/<?php echo $username; ?>.rss" /> 19 19 <link rel="alternate" type="application/rss+xml" title="<?php echo $username; ?> Bookmarks" href="/bookmarks/feeder/<?php echo $username; ?>.rss" /> 20 <link rel="alternate" type="application/rss+xml" title="<?php echo $username; ?> Podcast" href="/podcasts/ rss/<?php echo $username; ?>.rss" />20 <link rel="alternate" type="application/rss+xml" title="<?php echo $username; ?> Podcast" href="/podcasts/index/<?php echo $username; ?>.rss" /> 21 21 <title> <?php echo $title_for_layout; ?> :: MonoNeurona</title> 22 22 <style type="text/css"> -
trunk/views/layouts/rss/rss.ctp
r464 r465 2 2 # Chipotle Software (c) 2006-2010 3 3 # http://book.cakephp.org/view/1461/Creating-an-RSS-feed-with-the-RssHelper 4 if ( !isset($perro) ): 5 die('Perro is not set'); 6 endif; 7 4 8 echo $this->Rss->header(); 5 9 6 if ( !isset($documentData)):10 if ( !isset($documentData) ): 7 11 $documentData = array(); 8 12 endif; 9 13 10 if ( !isset($channelData)):14 if ( !isset($channelData) ): 11 15 $channelData = array(); 16 die('dsfdsfdsf'); 12 17 endif; 18 13 19 if (!isset($channelData['title'])): 14 20 $channelData['title'] = $title_for_layout; -
trunk/views/podcasts/rss.ctp
r464 r465 3 3 # You should import Sanitize 4 4 #App::import('Sanitize'); 5 $this->set('showLayoutContent', True); 5 6 7 $frida = array('fdgfdgf', '888', 'jkhjkhjk'); 8 $this->set('perro', array('fdgfdgf', '888', 'jkhjkhjk')); 6 9 $this->set('documentData', array( 7 10 'xmlns:pod' => 'http://sw.deri.org/2005/07/podcast#',
Note: See TracChangeset
for help on using the changeset viewer.
