Overriding JFormRules

From Joomla! Documentation

Revision as of 11:55, 26 June 2013 by Ruqui25 (Talk | contribs)

[[File:To extend the rules that can be used by Joomla to validate form input, the following changes are needed:
== Step 1: Alter the controller ==
In the controller function add these lines:
<source lang="php">
$form	= $model->getForm();

Step 2: Add the rule files

In the folder models/rules in the component add any rule file you want to use. ]][1] </source>
Cite error: <ref> tags exist, but no <references/> tag was found