Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何仅在调用的布局上激活 joomla 模型。我有以下网址结构
/index.php?option=com_mycomponent&view=my_view&layout=edit&id=3
如果layout=edit应该调用模型
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