Forums / Developer / How do I return just data and not a template?
Douglas Hammond
Tuesday 09 March 2004 5:11:18 pm
How do I return just data and not a template?
I want the modules view to return and set its own headewr info and not use the templates.
ie. to pass binary file.
i tried looking at ezbinaryfile but no luck.
I would love a hint on how to do this.
Friday 12 March 2004 12:11:23 pm
incase anybody cares heres how i got it to work
<?php include_once( "kernel/classes/datatypes/ezuser/ezuser.php" ); include_once( 'lib/ezutils/classes/ezini.php' );include_once( 'tt2/conn/ttapi.class.php' );
$user =& eZUser::currentUser(); $contentObject =& eZContentObject::fetch( $user->attribute( 'contentobject_id' ) ); $version =& $contentObject->currentVersion(); $datamap =& $version->DataMap();$tramsID =& $datamap['trams_id']->content();
ob_end_clean();
$cls = new ttapi(); if($tramsID == -1) $cls->conn_agent( 'admin' ); elseif(($tramsID == -2)) eZExecution::cleanExit(); else $cls->conn_agent( $tramsID, $header );
eZExecution::cleanExit();?>
Kai Duebbert
Sunday 14 March 2004 2:32:55 am
What is this "tt2"? Just curious and I can't find any info searching google.