【问题标题】:joomla layout handling in custom component自定义组件中的 joomla 布局处理
【发布时间】:2013-04-08 17:55:39
【问题描述】:

如果被调用,我应该在下面的函数中在哪里设置所需的布局

$input = JFactory::getApplication()->input;
$input->set('view', $input->getCmd('view', 'Myview'));

我想被重定向到例如/views/tmpl/edit.php

找到了

需要通过url结构声明

【问题讨论】:

    标签: layout joomla components


    【解决方案1】:

    您可以在 URL 中使用 &layout=edit,也可以使用 $this->setLayout('edit'); 在视图中设置它

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2013-09-11
      • 1970-01-01
      • 1970-01-01
      • 2012-04-12
      • 2016-11-12
      • 1970-01-01
      • 2013-03-01
      • 2012-12-01
      相关资源
      最近更新 更多