想必大家通常会遇到Notice:Undefined,看着会比较烦!
我遇到的错误提示有Notice:Undefined index:field_image
经过"boy"大神提点,原来是写法有误
<?php if ($content['field_image']): ?>需要改写为<?php if (isset($content['field_image'])): ?>
才不会提示出错