<strong>'.$registration['message'].'</strong>
</div>';
}
if(!Session::get('event')) {
$ref = explode('/', $_SERVER["HTTP_REFERER"]);
$eve = Dips\Cms\Model\Event\Event::find_by_slug(end($ref));
<strong>'.$registration['message'].'</strong>
</div>';
}
if(!Session::get('event')) {
$ref = explode('/', $_SERVER["HTTP_REFERER"]);
$eve = Dips\Cms\Model\Event\Event::find_by_slug(end($ref));
unset($data);
extract($this->data);
ob_start();
if ($this->exists()) {
include $this->path();
} else {
throw new LogicException(
* Create a new template and render it.
* @param string $name
* @param array $data
* @return string
*/
public function render($name, array $data = array())
{
return $this->make($name)->render($data);
}
}
echo $template->render('event', $assign);
});
$route->match('/registration', function() use ($route, $template) {
$assign['is'] = 'Event Registration';
echo $template->render('event-registration', $assign);
});
if (isset($data[$index+1]) && isset($data[$index+1][0]) && is_array($data[$index+1][0])) {
return trim(substr($match[0][0], 0, $data[$index+1][0][1] - $match[0][1]), '/');
} else {
return (isset($match[0][0]) ? trim($match[0][0], '/') : null);
}
}, $data, array_keys($data));
call_user_func_array($value['fn'], $parameter);
$i++;
public function run($callback = null) {
$this->method = $this->method();
if (isset($this->beforeroute[$this->method])) $this->handle($this->beforeroute[$this->method]);
$num = 0;
if (isset($this->route[$this->method])) $num = $this->handle($this->route[$this->method], true);
if ($num == 0) {
break;
}
echo $template->render($detect->call, $assign);
});
$route->run();
if ($route->segment(1) == ENGINE) {
$dips = ($site['whitelist']['status']['backend'] && !$legal['backend']) ? 'app/global/redirect' : 'engine';
} else {
$dips = ($site['whitelist']['status']['frontend'] && !$legal['frontend'] || $site['offline']['status'] && !$legal['frontend']) ? 'app/global/maintenance' : 'theme';
}
require_once $dips . '.php';
ob_end_flush();