Changeset 70
- Timestamp:
- 06/18/07 14:24:45 (1 year ago)
- Files:
-
- branch/config/core.php (modified) (1 diff)
- branch/controllers/components/php_youtube.php (added)
- branch/controllers/tags_controller.php (modified) (1 diff)
- branch/controllers/videos_controller.php (modified) (2 diffs)
- branch/vendors/phpYoutube (added)
- branch/vendors/phpYoutube/PEAR (added)
- branch/vendors/phpYoutube/PEAR/DB (added)
- branch/vendors/phpYoutube/PEAR/DB.php (added)
- branch/vendors/phpYoutube/PEAR/DB/common.php (added)
- branch/vendors/phpYoutube/PEAR/DB/mysql.php (added)
- branch/vendors/phpYoutube/PEAR/DB/pgsql.php (added)
- branch/vendors/phpYoutube/PEAR/DB/storage.php (added)
- branch/vendors/phpYoutube/PEAR/HTTP (added)
- branch/vendors/phpYoutube/PEAR/HTTP/Request (added)
- branch/vendors/phpYoutube/PEAR/HTTP/Request.php (added)
- branch/vendors/phpYoutube/PEAR/HTTP/Request/Listener.php (added)
- branch/vendors/phpYoutube/PEAR/Net (added)
- branch/vendors/phpYoutube/PEAR/Net/Socket.php (added)
- branch/vendors/phpYoutube/PEAR/Net/URL.php (added)
- branch/vendors/phpYoutube/PEAR/PEAR.php (added)
- branch/vendors/phpYoutube/example.php (added)
- branch/vendors/phpYoutube/phpYoutube.php (added)
- branch/vendors/phpYoutube/xml.php (added)
- branch/vendors/phpYoutube/xml_saxy_parser.php (added)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branch/config/core.php
r68 r70 55 55 * In development mode, you need to click the flash message to continue. 56 56 */ 57 define('DEBUG', 0);57 define('DEBUG', 2); 58 58 /** 59 59 * Turn off or enable cache checking application-wide. branch/controllers/tags_controller.php
r69 r70 153 153 { 154 154 $this->layout = 'ajax'; 155 $this->set('results', $this->Tag->findTag($ _GET['q'],$_GET['limit']));155 $this->set('results', $this->Tag->findTag($this->params['url']['q'],$this->params['url']['limit'])); 156 156 } 157 157 branch/controllers/videos_controller.php
r55 r70 4 4 var $name = 'Videos'; 5 5 var $helpers = array('Html', 'Form' ); 6 6 var $components = array('PhpYoutube'); 7 7 function index() { 8 8 $this->Video->recursive = 0; … … 11 11 12 12 function view($id = null) { 13 if(!$id) { 14 $this->Session->setFlash('Invalid Video.'); 15 $this->redirect(array('action'=>'index'), null, true); 16 } 17 $this->set('video', $this->Video->read(null, $id)); 13 pr($this->PhpYoutube->getDetails("MIJvpW8ZqKY")); 14 $this->set('video', $this->PhpYoutube->getDetails("MIJvpW8ZqKY")); 18 15 } 19 16