Html Inside Php Tags

I have this code:



echo ‘<tr>’;

echo ‘<td>’$model->subjCode11’</td>’;

echo ‘<td>’$model->subjDesc11’</td>’;

echo ‘<td>’$model->subjCredit11’</td>’;

echo ‘</tr>’;



Whats wrong with code above?

You’re missing a string ‘add’ operator - a dot (.) between the opening and closing ‘td’ tags to the $model referencing.

You might not have $model defined in that view(?) file and you’ll get an error on it.

In the future, please post similar questions in the ‘general v1.1 questions’ forum and not this one (which is not intended for general help).

[color="#006400"]NOTE: moved to proper section (General Discussion for Yii 1.1.x instead of Tips, Snippets and Tutorials)[/color]

O sorry i thought this is the right place…