Welcome Guest, Not a member yet? Register   Sign In
Form validation, get label
#5

[eluser]xwero[/eluser]
the data is in the _field_data[$field]['label'] Form validation class variable. You can extend the class with a label method and add a label method to the form helper that takes care of the html generation.

But if you store all your labels in language files you can use the language helper to generate the html. With this approach you don't need to extend the framework and you don't have to change code if more languages are needed.


Messages In This Thread
Form validation, get label - by El Forum - 12-12-2008, 06:42 AM
Form validation, get label - by El Forum - 12-12-2008, 06:56 AM
Form validation, get label - by El Forum - 12-18-2008, 07:16 AM
Form validation, get label - by El Forum - 01-06-2009, 03:45 AM
Form validation, get label - by El Forum - 01-06-2009, 04:11 AM
Form validation, get label - by El Forum - 01-06-2009, 04:30 AM



Theme © iAndrew 2016 - Forum software by © MyBB