/** * wirte log * @author wjh 20150401 * @param $name * @param null $content * @param int $typeid * @throws Exception */ public function Log($name, $content = null, $typeid = 0) { $logtype = Yii::app()->params['switch']['logtype']; if (!empty($logtype) && $logtype == 'table') { DebugService::Log($name, $content = null, $typeid = 0); } else { BDataHelper::print_r($name); BDataHelper::print_r($content); } }
public function destroy($id){ return DebugService::display("Method"); }