Error Message Propigation from Table check() function - Joomla! Forum - community, help and support


when error thrown in table class such as:

code: select all

if (trim($this->desc) == '') {
 $this->seterror(jtext::_('mand_coindesc'));
return false;
}

which called store() method of model:

code: select all

// validate
if (!$row->check()) {
 $this->seterror($row->geterrors());
 return false;
}

which called controller:

code: select all

if ($model->store($post)) {
 $msg = jtext::_( 'detailsaved' );
} else {
$msg = jtext::_( 'detailsaveerror' );
}
...
$this->setredirect( $link,$msg );


where error messages set in table check() method display?
the page (list of items) shows 'error saving xxx' message, details set in check method not propagated view seems.

anybody have right code make magic happen?

still looking answer. can help? i'm firm believer in strong server side validation of input data, error messages don't see filter stack, , can't find working examples table class up.





Comments

Popular posts from this blog

Hur installera Joomla på One.com - Joomla! Forum - community, help and support

removing index.php from URL address - Joomla! Forum - community, help and support

「イメージマップのアンカー名には、...」のエラーが出ないようにしたい