• twitter image
  • facebook image
  • youtube image
  • linkedin image
Language: CMS Made Simple Czech CMS Made Simple France CMS Made Simple Spain CMS Made Simple Hungary CMS Made Simple Russia CMS Made Simple Netherlands

All times are UTC




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: BackEnd : not render template and theme
PostPosted: Fri Jun 17, 2011 8:15 am 
Offline
New Member

Joined: Thu Jun 16, 2011 5:07 pm
Posts: 3
Hi,

Like params "show_template" and "disable_theme" in FrontEnd, I'm searching a mean to get the same behaviour in BackEnd.

I have created my own module and want to allowed BackEnd user to download some data in different formats (CSV, PDF, ...).

For that, I use in my module some header() instructions, whose :
Code:
header("Content-Type: application/csv");



The problem here, is that the start of the BackEnd template is embedded in my files. In other word, my CSV file owns :
Code:
- HTML header
- header of BackEnd
- Navigation
- Start of page content
- Then my data at CSV format.



How could I do so that template is not embedded in my file when I process the header() ?

Thanks for ideas.


Top
 Profile  
 
 Post subject: Re: BackEnd : not render template and theme
PostPosted: Mon Jun 20, 2011 12:21 pm 
Offline
New Member

Joined: Thu Jun 16, 2011 5:07 pm
Posts: 3
If someone has already implemented AJAX behaviour in BackEnd I imagine he has found a way to retrieve data without all the template.
That is an idea.


Top
 Profile  
 
 Post subject: Re: BackEnd : not render template and theme
PostPosted: Mon Jun 20, 2011 8:50 pm 
Offline
Power Poster
Power Poster
User avatar

Joined: Wed Sep 05, 2007 8:03 pm
Posts: 3649
Location: The Netherlands
Guess you just found the key word ;)

search.php?keywords=ajax+module&terms=all&author=&fid[]=6&sv=0&sc=1&sf=all&sk=t&sd=d&sr=topics&st=0&ch=300&t=0&submit=Search

_________________
Get nice guestbook messages from your site visitors with the brand new Gbook module.
Integrate Piwik Web Analytics in your site admin with the Piwik module.
Extend your global site settings with the Custom Global Settings module.
The Fourth Dutch CMS Made Simple Workshop on April 9 2011 was great fun! Read all about it here
Announcement: The Fifth Dutch CMS Made Simple Workshop coming up?


Top
 Profile  
 
 Post subject: Re: BackEnd : not render template and theme
PostPosted: Wed Jun 22, 2011 1:08 pm 
Offline
New Member

Joined: Thu Jun 16, 2011 5:07 pm
Posts: 3
Hi and thanks Jos !

For information, a way is to perform a :
Code:
ob_end_clean();

before generating data.

For example :
Code:
ob_end_clean();
ob_start();
// stuff here
ob_end_flush();


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC


Who is online

Users browsing this forum: Gregor


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Arvixe - A CMSMS Partner