Tuesday 18 January 2011 8:39:55 am - 7 replies
Hi everyone!
Since I notice that there are quite some posts on this topic, I thought I should share with you how I implemented a form where one field depends on another. I will use the classic example where the user selects a province and then is limited in his choice of choosing a city only to those cities that actually exist in that province.
Author |
---|
You must be logged in to post messages in this topic!
Timing: | Jan 18 2025 04:26:22 |
Script start | |
Timing: | Jan 18 2025 04:26:22 |
Module start 'layout' | |
Timing: | Jan 18 2025 04:26:22 |
Module start 'content' | |
Timing: | Jan 18 2025 04:26:23 |
Module end 'content' | |
Timing: | Jan 18 2025 04:26:23 |
Script end |
Total runtime | 0.2268 sec |
Peak memory usage | 4,096.0000 KB |
Database Queries | 90 |
Checkpoint | Start (sec) | Duration (sec) | Memory at start (KB) | Memory used (KB) |
---|---|---|---|---|
Script start | 0.0000 | 0.0058 | 588.0313 | 152.6406 |
Module start 'layout' | 0.0058 | 0.0029 | 740.6719 | 39.4844 |
Module start 'content' | 0.0087 | 0.2162 | 780.1563 | 907.2656 |
Module end 'content' | 0.2250 | 0.0018 | 1,687.4219 | 26.3984 |
Script end | 0.2268 | 1,713.8203 |
Accumulator | Duration (sec) | Duration (%) | Count | Average (sec) |
---|---|---|---|---|
Ini load | ||||
Load cache | 0.0038 | 1.6934 | 16 | 0.0002 |
Check MTime | 0.0013 | 0.5875 | 16 | 0.0001 |
Mysql Total | ||||
Database connection | 0.0012 | 0.5210 | 1 | 0.0012 |
Mysqli_queries | 0.1284 | 56.5839 | 90 | 0.0014 |
Looping result | 0.0011 | 0.4850 | 88 | 0.0000 |
Template Total | 0.1959 | 86.4 | 2 | 0.0980 |
Template load | 0.0019 | 0.8516 | 2 | 0.0010 |
Template processing | 0.1940 | 85.5095 | 2 | 0.0970 |
Template load and register function | 0.0001 | 0.0591 | 1 | 0.0001 |
states | ||||
state_id_array | 0.0014 | 0.6123 | 2 | 0.0007 |
state_identifier_array | 0.0011 | 0.4638 | 3 | 0.0004 |
Override | ||||
Cache load | 0.0016 | 0.7154 | 49 | 0.0000 |
Sytem overhead | ||||
Fetch class attribute name | 0.0014 | 0.5959 | 14 | 0.0001 |
Fetch class attribute can translate value | 0.0007 | 0.3091 | 6 | 0.0001 |
class_abstraction | ||||
Instantiating content class attribute | 0.0000 | 0.0125 | 15 | 0.0000 |
XML | ||||
Image XML parsing | 0.0037 | 1.6338 | 6 | 0.0006 |
General | ||||
dbfile | 0.0016 | 0.7054 | 49 | 0.0000 |
String conversion | 0.0000 | 0.0116 | 4 | 0.0000 |
Note: percentages do not add up to 100% because some accumulators overlap |
Usage | Requested template | Template | Template loaded | Edit | Override |
---|---|---|---|---|---|
1 | node/view/full.tpl | forum_topic/full.tpl | extension/community_design/design/suncana/override/templates/forum_topic/full.tpl | ||
8 | content/datatype/view/ezxmltext.tpl | <No override> | extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tpl | ||
11 | content/datatype/view/ezxmltags/paragraph.tpl | <No override> | extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tpl | ||
7 | content/datatype/view/ezimage.tpl | <No override> | extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tpl | ||
2 | content/datatype/view/ezxmltags/line.tpl | <No override> | design/standard/templates/content/datatype/view/ezxmltags/line.tpl | ||
2 | content/datatype/view/ezxmltags/strong.tpl | <No override> | design/standard/templates/content/datatype/view/ezxmltags/strong.tpl | ||
2 | content/datatype/view/ezxmltags/literal.tpl | <No override> | extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tpl | ||
1 | content/datatype/view/ezxmltags/link.tpl | <No override> | design/standard/templates/content/datatype/view/ezxmltags/link.tpl | ||
1 | content/datatype/view/ezxmltags/quote.tpl | datatype/ezxmltext/quote.tpl | extension/ezwebin/design/ezwebin/override/templates/datatype/ezxmltext/quote.tpl | ||
1 | print_pagelayout.tpl | <No override> | extension/community/design/community/templates/print_pagelayout.tpl | ||
Number of times templates used: 36 Number of unique templates used: 10 |
Time used to render debug report: 0.0001 secs