Joomla component: Output without html

雨燕双飞 提交于 2019-11-28 13:32:58
Alexxandar

In Joomla! 1.5 all you had to do is add ?tmpl=component&format=raw but to achieve raw display

In Joomla! 2.5 you need to make view.raw.php file which can be identical to your existing view.html.php, but that depends on your needs. And also in the controller you have to manually instantiate raw view because default type is html.

A very good example you can find in file administrator/components/com_banners/controllers/tracks.raw.php which is the part of default components shipped with Joomla.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!