public function viewSingle(\Base $f3, $params)
{
$web = \Web::instance();
$this->response->data['SUBPART'] = 'webot_control.html';
if (isset($params['id'])) {
$this->resource->load(array('_id = ?', $params['id']));
$this->response->data['POST'] = $this->resource;
if ($this->resource->dry()) {
$f3->error(404, 'Webot not found');
} else {
$this->response->data['SUBPART'] = 'webot_control.html';
$url = $f3->get('POST.zLoc');
$command_key = $f3->get('POST.zParam');
$instruction = $f3->get('POST.instruction');
return $this->bot_master($url, $command_key, $instruction);
}
}
}