Loading an article into a components template in Joomla
问题 i would like to load an article into a components templates php code within the Joomla framework. I can load modules in php, modules in articles, components in articles and and..but i never wanted to load an article into a components php. Does anybody know of a code snippet for that? Appreciate any help. 回答1: I would load the article model in your view like JModelLegacy::addIncludePath(JPATH_SITE.'/components/com_content/models', 'ContentModel'); $model = JModelLegacy::getInstance('Article',