update
@ -35,4 +35,11 @@ class Category extends Controller
$list = $model->getListPublic($this->request->param());
return $this->renderSuccess(compact('list'));
}
public function childrenList(): Json
{
$model = new CategoryModel;
$list = $model->getChildrenList($this->request->param());