Creating a instance of an class from form

Author Message

Werner Klausen

Tuesday 24 May 2005 12:21:24 am

On my page I have a box where people can sign up to a e-mail list. People fill in name and e-mail addy, then send. When they do this, I want eZ to create a custom instance of my custom class "Person" with the information submitted in the form.

I've been unable to find anything about this subject, so can anyone point me in the right direction? Or better yet, tell me how it should be done? :)

Thanks

Because I can!

Ɓukasz Serwatka

Tuesday 24 May 2005 1:06:59 am

Hi Werner,

I think that this tutorial can be very useful for you
http://ez.no/ez_publish/documentation/customization/tips_tricks/editing_creating_and_removing_content_from_the_user_page

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

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

Main resources:

Total runtime1.1126 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.0048 588.0469152.6406
Module start 'layout' 0.00480.0039 740.687539.4766
Module start 'content' 0.00881.1025 780.1641530.5234
Module end 'content' 1.11130.0012 1,310.68758.1250
Script end 1.1125  1,318.8125 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00310.2791160.0002
Check MTime0.00140.1265160.0001
Mysql Total
Database connection0.00080.067810.0008
Mysqli_queries1.072396.3807540.0199
Looping result0.00050.0426520.0000
Template Total1.083997.420.5419
Template load0.00210.185820.0010
Template processing1.081897.235320.5409
Template load and register function0.00010.007310.0001
states
state_id_array0.00080.074810.0008
state_identifier_array0.00080.071820.0004
Override
Cache load0.00170.1512120.0001
Sytem overhead
Fetch class attribute can translate value0.00090.080720.0004
Fetch class attribute name0.00110.095440.0003
XML
Image XML parsing0.00090.079320.0004
class_abstraction
Instantiating content class attribute0.00000.000540.0000
General
dbfile0.00080.0730210.0000
String conversion0.00000.000640.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/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
3content/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: 10
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs