Share » Forums » Developer » How do I return just data and not a...

How do I return just data and not a template?

How do I return just data and not a template?

Tuesday 09 March 2004 5:11:18 pm - 2 replies

Author Message

Douglas Hammond

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.

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu