{php} $controller=strtolower(request()->controller()); $action=strtolower(request()->action()); $adminCtegory=db('category')->where(['controller'=>$controller,'function'=>$action])->cache(_cache('db'))->find(); if($adminCtegory){ $adminCtegoryTid=db('category')->where(['tid'=>$adminCtegory['id'],'hideright'=>1])->order('des asc,id asc')->cache(_cache('db'))->select(); }else{ $adminCtegoryTid=[]; } {/php}