我如何激活joomla模型只是在所谓的布局。我有以下url结构
/index.php?option=com_mycomponent&view=my_view&layout=edit&id=3
如果layout=edit
模型应该称为
查看视图布局:
if (JFactory::getApplication()->input->getWord('layout') == 'edit')
{
// call your model here
}
Retrieving_request_data_using_JInput
你可以通过调用这个来实现:
/index.php?option=com_mycomponent&task=my_view.edit&id=3