First time I encountered this kind of error. My code is as below:
This code works on my local machine however when I try to run my code in my production server...I keep on getting the error "Parse error: syntax error, unexpected T_PAAMAYIM_NEKUDOTAYIM, expecting ')..."
Please help...Thanks!
if ($model->blog_status == MyBlog::$STATUS_NEW || $model->blog_status == MyBlog::$STATUS_DRAFT) { if ($model->blog_status == MyBlog::$STATUS_NEW) { echo CHtml::submitButton('', array( 'name'=>$this::$SAVE_AS_DRAFT, 'title'=>'Save as Draft', 'class'=>'button-draft', 'onclick'=>'return confirm(\'Are you sure you want to Save as Draft?\')', )); } echo CHtml::submitButton('', array( 'name'=>$this::$SUBMIT, 'title'=>'Submit', 'class'=>'button-save', 'onclick'=>'return beforeSubmit(\'Are you sure you want to Submit?\');', )); }
This code works on my local machine however when I try to run my code in my production server...I keep on getting the error "Parse error: syntax error, unexpected T_PAAMAYIM_NEKUDOTAYIM, expecting ')..."
Please help...Thanks!