hello for some reason I need to create a php plug-in linked to a button that retrieves different items from a list and merges them in an email. I know the email plug-in can do it, but I cannot let my users select all lines from the list and mailt them, I need a 'more integrated way'
I have managed to retrieve properly my list data with the following usefull code from the Wiki:
$listModel = JModelLegacy::getInstance('List', 'FabrikFEModel');
$listModel->setId(4);
$data = $listModel->getData();
But if in php I do a stupid print_r fine, I see all the structure of the array and I know that I've got what I need, but tht does not give me a very sexy display.
=> is there any simple method in php that I can use to integrate my list into my e-mail as it would display on the web site straight ?
That would help me not to reinvent the Wheel browsing through the array and using my custom style -)
THANX A LOT
I have managed to retrieve properly my list data with the following usefull code from the Wiki:
$listModel = JModelLegacy::getInstance('List', 'FabrikFEModel');
$listModel->setId(4);
$data = $listModel->getData();
But if in php I do a stupid print_r fine, I see all the structure of the array and I know that I've got what I need, but tht does not give me a very sexy display.
=> is there any simple method in php that I can use to integrate my list into my e-mail as it would display on the web site straight ?
That would help me not to reinvent the Wheel browsing through the array and using my custom style -)
THANX A LOT