E
E
EVOSandru62016-02-02 13:19:18
Yii
EVOSandru6, 2016-02-02 13:19:18

Why are some echo output uninterpreted?

Good afternoon, I
installed LAPP on Linux and uploaded my yii project there . Mostly works without wrangling, but there is one oddity:
There is a clip output in the template view ( clip )

if(isset($this->clips['catalog'];))
    clips['left_menu'])) echo $this->clips['catalog'];?>

At this point, this line is displayed without interpretation:
clips['left_menu'])) echo $this->clips['catalog'];?>
Similar behavior is observed when displaying the capthca widget :
$this->widget('CCaptcha',
                                            [
                                                'captchaAction' => Yii::app()->createUrl('/site/captcha'),
                                                'buttonLabel' => '<br/>Новый код',
                                                'id' => 'newCode'
                                            ]
                                        );

Outputs:
widget('CCaptcha'); ?>
What needs to be changed in the apache / php settings to solve the problem?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander, 2016-02-02
@EVOSandru6

Maybe the file needs to be saved in UTF-8 format without BOM?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question