ÔõôʹÓÃThinkPHPʵÏÖÓû§È¨Ï޵Ĺ¦Ð§
Ò»¡¢ ¼ò½é
ÔÚWebÓ¦ÓÃϵͳÖУ¬Óû§È¨ÏÞÖÎÀíÊÇϵͳÉè¼ÆµÄÖ÷Òª×é³É²¿·Ö£¬ÏµÍ³ÖÎÀíÔ±¿ÉÒÔͨ¹ýÓû§È¨ÏÞÖÎÀí¿ØÖÆÒ³ÃæµÄ¿É¼ûÐԺͿɲÙ×÷ÐÔ¡¢¿ØÖÆÓû§µÄ»á¼ûȨÏÞ¡£Óû§È¨ÏÞ·ÖΪÒÔϼ¸¸ö·½Ã棺
Ò³Ãæ»á¼ûȨÏÞ
Êý¾Ý»á¼ûȨÏÞ
Á¬Ã¦Ñ§Ï°¡°PHPÃâ·ÑѧϰÌõ¼Ç£¨ÉîÈ룩¡±£»
¶ÔÊý¾ÝµÄ²Ù×÷ȨÏÞ
¶þ¡¢ ʹÓÃThinkPHPʵÏÖÓû§È¨ÏÞµÄÁ÷³Ì
ÏÂÃæÊÇʹÓÃThinkPHPʵÏÖÓû§È¨ÏÞµÄÁ÷³Ì£º
½¨ÉèÒ»¸öȨÏÞ±í
Ê×ÏÈÎÒÃÇÐèÒªÔÚÊý¾Ý¿âÖн¨ÉèÒ»¸öȨÏÞ±í£¬¸Ã±í°üÀ¨ÒÔϼ¸¸ö×ֶΣº
id int(11) Ö÷¼ü£¬×ÔÔö name varchar(255) ȨÏÞÃû uri varchar(255) ×ÊԴ·¾¶ method varchar(255) ÇëÇóÒªÁì pid int(11) ¸¸¼¶È¨ÏÞID status tinyint(4) ״̬ createtime datetime ½¨Éèʱ¼ä
µÇ¼ºó¸´ÖÆ
½¨ÉèÒ»¸ö½ÇÉ«±í
½Ó×ÅÎÒÃÇÐèÒª½¨ÉèÒ»¸ö½ÇÉ«±í£¬¸Ã±í°üÀ¨ÒÔϼ¸¸ö×ֶΣº
id int(11) Ö÷¼ü£¬×ÔÔö name varchar(255) ½ÇÉ«Ãû status tinyint(4) ״̬ createtime datetime ½¨Éèʱ¼ä
µÇ¼ºó¸´ÖÆ
½¨ÉèÒ»¸öÓû§±í
È»ºóÎÒÃÇÐèÒª½¨ÉèÒ»¸öÓû§±í£¬¸Ã±í°üÀ¨ÒÔϼ¸¸ö×ֶΣº
id int(11) Ö÷¼ü£¬×ÔÔö username varchar(255) Óû§Ãû password varchar(255) ÃÜÂë status tinyint(4) ״̬ createtime datetime ½¨Éèʱ¼ä
µÇ¼ºó¸´ÖÆ
½¨ÉèÒ»¸öÓû§½ÇÉ«¹ØÁª±í
½Ó×ÅÎÒÃÇÐèÒª½¨ÉèÒ»¸öÓû§½ÇÉ«¹ØÁª±í£¬¸Ã±í°üÀ¨ÒÔϼ¸¸ö×ֶΣº
id int(11) Ö÷¼ü£¬×ÔÔö user_id int(11) Óû§ID role_id int(11) ½ÇÉ«ID status tinyint(4) ״̬ createtime datetime ½¨Éèʱ¼ä
µÇ¼ºó¸´ÖÆ
½¨ÉèÒ»¸ö½ÇɫȨÏÞ¹ØÁª±í
×îºóÎÒÃÇÐèÒª½¨ÉèÒ»¸ö½ÇɫȨÏÞ¹ØÁª±í£¬¸Ã±í°üÀ¨ÒÔϼ¸¸ö×ֶΣº
id int(11) Ö÷¼ü£¬×ÔÔö role_id int(11) ½ÇÉ«ID permission_id int(11) ȨÏÞID status tinyint(4) ״̬ createtime datetime ½¨Éèʱ¼ä
µÇ¼ºó¸´ÖÆ
±àдȨÏÞÑéÖ¤Âß¼
ÔÚÍê³ÉÉÏÊö×¼±¸ÊÂÇéÖ®ºó£¬ÎÒÃǾͿÉÒÔ×îÏȱàдȨÏÞÑéÖ¤Âß¼ÁË¡£Ïêϸ°ì·¨ÈçÏ£º
£¨1£© »ñÈ¡Ä¿½ñÓû§µÄ½ÇÉ«Áбí
ÎÒÃÇ¿ÉÒÔͨ¹ýÅÌÎÊÓû§½ÇÉ«¹ØÁª±í»ñÈ¡Ä¿½ñÓû§ËùÓµÓеÄËùÓнÇÉ«¡£
£¨2£© »ñÈ¡Ä¿½ñÓû§µÄȨÏÞÁбí
ÎÒÃÇ¿ÉÒÔͨ¹ýÅÌÎʽÇɫȨÏÞ¹ØÁª±í»ñÈ¡Ä¿½ñÓû§ËùÓµÓеÄËùÓÐȨÏÞ¡£
£¨3£© ÅжÏÄ¿½ñÇëÇóÊÇ·ñÓÐȨÏÞ»á¼û
ÎÒÃÇ¿ÉÒÔͨ¹ýÅжÏÄ¿½ñÇëÇóµÄURIºÍÇëÇóÒªÁìÊÇ·ñÔÚÄ¿½ñÓû§µÄȨÏÞÁбíÖУ¬ÈôÊDZ£´æÔòÌåÏÖÄ¿½ñÓû§ÓÐȨÏÞ»á¼û¸Ã×ÊÔ´£¬²»È»ÔòûÓÐȨÏÞ¡£
ÒÔÉϾÍÊÇÔõôʹÓÃThinkPHPʵÏÖÓû§È¨Ï޵Ĺ¦Ð§µÄÏêϸÄÚÈÝ£¬¸ü¶àÇë¹Ø×¢±¾ÍøÄÚÆäËüÏà¹ØÎÄÕ£¡