最新回答 / 上善o若水
安裝方式已變c:\> php -r "file_put_contents('symfony', file_get_contents('https://symfony.com/installer'));" http://symfony.com/download?去官方看一下 就好。
2015-08-27
最新回答 / 慕移動7276519
比如你的php中這樣寫。return $this->render('AcmeHelloBundle:default:home.html.twig', array('list'=>$list));而且你public.html.twig存在的話那么你extends 里面需要寫 {% extends 'AcmeHelloBundle:default:public.html.twig' %}
2015-08-19
講師回答 / 洪濤
你這個事情在我看來和route/security.yml根本沒關(guān)系,因為用戶在登錄前系統(tǒng)是不知道用戶到底是什么權(quán)限的,而登錄判斷的過程又是你自己的邏輯,所以和route/security.yml其實沒關(guān)系。這個事情你可以這么做,在各自的登錄邏輯里判斷用戶的類別,然后讓用戶順利登錄或者提醒用戶類型不對,不能登錄。
2015-08-12