metadata filelist

This commit is contained in:
4ngle 2010-03-10 06:41:50 +00:00
parent 69ad57801c
commit 5cd73a7480
1 changed files with 13 additions and 0 deletions

View File

@ -0,0 +1,13 @@
<?php
class FilelistController extends Zend_Controller_Action {
function indexAction() {
$uuid=$this->_request->getParam('uuid');
$filelist=new FilelistTable(array('db'=>'filelist'));
$adapter=$filelist->getAdapter();
$db=$adapter->query("select file_name,file_path from westdc_fileinfo where meta_uuid='$uuid'");
$files=$db->fetchAll();
$this->_helper->layout()->disableLayout();
$this->_helper->viewRenderer->setNoRender();
echo Zend_Json::encode($files);
}
}