💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、豆包、星火、月之暗面及文生图、文生视频 广告
视图` index2.php`和`common.php` ***** index2.php代码 ``` <h1>hello index2</h1> <?php $this->beginBlock('block1'); ?> <h1>this is index2 block</h1> <?php $this->endBlock();?> ``` ***** common.php代码 ``` <!DOCTYPE html> <html lang="zh-cn"> <head> <meta charset="UTF-8"> <title>Title</title> </head> <body> <!-- <h1>hello common</h1>--> <?php if(isset($this->blocks['block1'])):?> <?= $this->blocks['block1']?> <?php else:?> <h1>hello common</h1> <?php endif;?> <?=$content;?> </body> </html> ```