2023-05-12 开启多语言插件支持……

Yii framwork renderPartial 的用法

yii framework 苏 demo 3190℃ 0评论

Yii framwork renderPartial 的用法

<?php echo $this->renderPartial(‘/default/add_news’);?>
<?php echo $this->renderPartial(‘//public/footer’);?>
absolute view within a module: the view name starts with a single slash ‘/’.
absolute view within the application: the view name starts with double slashes ‘//’.
当前module下的view文件使用/
外层views下的view文件用//
打赏

转载请注明:苏demo的别样人生 » Yii framwork renderPartial 的用法

   如果本篇文章对您有帮助,欢迎向博主进行赞助,赞助时请写上您的用户名。
支付宝直接捐助帐号oracle_lee@qq.com 感谢支持!
喜欢 (0)or分享 (0)