如何在Joomla控制器中显示视图?
我有一个上传到文件夹的脚本,我想在上传完成后显示一个视图,不管上传成功与否如何在Joomla控制器中显示视图?,joomla,Joomla,我有一个上传到文件夹的脚本,我想在上传完成后显示一个视图,不管上传成功与否 /component /admin/ /views/ /components/ view.html.php /tmpl/ default.php modal.php // I want to load and output this file from controller.php component.php
/component
/admin/
/views/
/components/
view.html.php
/tmpl/
default.php
modal.php // I want to load and output this file from controller.php
component.php
controller.php
/site/
我想在我的控制器中做一些类似的事情
$view = $this->getView(/* params for modal.php to load*/); //get the view
$this->view->display();
谢谢尝试使用:
$view = $this->getView( 'components', 'html' );
$view->setLayout('modal');
$view->display();
或
尝试使用:
$view = $this->getView( 'components', 'html' );
$view->setLayout('modal');
$view->display();
或