1
Hello! I am am (hope!
) e xoops-programmers. What's mean?
That i love to built my xoops's page using an xoops' object
It is very natrally for me. But there is a little problem that i don't understand
when i am using a xoopsForm Object. I explain:
I want insert a row in xoops-form between two element and I have a problem with a
insertBreak(); method in XoopsThemeForm.php class
Here is the brief code for example:
============================================================
include XOOPS_ROOT_PATH."/class/xoopsformloader.php";
$form = new XoopsThemeForm('Aggiungi Xoopsit User', 'addUser', 'adduser.php', 'POST');
//add a textbox for insert username ->OK!
$form->addElement(new XoopsFormText('Nick:', 'user'));
//I try to insert a html row (there are three mode i think...if i understand
):
____________________________________
$form->insertBreak(); // just an empty row doesn't work
$form->insertBreak('
Some html or text'); //doesn't work
or or like this...
$form->insertBreak('
Some Some html or text','someCSSclass'); // doesn't work
am i e very dummy xoopser Where is the wrong?
______________________________________
//buttom for submit and reset ->OK!
$submit = new XoopsFormButton('', 'submit','Invia');
$reset = new XoopsFormButton('', 'reset','Reset', 'reset');
$button_tray = new XoopsFormElementTray("", " ");
$button_tray->addElement($submit);
$button_tray->addElement($reset);
$form->addElement($button_tray);
//display form...->OK!
$form->display();
======================================================================================
I can see a text for username and the submit and reset button BUT...
insertBreak is dead...:-|
Do you know where i wrong?
thank you
dan_mtv