我想在我的模块外渲染部分表单,你能告诉我怎么做吗?这是我的模块的位置。
C:'xampp'htdocs'project'protected'modules'employees'views'employees'_form4.php
我要渲染的表单的位置是:
C:'xampp'htdocs'project'protected'views'empLicense'_form.php
现在这是我的代码:_form4.php
代码<?php echo $this->renderPartial('../../../views/empLicense/_form')); ?>
try doing:
$this->renderPartial("//empLicense_form");
当使用//
时,在应用程序的视图路径下搜索视图。