开发者

Joomla disable parent template?

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜