Heim > Fragen und Antworten > Hauptteil
/***
* Benutzernamen erhalten
*/
public function left(){
$admin_id = session('admin_id');
$user_name=M("admin");
$user_name=$user_name-> ;where($admin_id )->find();
$this->assign('user_name',$user_name);
$this->display();
}
用户名:< ;td>{$user_name}</td>