}
- function get($id)
+ function get($id, $opts = Array())
{
$ev = DB_DataObject::Factory('Events');
if (!$ev->get((int)$id)) {
}
echo '<PRE>' . htmlspecialchars(print_r(json_decode(file_get_contents($file)), true)) . '</PRE>';
- echo '<BR/><PRE>'. htmlspecialchars($ev->remarks) . '</PRE>';
+// echo '<BR/><PRE>'. htmlspecialchars($ev->remarks) . '</PRE>';
$json = json_decode($ev->remarks, JSON_PRETTY_PRINT);
foreach($filesJ->FILES as $k=>$f){
- $ip = $ff->baseURL."/Images/events/". $ev->id . '/'. $f->tmp_name;
+ $ip = $this->baseURL."/Images/events/". $ev->id . '/'. $f->tmp_name;
echo '<a href="'.$ip.'/download">' . htmlspecialchars( $k . ' - ' . $f->name ) . '</a><br/>';
}