hai->hailang(); $this->set( "aa " type="text/javascript">
CAKEPHP 使用 api 类的方法
在控制器里面调用
function login(){
/* $jg = $this->data;
pr($jg);
echo "<script>alert('ffffffffffffff');</script>";*/
$this->hai->hailang();
$this->set("aaa",new Folder());
在视图里这样用
$re = $aaa->ls();
print_r($re);
?>