Example #1
0
 public function showChildAction($id)
 {
     $Category = Category::find("parentId=" . $id . " and status=1");
     $parent = Category::findfirst("id=" . $id);
     $this->view->setVar("parent", $parent);
     $this->view->setVar("category", $Category);
 }