Assembla home | Assembla project page
 

Changeset 70

Show
Ignore:
Timestamp:
06/18/07 14:24:45 (1 year ago)
Author:
digitalspaghetti
Message:

Started work on Video component

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branch/config/core.php

    r68 r70  
    5555 * In development mode, you need to click the flash message to continue. 
    5656 */ 
    57         define('DEBUG', 0); 
     57        define('DEBUG', 2); 
    5858/** 
    5959 * Turn off or enable cache checking application-wide. 
  • branch/controllers/tags_controller.php

    r69 r70  
    153153        { 
    154154                $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'])); 
    156156        } 
    157157         
  • branch/controllers/videos_controller.php

    r55 r70  
    44        var $name = 'Videos'; 
    55        var $helpers = array('Html', 'Form' ); 
    6  
     6        var $components = array('PhpYoutube'); 
    77        function index() { 
    88                $this->Video->recursive = 0; 
     
    1111 
    1212        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")); 
    1815        } 
    1916