最新回答 / 程序小工
是默認(rèn)值的問題,實(shí)際工作中大多數(shù)對時(shí)間格式都是直接使用int類型,保存時(shí)間戳格式,使用的時(shí)候再對其格式化的,所以這個(gè)你可以直接使用int類型,而不要用timestamp類型,這是細(xì)節(jié)問題,不用深究,主要學(xué)習(xí)權(quán)限管理功能的。
2018-05-02
建議這里把源代碼下下來 ,再跟著學(xué)好點(diǎn),剛看到老師在文檔里有apache相關(guān)配置的方法,我自己也總結(jié)了一下,大家可以參考,http://tianyalive.com/?p=220
2018-04-29
顯示 The requested URL /rabc/web/gii/model was not found on this server.
1、確定apache httpd.conf配置文件中加載了mod_rewrite.so模塊
2、在httpd.conf找到.htaccess處的AllowOverride None 將None改為 All
3、在web下創(chuàng)建一個(gè).htaccess
1、確定apache httpd.conf配置文件中加載了mod_rewrite.so模塊
2、在httpd.conf找到.htaccess處的AllowOverride None 將None改為 All
3、在web下創(chuàng)建一個(gè).htaccess
2018-04-29
顯示 The requested URL /rabc/web/gii/model was not found on this server.
可在web后面手動(dòng)加index.php
如:http://127.0.0.1/yii/rbac/web/index.php/gii/model
可在web后面手動(dòng)加index.php
如:http://127.0.0.1/yii/rbac/web/index.php/gii/model
2018-04-28
最新回答 / 慕村0974132
post請求如果出現(xiàn)400報(bào)錯(cuò),配置文件web.php中,添加代碼'components' => ['request' => ['cookieValidationKey' => 'asfsfdfdsfsd',"enableCsrfValidation"=>false],即可解決。
2018-04-22