How do I return just data and not a template?

Author Message

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.

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.

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 18 2025 16:10:24
Script start
Timing: Jan 18 2025 16:10:24
Module start 'layout'
Timing: Jan 18 2025 16:10:24
Module start 'content'
Timing: Jan 18 2025 16:10:24
Module end 'content'
Timing: Jan 18 2025 16:10:24
Script end

Main resources:

Total runtime0.0133 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0046 589.1641152.6406
Module start 'layout' 0.00460.0023 741.804739.4766
Module start 'content' 0.00690.0043 781.281389.2578
Module end 'content' 0.01120.0020 870.539130.3047
Script end 0.0133  900.8438 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002418.0207140.0002
Check MTime0.00118.0901140.0001
Mysql Total
Database connection0.00075.288210.0007
Mysqli_queries0.002015.003530.0007
Looping result0.00000.091510.0000
Template Total0.001612.210.0016
Template load0.00096.621010.0009
Template processing0.00075.551910.0007
Override
Cache load0.00064.663910.0006
General
dbfile0.00021.684480.0000
String conversion0.00000.044840.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs