I create two view for one component in joomla
for backend. When I create my first View it is display properly,but when I create my second View I got this error:
Fatal error: Call to a member function get() on a non-object in C:\xampp\htdocs\Joomla\administrator\components\com_machine\views\machinecategories\tmpl\default.php on line 14
and in my default.php
on line 14 I declare this for second view.
$listOrder = $this->escape($this->state->get('list.ordering')); //Line 14
$listDirn = $this->escape($this->state->get('list.direction')); //Line 15