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?
精彩评论