13
I've tried your minitutorial at:
http://wiki.xoops.org/wakka.php?wakka=FormHowToIt works except aren't there some variables missing? I get:
Notice [PHP]: Use of undefined constant _FT_NAME - assumed '_FT_NAME' in file modules/formtest/formtest.php line 2
Notice [PHP]: Use of undefined constant _FT_DESC - assumed '_FT_DESC' in file modules/formtest/formtest.php line 3
Notice [PHP]: Use of undefined constant _FT_SUBMIT - assumed '_FT_SUBMIT' in file modules/formtest/formtest.php line 4
Notice [PHP]: Use of undefined constant _FT_TESTFORM - assumed '_FT_TESTFORM' in file modules/formtest/formtest.php line 5
I don't see those defined anywhere. As I am a beginner, where is the appropriate place to define them?
(Edit)
I could of course define them in "formtest.php" but should any and all "text" constants be defined in the language/english dir? If so how do you get them recognized by other pieces of code? Is this where the common language strings come in? Should I use something like define('_MD_FT_NAME', 'Item') in languages/english/main.php (doesn't seem to work). (Real newbie here)
(2nd edit)
Looked at other modules and now see the how others do it. define('_FT_NAME', 'Item') in languages/english/main.php. All defines seem to be there.
Thanks for the tutorial.
Doug P