yii框架中建立表单请问错在哪Parse error: syntax error, unexpected '=', expecting ')' in E:\WEB\yii-1.1.8.r3324\pr
2011-12-31 13:35
363 查看
<?php
class HelloworldController extends Controller
{
public $strToDisplayByPull = 'Hello';
public function actionIndex()
{
$this->renderPartial('index',array(
"strToDisplayByPush"=>"World"
));
}
public function activeFeedback()
{
$model=new FeedbackForm;
$this->renderpartial('feedback',array("model"=>$model));
}
}
class HelloworldController extends Controller
{
public $strToDisplayByPull = 'Hello';
public function actionIndex()
{
$this->renderPartial('index',array(
"strToDisplayByPush"=>"World"
));
}
public function activeFeedback()
{
$model=new FeedbackForm;
$this->renderpartial('feedback',array("model"=>$model));
}
}
相关文章推荐
- syntax error, unexpected ''&expecting identifier (T_STRING) or variable (T_VARIABLE) or number (T_NU
- thinkphp syntax error, unexpected ')', expecting T_VARIABLE or '$'
- ModelSim错误:syntax error, unexpected "IDENTIFIER", expecting ".*" or '.'
- Parse error: syntax error, unexpected '$a' (T_VARIABLE) in D:\xampp\htdocs\curl1.php on line 5
- Web开发敏捷之道-应用Rails进行敏捷Web开发-第三版 92页 错误提示 syntax error, unexpected ')' ..._cart" , :id => product } do ).to_s) 解决办法
- Parse error: syntax error, unexpected $end in D:\webserver\www\test\test.php on line 27
- 项目检出JRE问题(Unbound classpath container: 'JRE System Library [JavaSE-1.7]' in project 'idweb')
- 可执行程序无法在Linux上运行,显示line 1: syntax error: word unexpected (expecting ")
- Error creating bean with name 'StuService' defined in ServletContext resource [/WEB-INF/applicationC
- Linux 下 oracle 备份表的时候报:ksh: syntax error: `(' unexpected 错误
- Firefox is currently in offline mode and can't browse the Web
- Error creating bean with name 'sessionFactory' defined in ServletContext resource [/WEB-INF/applica
- How Google Finds Your Needle in the Web's Haystack
- Choose unique values for the 'webAppRootKey' context-param in your web.xml files!
- Syntax error: word unexpected (expecting ")")
- django提交表单提示"You called this URL via POST, but the URL doesn't end in a slash and you have APPEND_SL
- gcc 交叉编译错误 line 1: syntax error: word unexpected (expecting ")")
- Ruby:syntax error, unexpected keyword_end, expecting '<' or ';' or '\n'
- 高德地图导航demo(QuickStart)在iOS8.4运行报错libz.tbd(unexpected file type 'file' in Frameworks & Libraries buil
- eclipse validator - Invalid content was found starting with element 'display-name' in web.xml