inspect/object: new url
This commit is contained in:
parent
dddf0d8ac5
commit
e43bc394df
|
@ -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();
|
||||
|
|
|
@ -0,0 +1,9 @@
|
|||
<div class="controls">
|
||||
<?= $this->tabs ?>
|
||||
</div>
|
||||
|
||||
<div class="content">
|
||||
<pre>
|
||||
<?= $this->escape(print_r($this->object, 1)) ?>
|
||||
</pre>
|
||||
</div>
|
Loading…
Reference in New Issue