Error Message

Author Message

justin kazadi

Tuesday 21 April 2009 6:37:44 am

Hi,
i have an register form but i want to display the error message on the line where the error was produced. in the register.tpl i see this code :

{section show=$validation.processed}

    {section name=UnvalidatedAttributes loop=$validation.attributes show=$validation.attributes}
        <div class="warning">
        <h2>{"Input did not validate"|i18n("design/standard/user")}</h2>
        <ul>
        <li>{$UnvalidatedAttributes:item.name}: {$UnvalidatedAttributes:item.description}</li>
        </ul>
        </div>
    {section-else}
        <div class="feedback">
        <h2>{"Input was stored successfully"|i18n("design/standard/user")}</h2>
        </div>
    {/section}

{/section}

but i don't know how to control it by displaying the error on the line where the error was produced .

think in advance

The theory is when we know everything and nothing works.
The practice is when everything works and nobody knows why.
If the practice and theory are met, nothing works and we do not know why.

Albert Einstein

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

Main resources:

Total runtime0.7929 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.0062 587.7891152.6094
Module start 'layout' 0.00620.0028 740.398439.3984
Module start 'content' 0.00900.7822 779.7969467.8750
Module end 'content' 0.79110.0017 1,247.67198.2031
Script end 0.7929  1,255.8750 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00350.4473160.0002
Check MTime0.00150.1867160.0001
Mysql Total
Database connection0.00090.118110.0009
Mysqli_queries0.749694.5363460.0163
Looping result0.00040.0508440.0000
Template Total0.753895.120.3769
Template load0.00230.288420.0011
Template processing0.751594.782020.3758
Template load and register function0.00010.010510.0001
states
state_id_array0.00130.167110.0013
state_identifier_array0.00170.208520.0008
Override
Cache load0.00180.230190.0002
Sytem overhead
Fetch class attribute can translate value0.00040.055010.0004
Fetch class attribute name0.00090.116720.0005
XML
Image XML parsing0.00050.059710.0005
class_abstraction
Instantiating content class attribute0.00000.000520.0000
General
dbfile0.00210.2661160.0001
String conversion0.00000.001740.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/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.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/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 8
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs