We build. You grow.

Get best community software here

Start a social network, a fan-site, an education project with oxwall - free opensource community software

Some help on the display please. | Forum

Daniel
Daniel Mar 1 '12
Hi,


Is it possible to programmatically disable all Oxwall screen formating e.g. the header and footer?  Or to totally disable their display for a particular application please?


Second question, is it possible for the php program to output on the browser e.g. via echo


Would appreciate some guidance please.


Regards.

The Forum post is edited by Daniel Mar 1 '12
Sardar
Sardar Mar 7 '12


Yes, of course you can disable it. All this markup is added by Master Page instance, you just need to set another master page to get rid of header and footer. In the soft we have `blank master page`, for example you can see it on sign-in page. Add this code in your controller's action:


OW::getDocument()->getMasterPage()->setTemplate(OW::getThemeManager()->getMasterPageTemplate(OW_MasterPage::TEMPLATE_BLANK));


Your page will have no header and footer.


Concerning your second question - yes you can use `echo`, but you should place an `exit` operator at the end of your code. We use it in this way for AJAX responding actions.

Michael I.
Michael I. Dec 21 '12
Topic was moved from Plugins.