<?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