PHPcms ¾¿¾¹Òª²»Òª»¨Ç®Ãâ·ÑÕæÏà´ó½ÒÃØ£¡
PHPcms ¾¿¾¹Òª²»Òª»¨Ç®Ãâ·ÑÕæÏà´ó½ÒÃØ£¡
ÔÚÍøÕ¾½¨ÉèÁìÓò£¬Ñ¡ÔñÒ»¸öºÏÊʵÄÄÚÈÝÖÎÀíϵͳ£¨CMS£©¹ØÓÚÍøÕ¾µÄ½¨ÉèºÍÖÎÀíÖÁ¹ØÖ÷Òª¡£ÆäÖУ¬PHPcms ÊÇÒ»¸ö±»ÆÕ±éÓ¦ÓõĿªÔ´CMSϵͳ£¬ËüÌṩÁ˸»ºñµÄ¹¦Ð§ºÍÎÞаµÄÍØÕ¹ÐÔ£¬ÉîÊÜÐí¶àÍøÕ¾¿ª·¢ÕßµÄϲ»¶¡£È»¶ø£¬¹ØÓÚ PHPcms ¾¿¾¹ÊÇÒª»¨Ç®ÕÕ¾ÉÃâ·ÑµÄÎÊÌ⣬һֱÊÇÈÃÈËÒÉ»óµÄ»°Ìâ¡£½ñÌ죬ÎÒÃǾÍÀ´½Ò¿ª PHPcms ¾¿¾¹Òª²»Òª»¨Ç®µÄÕæÏà¡£
PHPcms µÄÃâ·Ñ°æ±¾
PHPcms ÓÐÁ½¸ö°æ±¾£¬Ò»¸öÊÇÃâ·ÑµÄ¿ªÔ´°æ±¾£¬ÁíÒ»¸öÊÇÊշѵÄÉÌÒµ°æ¡£Ãâ·ÑµÄ¿ªÔ´°æ±¾ÌṩÁË»ù±¾µÄ¹¦Ð§ºÍÄ£°å£¬ÊʺÏÒ»Ñùƽ³£µÄСÐÍÍøÕ¾»òСÎÒ˽¼ÒÍøվʹÓá£Õâ¸ö°æ±¾¿ÉÒÔͨ¹ý¹Ù·½ÍøÕ¾Ãâ·ÑÏÂÔØ£¬Ã»ÓÐÈκÎÓöȡ£ÏÂÃæÊÇÒ»¸ö¼òÆÓµÄʾÀý´úÂ룬ÑÝʾÔõÑùÔÚ PHPcms Öн¨ÉèÒ»¸öÎÄÕÂÄ£¿é£º
// ½¨ÉèÎÄÕÂÄ£¿é $module = new Module(); $module->name = 'Articles'; $module->save();
µÇ¼ºó¸´ÖÆ
Õâ¶Î´úÂëչʾÁËÔÚ PHPcms Öн¨ÉèÒ»¸öÃûΪ¡°Articles¡±µÄÎÄÕÂÄ£¿é£¬ºÜÊǼòÆÓ²¢ÇÒÖ±¹Û¡£
Á¬Ã¦Ñ§Ï°¡°PHPÃâ·ÑѧϰÌõ¼Ç£¨ÉîÈ룩¡±£»
PHPcms µÄÉÌÒµ°æ±¾
³ýÁËÃâ·ÑµÄ¿ªÔ´°æ±¾Í⣬PHPcms ÉÐÓÐÒ»¸ö¸üΪǿʢµÄÉÌÒµ°æ±¾£¬ÌṩÁ˸ü¶àµÄ¸ß¼¶¹¦Ð§ºÍרҵµÄÊÖÒÕÖ§³Ö¡£ÉÌÒµ°æ±¾µÄÓöÈͨ³£Æ¾Ö¤Óû§µÄÐèÇóºÍÍøÕ¾¹æÄ£¶ø¶¨£¬Ò»Ñùƽ³£ÓйºÖúÍʹÓõÄÓöȡ£ÉÌÒµ°æ±¾µÄÓÅÊÆÔÚÓÚÌṩÁ˸ü¸»ºñµÄ¹¦Ð§ºÍ¸üÓÅÖʵÄЧÀÍ£¬ÊʺÏÐèÒª¶¨ÖÆ»¯ºÍ¸üרҵ֧³ÖµÄÓû§¡£ÏÂÃæÊÇÒ»¸öʾÀý´úÂ룬չʾÁËÔõÑùÔÚ PHPcms ÉÌÒµ°æÖÐʵÏÖÓû§ÖÎÀí¹¦Ð§£º
// Óû§µÇ¼ÑéÖ¤ $user = new User(); $user->name = 'John'; $user->password = '123456'; if($user->authenticate()) { echo 'µÇ¼Àֳɣ¡'; } else { echo 'µÇ¼ʧ°Ü£¡'; }
µÇ¼ºó¸´ÖÆ
Õâ¶Î´úÂëÑÝʾÁËÔÚ PHPcms ÉÌÒµ°æ±¾ÖоÙÐÐÓû§µÇ¼ÑéÖ¤µÄÀú³Ì£¬ÌåÏÖÁËÉÌÒµ°æ±¾µÄһЩ¸ß¼¶¹¦Ð§¡£
ÔõÑùÑ¡Ôñ
¹ØÓÚÊÇ·ñÑ¡Ôñ PHPcms µÄÃâ·Ñ°æ±¾ÕÕ¾ÉÉÌÒµ°æ±¾£¬È¡¾öÓÚÄãµÄÏÖʵÐèÇóºÍÔ¤Ëã¡£ÈôÊÇÄãÖ»ÊÇÐèÒªÒ»¸ö¼òÆÓµÄÍøÕ¾£¬²¢ÇÒÔ¤ËãÓÐÏÞ£¬ÄÇôÃâ·ÑµÄ¿ªÔ´°æ±¾ÍêÈ«¿ÉÒÔÖª×ãÄãµÄÐèÇó¡£µ«ÈôÊÇÄãÐèÒª¸ü¶àµÄ¹¦Ð§ºÍ¸üרҵµÄÖ§³Ö£¬¿ÉÒÔ˼Á¿¹ºÖÃÉÌÒµ°æ±¾¡£
×ÛÉÏËùÊö£¬PHPcms ÓÐÃâ·ÑµÄ¿ªÔ´°æ±¾ºÍÊշѵÄÉÌÒµ°æ±¾£¬ÏêϸҪ²»Òª»¨Ç®È¡¾öÓÚÄãµÄÐèÇóºÍÔ¤Ëã¡£²»¹ÜÑ¡ÔñÄĸö°æ±¾£¬¶¼¿ÉÒÔƾ֤×Ô¼ºµÄÐèÒª¾ÙÐж¨ÖƺÍÀ©Õ¹£¬ÎªÍøÕ¾µÄ½¨ÉèºÍÖÎÀíÌṩ¸ü¶àµÄ¿ÉÄÜÐÔ¡£Ï£Íûͨ¹ý±¾ÎĵÄÏÈÈÝ£¬¿ÉÒÔ×ÊÖúÄã¸üºÃµØÏàʶ PHPcms£¬²¢×÷³öºÏÊʵÄÑ¡Ôñ¡£
ÒÔÉϾÍÊÇPHPcms ¾¿¾¹Òª²»Òª»¨Ç®Ãâ·ÑÕæÏà´ó½ÒÃØ£¡µÄÏêϸÄÚÈÝ£¬¸ü¶àÇë¹Ø×¢±¾ÍøÄÚÆäËüÏà¹ØÎÄÕ£¡