notice:undefined offset: 4 The solution in the prompt like include() in Drupal7!
When outputting some variables in the template file, if the variable does not exist, it will prompt such an error message. The following is the prompt screenshot and solution:
<?php if(isset($content[‘field_power’][0][‘#markup’])) { ?<<span>gong rate:</span>?php print $content[‘field_power’][0][‘#markup’]; ?><br /><?php } ?>
