Executing Code in a Text Field...

Author Message

John Laux

Thursday 28 April 2005 7:07:41 am

I have a new class and it has a text field in it.

Code Class

I have this so I can create a new instance of the class and just run some test code instead of having to put it in a template to check...

{let a=1
b=2
c=3}
{$a}plus{$b}equals{$c}
{/let}

What would I have to use in the template to execute the code. instead of just displaying in literally.

Thanks

John

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 19:34:26
Script start
Timing: Jan 18 2025 19:34:26
Module start 'layout'
Timing: Jan 18 2025 19:34:26
Module start 'content'
Timing: Jan 18 2025 19:34:27
Module end 'content'
Timing: Jan 18 2025 19:34:27
Script end

Main resources:

Total runtime0.9732 sec
Peak memory usage4,096.0000 KB
Database Queries46

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0043 589.0469152.6250
Module start 'layout' 0.00430.0028 741.671939.4609
Module start 'content' 0.00710.9648 781.1328400.0313
Module end 'content' 0.97190.0013 1,181.16418.1563
Script end 0.9732  1,189.3203 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.3278160.0002
Check MTime0.00140.1407160.0001
Mysql Total
Database connection0.00050.054010.0005
Mysqli_queries0.931795.7350460.0203
Looping result0.00060.0582440.0000
Template Total0.942096.820.4710
Template load0.00210.212720.0010
Template processing0.939996.579320.4700
Template load and register function0.00020.017810.0002
states
state_id_array0.00100.106810.0010
state_identifier_array0.00230.234720.0011
Override
Cache load0.00170.1736140.0001
Sytem overhead
Fetch class attribute can translate value0.00090.096710.0009
Fetch class attribute name0.00060.062110.0006
XML
Image XML parsing0.00350.360010.0035
class_abstraction
Instantiating content class attribute0.00000.000510.0000
General
dbfile0.00130.1378100.0001
String conversion0.00000.000840.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
1content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
2content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 6
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs