Error Message Propigation from Table check() function - Joomla! Forum - community, help and support
when error thrown in table class such as:
which called store() method of model:
which called controller:
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?
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
Post a Comment