CAKEPHP 使用 api 类的方法

字体大小: 中小 标准 ->行高大小: 标准

CAKEPHP 使用 api 类的方法

在控制器里面调用

    function login(){
 
 /*  $jg = $this->data;
      pr($jg);
    echo "<script>alert('ffffffffffffff');</script>";*/
    $this->hai->hailang();
      
       $this->set("aaa",new Folder());

在视图里这样用

<?php

  $re = $aaa->ls();
  print_r($re);
?>

此文章由 http://www.ositren.com 收集整理 ,地址为: http://www.ositren.com/htmls/773.html