inspect/object: new url

This commit is contained in:
Thomas Gelf 2015-11-26 18:54:10 +01:00
parent dddf0d8ac5
commit e43bc394df
2 changed files with 18 additions and 2 deletions

View File

@ -36,14 +36,21 @@ class InspectController extends ActionController
}
if (! empty($type->fields)) {
$this->view->objects = $this->api()->getObjects(
$this->view->objects = $this->api()->listObjects(
$typeName,
$type->plural_name
//array_keys((array) $type->fields)
);
}
}
public function objectAction()
{
$this->view->object = $this->api()->getObject(
$this->params->get('name'),
$this->params->get('plural')
);
}
public function statusAction()
{
$this->view->status = $status = $this->api()->getStatus();

View File

@ -0,0 +1,9 @@
<div class="controls">
<?= $this->tabs ?>
</div>
<div class="content">
<pre>
<?= $this->escape(print_r($this->object, 1)) ?>
</pre>
</div>