This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.
Dear all, I want to build up a backend page with two items into the navigation. One item should invoke the index() action, the other another action, let call it my_action(), and both of them should render a list with a different scope. I was able to correctly register the navigation items and to display the list associated with the index() action. I was also able to call my_action() from the navigation button, but I'm not able to see any list, even if I use the same code as the index() action. How can I render properly the second list?
// Code for the index() action:
public function index()
{
$this->asExtension('ListController')->index();
}
-------------------
// Code of index.html
<?= $this->listRender() ?>
Last updated
You need a view with same name of the action and call into your view.
<?= $this->listRender() ?>
1-2 of 2