|
PHP复制代码
<?php $image_properties = array(
'src' => 'images/picture.jpg',
'alt' => 'Me, demonstrating how to eat 4 slices of pizza at one time',
'class' => 'post_images',
'width' => '200',
'height' => '200',
'title' => 'That was quite a night',
'rel' => 'lightbox',
);?>
<?php echo img ($image_properties); 复制代码 ?>
怎样把上面的那个数组定义到其他的层中,而不是都在在V层中写,这样显得视图代码好混乱。在V层中怎么使用?求大家的帮助
|
|