你好Umair沙阿Yousafzai出色的文檔,
正如我'目前正在對symfony的V1,讓我分享我所知道的
1)路由:
Path : apps/frontend/config/routing.yml
用法: homepage: url: /index param: { module: Dashboard, action: index }
這裏的模塊是指symfony v2或更高版本中的Bundle。
Reference
2)控制器:
Path : apps/frontend/Dashboard/actions/actions.class.php
用法:
在symfony中V1,
public function executeIndex() { //your code here }
在symfony中V2,
public function indexAction() { //your code here }
Reference
在symfony v2或更高版本中,我們使用了一種名爲「indexAction」的東西,但在symfony v1中,我們給出了一個前綴「executeIndex」。
3)查看:
Path : apps/frontend/Dashboard/templates/indexSuccess.php
Reference
4)DB
讓我的用戶創建表的實體文件。 Path : config/schema.xml
模式。YML文件中包含的所有表的描述及其 列
Reference
路徑: lib/model/map/UserMapBuilder.php lib/model/om/BaseUser.php lib/model/User.php and UserPeer.php
這裏UserPeer.php擁有所有與實體相關的自定義功能。
我希望這會幫助你開始。
謝謝,
不幸的是,唯一的辦法是閱讀文檔,因爲是兩個完全不同的框架。 –
@gp_sflover:問題是我沒有得到任何最佳的v1工作文檔,但v2有很多很好的文檔..!還有如何檢查哪個版本改變了什麼,因爲我相信即使版本也有差異需要學習。 –
嗨,看看http://symfony.com/doc/2.8/introduction/symfony1.html – COil