getdata()
What exactly should be returned to this function?
I see it is a string. What should the string contents be?
Edited by nomail_forme, 28 May 2012 - 11:29 AM.
Posted 28 May 2012 - 11:27 AM
Edited by nomail_forme, 28 May 2012 - 11:29 AM.
Posted 28 May 2012 - 11:49 AM
Posted 28 May 2012 - 11:56 AM
$data = '<div class="ui-widget infoBoxContainer">' . ' <div class="ui-widget-header infoBoxHeading">' . MODULE_BOXES_CATEGORIES_BOX_TITLE . '</div>' . ' <div class="ui-widget-content infoBoxContents">' . $categories_string . '</div>' . '</div>'; return $data;
Posted 28 May 2012 - 12:13 PM
$info_box_contents = array();
$info_box_contents[] = array('text' => '<ul class="categories">' . $categories_string . '</ul>');
new infoBox2($info_box_contents);
-Thanks for your answers so far
Edited by nomail_forme, 28 May 2012 - 12:22 PM.
Posted 28 May 2012 - 01:12 PM
Edited by nomail_forme, 28 May 2012 - 01:12 PM.
Posted 28 May 2012 - 07:20 PM
ob_start(); new infoBox2($info_box_contents); $data = ob_get_clean(); return $data;