I have a method in a model and I need the array of state variables. In controller it's easy, simply get an $model object and get the array with
$state = $model->getState();
But in a model all my test always get an error 0 or 503:
class MyModel extends ListModel
{
...
public function setFiltrosActivos()
{
$state = $this->getState(); // 503 error
}
}
Please, how can I get the state variables in a method inside a model?