//判断一个字符串是否为数字可以用is_numeric函数
//例如:
if( is_numeric($_POST['c']) ){
//function metod
}
//html
//RadioGroup的判断方式
if($_POST['RadioGroup_name'] = value){
//function metod
}
//Doophp
如在Netbeans调试时没有提示,把根目录下的freamework文件夹转移进app目录里
并修改app/protected/config/common.conf.php文件
把 $config['BASE_PATH'] = str_replace('app', 'dooframework, str_replace('app', 'dooframework', $config['SITE_PATH']));
改成 $config['BASE_PATH'] = str_replace('app', 'app', str_replace('app', 'app/dooframework', $config['SITE_PATH']));
Doo::conf()->APP_URL; //根目录,类似于http://localhost/app 这种格式
$this->render( 'view文件名', $data->对应view的{{变量}} ); //定位view文件