<?php
class index_ctl extends main_ctl
{
final public function get_list()
{
$get_timerange = $this->get_timerange();
$get_day_sunpay = dr('affiliate/report.get_day_sunpay');
$get_yesterday_sunpay = dr('affiliate/report.get_yesterday_sunpay');
$get_month_sunpay = dr('affiliate/report.get_month_sunpay');
$stats = dr('affiliate/report.get_index_stats');
TPL::assign('get_timerange', $get_timerange);
TPL::assign('stats', $stats);
TPL::assign('get_day_sunpay', $get_day_sunpay);
TPL::assign('get_yesterday_sunpay', $get_yesterday_sunpay);
TPL::assign('get_month_sunpay', $get_month_sunpay);
TPL::display('index');
}
}APP::load_file('main/main', 'ctl');?>代码如上,这个是中易v9的代码,原先为php5.4加密的,解密后获得源码以后,打开index.ctl.php,就提示
Fatal error: Class 'main_ctl' not found in D:\phpStudy1\WWW\application\controller\affiliate\index.ctl.php on line 4
目录结构如下\application\controller\affiliate\index.ctl.php
main.ctl.php在application\controller\main\main.ctl.php
class index_ctl extends main_ctl
{
final public function get_list()
{
$get_timerange = $this->get_timerange();
$get_day_sunpay = dr('affiliate/report.get_day_sunpay');
$get_yesterday_sunpay = dr('affiliate/report.get_yesterday_sunpay');
$get_month_sunpay = dr('affiliate/report.get_month_sunpay');
$stats = dr('affiliate/report.get_index_stats');
TPL::assign('get_timerange', $get_timerange);
TPL::assign('stats', $stats);
TPL::assign('get_day_sunpay', $get_day_sunpay);
TPL::assign('get_yesterday_sunpay', $get_yesterday_sunpay);
TPL::assign('get_month_sunpay', $get_month_sunpay);
TPL::display('index');
}
}APP::load_file('main/main', 'ctl');?>代码如上,这个是中易v9的代码,原先为php5.4加密的,解密后获得源码以后,打开index.ctl.php,就提示
Fatal error: Class 'main_ctl' not found in D:\phpStudy1\WWW\application\controller\affiliate\index.ctl.php on line 4
目录结构如下\application\controller\affiliate\index.ctl.php
main.ctl.php在application\controller\main\main.ctl.php
解决方案 »
- 如何将JS变量赋值给PHP变量
- 请问怎么用php 来post xml
- php myadmin导出数据库(.sql文档)保存为.txt文件后 在导入后出现乱码 请高手给个解决方法
- 如何用一句语句将mysql里的int字段里的时间转换成datetime"22008-8-8 12:00"这样子呢
- input type的问题
- php中用utf-8编码无法更改header的问题
- php如何取得多选框群发问题?急!!!
- make php4 错误!老板恼了,急啊
- 请教 用这种安全验证方法 php上传Excel方法 够安全么?
- 难道不该是i么?
- 请问mysql查询语句为什么总是抛异常,实际操作已经成功,数据库可以看到结果
- 求助,PHP+MYsql登录页面怎么制作?
可以检查一下命名空间。