14 lines
534 B
PHP
14 lines
534 B
PHP
|
<?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);
|
||
|
}
|
||
|
}
|