免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1430 | 回复: 1

关于pear的小问题(不知名的类) [复制链接]

论坛徽章:
0
发表于 2006-03-16 13:07 |显示全部楼层
是这样的,代码

  1.      include("setup_smarty.php");
  2.      $smarty = new SETUP_SMARTY();

  3.      $smarty->assign('title','pear学习');
  4.      
  5.      $form = new HTML_QuickForm('FirstForm', 'post');

  6.      $form->addElement('text', 'username');
  7.      $form->addElement('password', 'passwd');
  8.      $form->addElement('submit', 'submit', '提交');

  9.      $form->addRule('username','用户名不能为空!', 'required','','client');
  10.      $form->addRule('passwd','密码不能为空!', 'required','','client');

  11.      if ($form->validate())
  12.      {
  13.         $form->process('changePwd');
  14.      }
  15.      else
  16.      {
  17.            $renderer =& new [color=Red] HTML_QuickForm_Renderer_ArraySmarty($smarty )[/color];
  18.            $form->accept($renderer);
  19.            $smarty->assign('form_data', $renderer->toArray());
  20.            $smarty->catching = false;
  21.            $smarty->display("changePwd.tpl");   
  22.      }  
复制代码

我想问:
HTML_QuickForm_Renderer_ArraySmarty($smarty )
这个类是那里来的啊?

论坛徽章:
0
发表于 2006-03-20 10:32 |显示全部楼层
这个类HTML_QuickForm_Renderer_ArraySmarty是不是已经被其他类代替了啊?
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP