เมื่อเราทำการติดตั้ง โดยการ
set up symfony2 Framework in netBeans เราจะสามารถสร้างไฟล์ผ่าน Command ของ NetBeans ได้โดยมีขั้นตอนดังนี้ค่ะ
เเต่ในกรณีที่เราติดตั้ง symfony2 Framwork แบบธรรมดา เราก็สามารถสร้าง Hello ได้ตามตัวอย่างที่นี่ค่ะ
- 27-11-2557 11-19-55.jpg (125.43 KiB) Viewed 965 times
ขั้นตอนเเรก ให้เราคลิกขวาที่ตัว Project เราเลยค่ะเเล้วเลือกที่ Symfony 2 > Run Command
- 27-11-2557 11-20-21.jpg (135.23 KiB) Viewed 965 times
ให้ทำการค้นหาคำว่า gen
- 27-11-2557 11-21-03.jpg (128.5 KiB) Viewed 965 times
เมื่อทำตามขั้นตอนเเรกจะปรากฏแถว Command ขั้นมา
2. ให้เราระบุชื่อ โฟลเดอร์ที่เราจะทำการสร้าง [namespace] ตัวอย่างคือ :
- 27-11-2557 11-23-51.jpg (112.47 KiB) Viewed 965 times
Bundle namespace:
test/helloBundle
Bundle name [testhelloBundle]:
[Enter ได้เลย]
Target directory [D:/xampp/htdocs/PhpProject1/src]:
[Enter ได้เลย]
Configuration format (yml, xml, php, or annotation):
yml
- 27-11-2557 11-24-38.jpg (106.73 KiB) Viewed 965 times
Do you want to generate the whole directory structure [no]? :
[Enter ได้เลย]
Do you confirm generation [yes]? :
[Enter ได้เลย]
- 27-11-2557 11-25-14.jpg (89.85 KiB) Viewed 965 times
Confirm automatic update of the Routing [yes]? :
yes
- 27-11-2557 11-26-45.jpg (60.29 KiB) Viewed 965 times
จากนั้นก็จะปรากฎชื่อโฟลเดอร์ของเรา
- 27-11-2557 11-25-42.jpg (50.59 KiB) Viewed 965 times
เพียงเท่านี้เราก็จะได้ ไฟล์ hello เเล้วค่ะ
- 27-11-2557 11-27-47.jpg (59.32 KiB) Viewed 965 times
เมื่อเราทำการติดตั้ง โดยการ [url=https://www.mindphp.com/forums/viewtopic.php?f=72&t=24845]set up symfony2 Framework in netBeans[/url] เราจะสามารถสร้างไฟล์ผ่าน Command ของ NetBeans ได้โดยมีขั้นตอนดังนี้ค่ะ
[i]เเต่ในกรณีที่เราติดตั้ง [url=https://www.mindphp.com/forums/viewtopic.php?f=72&t=22680]symfony2 Framwork[/url] แบบธรรมดา เราก็สามารถสร้าง Hello [url=https://www.mindphp.com/forums/viewtopic.php?f=72&t=23165]ได้ตามตัวอย่างที่นี่ค่ะ[/url][/i]
[attachment=8]27-11-2557 11-19-55.jpg[/attachment]
ขั้นตอนเเรก ให้เราคลิกขวาที่ตัว Project เราเลยค่ะเเล้วเลือกที่ Symfony 2 > Run Command
[attachment=7]27-11-2557 11-20-21.jpg[/attachment]
ให้ทำการค้นหาคำว่า gen
[attachment=6]27-11-2557 11-21-03.jpg[/attachment]
เมื่อทำตามขั้นตอนเเรกจะปรากฏแถว Command ขั้นมา
2. ให้เราระบุชื่อ โฟลเดอร์ที่เราจะทำการสร้าง [namespace] ตัวอย่างคือ :
[attachment=5]27-11-2557 11-23-51.jpg[/attachment]
Bundle namespace: [color=#FF0000]test/helloBundle[/color]
Bundle name [testhelloBundle]:[color=#FF0000] [Enter ได้เลย][/color]
Target directory [D:/xampp/htdocs/PhpProject1/src]: [color=#FF0000][Enter ได้เลย][/color]
Configuration format (yml, xml, php, or annotation): [color=#FF0000]yml[/color]
[attachment=4]27-11-2557 11-24-38.jpg[/attachment]
Do you want to generate the whole directory structure [no]? : [color=#FF0000][Enter ได้เลย][/color]
Do you confirm generation [yes]? : [color=#FF0000][Enter ได้เลย][/color]
[attachment=3]27-11-2557 11-25-14.jpg[/attachment]
Confirm automatic update of the Routing [yes]? : [color=#FF0000]yes[/color]
[attachment=1]27-11-2557 11-26-45.jpg[/attachment]
จากนั้นก็จะปรากฎชื่อโฟลเดอร์ของเรา
[attachment=2]27-11-2557 11-25-42.jpg[/attachment]
เพียงเท่านี้เราก็จะได้ ไฟล์ hello เเล้วค่ะ
[attachment=0]27-11-2557 11-27-47.jpg[/attachment]