westdc-zf1/application/default/controllers/FilelistController.php

14 lines
534 B
PHP
Raw Normal View History

2010-03-10 06:41:50 +00:00
<?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);
}
}