Info collector

Author Message

Fabien Mas

Monday 23 April 2007 6:53:36 am

hi,

I've created my own datatype which is information collector for a poll
when I answer to my poll, a new ezinfocollection is created in the database, all right so
but there is nothing new in the ezinfocollection_attribute table
so nothing is saved

what did I wrong to not save my datas ?
here is my template :

{foreach $attribute.content as $question}
	{if ne($question.img,"")}
		{def $imgObject=fetch( 'content', 'object', hash( 'object_id', $question.img ) )}
		  	{attribute_view_gui image_class=small attribute=$imgObject.data_map.image}
		{undef $imgObject}
	{/if}
	<strong>{$question.text}</strong> :<br />
	{foreach $question.reponses as $reponse}
		<div><input type="radio" name="ContentObjectAttribute_data_option_value_{$attribute.id}" value="{$question.id}_{$reponse.id}" />
		{$reponse.text}
		{if ne($reponse.img,"")}
			{def $imgObject=fetch( 'content', 'object', hash( 'object_id', $reponse.img ) )}
	  			{attribute_view_gui image_class=small attribute=$imgObject.data_map.image}
			{undef $imgObject}
		{/if}</div><br />		
	{/foreach}
	<hr />
{/foreach}

thx, fabien

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 21 2025 16:46:15
Script start
Timing: Jan 21 2025 16:46:15
Module start 'layout'
Timing: Jan 21 2025 16:46:15
Module start 'content'
Timing: Jan 21 2025 16:46:15
Module end 'content'
Timing: Jan 21 2025 16:46:15
Script end

Main resources:

Total runtime0.0242 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.0090 588.9063151.1953
Module start 'layout' 0.00900.0056 740.101636.6094
Module start 'content' 0.01460.0081 776.710990.1172
Module end 'content' 0.02270.0015 866.828129.9922
Script end 0.0242  896.8203 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002610.9039140.0002
Check MTime0.00114.3946140.0001
Mysql Total
Database connection0.00218.679110.0021
Mysqli_queries0.006627.096030.0022
Looping result0.00000.107310.0000
Template Total0.00114.710.0011
Template load0.00093.523810.0009
Template processing0.00031.114910.0003
Override
Cache load0.00062.456110.0006
General
dbfile0.003012.518780.0004
String conversion0.00000.041340.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