Help for add new form in ezpublish system

Author Message

Tin Nguyen

Tuesday 09 January 2007 12:25:20 am

Hello, i am a newbie to ezPublish.

I am coding a form that collect data of user to save in database. The information are First Name, Last Name, Email. I created a table like customer (firstname, lastname, email)

I don't know how to collect form's data and save it in ezPublish.

Thanks for you help.

P/S Sorry for my poor english

Eirik Alfstad Johansen

Tuesday 16 January 2007 9:07:47 am

Hi Tin,

To create a form that collects information, create a new class. For each attribute that you want to collect information, check the "Information collector" checkbox when editing the attribute. Then, create a node from this class somewhere in the content structure, either leaving your information collecting attributes empty, or populating them with default data.

Sincerely,

Eirik Alfstad Johansen
http://www.netmaking.no/

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 18:40:17
Script start
Timing: Jan 18 2025 18:40:17
Module start 'layout'
Timing: Jan 18 2025 18:40:17
Module start 'content'
Timing: Jan 18 2025 18:40:18
Module end 'content'
Timing: Jan 18 2025 18:40:18
Script end

Main resources:

Total runtime0.9472 sec
Peak memory usage4,096.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0067 588.0469152.6406
Module start 'layout' 0.00680.0040 740.687539.4766
Module start 'content' 0.01070.9339 780.1641519.3203
Module end 'content' 0.94460.0025 1,299.48448.1250
Script end 0.9471  1,307.6094 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00450.4738160.0003
Check MTime0.00140.1429160.0001
Mysql Total
Database connection0.00160.164310.0016
Mysqli_queries0.896294.6216540.0166
Looping result0.00050.0549520.0000
Template Total0.909496.020.4547
Template load0.00190.205220.0010
Template processing0.907495.802020.4537
Template load and register function0.00180.193310.0018
states
state_id_array0.00170.174610.0017
state_identifier_array0.00220.233320.0011
Override
Cache load0.00150.1589120.0001
Sytem overhead
Fetch class attribute can translate value0.00060.064420.0003
Fetch class attribute name0.00150.153630.0005
XML
Image XML parsing0.00060.064520.0003
class_abstraction
Instantiating content class attribute0.00000.001030.0000
General
dbfile0.00130.1392160.0001
String conversion0.00000.001140.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
2content/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/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 7
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs