Actions

J2.5 talk

Difference between revisions of "Developing a MVC Component/Adding verifications"

From Joomla! Documentation

(verification seems to operate even when required="false" is coded: new section)
(verification seems to operate even when required="false" is coded)
Line 8: Line 8:
  
 
I have expanded the helloworld component to have several other fields now, and set some of them to required="false" in the /models/forms/app.xml file. I still get "invalid field" when I leave the input box empty. Any ideas?
 
I have expanded the helloworld component to have several other fields now, and set some of them to required="false" in the /models/forms/app.xml file. I still get "invalid field" when I leave the input box empty. Any ideas?
 +
 +
 
[[User:IslandBilly|"In theory, there's no difference between theory and practice; in practice, there is"  --Yogi Berra]] 10:51, 30 September 2011 (CDT)
 
[[User:IslandBilly|"In theory, there's no difference between theory and practice; in practice, there is"  --Yogi Berra]] 10:51, 30 September 2011 (CDT)

Revision as of 09:52, 30 September 2011

Why is the protected function _populateState() in the /admin/models/helloworld.php file? It doesn't appear in the original helloworld.php model file, and there isn't any indication as to the purpose of this function aside from the annotations within the function, which I don't fully understand.

Attention

Section about admin/views/helloworld/tmpl/edit.php is not the same as in file present in archive.

verification seems to operate even when required="false" is coded

I have expanded the helloworld component to have several other fields now, and set some of them to required="false" in the /models/forms/app.xml file. I still get "invalid field" when I leave the input box empty. Any ideas?


"In theory, there's no difference between theory and practice; in practice, there is" --Yogi Berra 10:51, 30 September 2011 (CDT)