开发者

Joomla disable parent template?

开发者 https://www.devze.com 2022-12-26 02:32 出处:网络
I am building a Facebook canvas app, and the code suppose to be generated in Joom开发者_JAVA技巧la component.

I am building a Facebook canvas app, and the code suppose to be generated in Joom开发者_JAVA技巧la component. I need to only output the content , excluding the default layout. any ideas?


To display only the contents of the view on the page without being framed by a template, the tmpl variable needs to be set to “component”.

JRequest::setVar('tmpl', 'component');

To learn more,See this.


You can create a view called view.facebook.php (instead of view.html.php), it will be called when index2.php?.....&view=facebook will be attached to URL.

or you can call die() just after you execute your code, but do I need to explain that it's not ellegant?

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号