Views contain the HTML served by your application and separate your co การแปล - Views contain the HTML served by your application and separate your co ไทย วิธีการพูด

Views contain the HTML served by yo

Views contain the HTML served by your application and separate your controller / application logic from your presentation logic. Views are stored in the resources/views directory.

A simple view might look something like this:

Since this view is stored at resources/views/greeting.php, we may return it using the global view helper function like so:

As you can see, the first argument passed to the view helper corresponds to the name of the view file in the resources/views directory. The second argument passed to helper is an array of data that should be made available to the view. In this case, we are passing the name variable, which is displayed in the view by simply executing echo on the variable.

Of course, views may also be nested within sub-directories of the resources/views directory. "Dot" notation may be used to reference nested views. For example, if your view is stored at resources/views/admin/profile.php, you may reference it like so:
0/5000
จาก: -
เป็น: -
ผลลัพธ์ (ไทย) 1: [สำเนา]
คัดลอก!
Views contain the HTML served by your application and separate your controller / application logic from your presentation logic. Views are stored in the resources/views directory.A simple view might look something like this:Since this view is stored at resources/views/greeting.php, we may return it using the global view helper function like so:As you can see, the first argument passed to the view helper corresponds to the name of the view file in the resources/views directory. The second argument passed to helper is an array of data that should be made available to the view. In this case, we are passing the name variable, which is displayed in the view by simply executing echo on the variable.Of course, views may also be nested within sub-directories of the resources/views directory. "Dot" notation may be used to reference nested views. For example, if your view is stored at resources/views/admin/profile.php, you may reference it like so:
การแปล กรุณารอสักครู่..
ผลลัพธ์ (ไทย) 2:[สำเนา]
คัดลอก!
ชมมี HTML เสิร์ฟโดยแอพลิเคชันของคุณและแยกตรรกะควบคุม / การประยุกต์ใช้ตรรกะของคุณจากการนำเสนอของคุณ ชมถูกเก็บไว้ในทรัพยากร directory / มุมมอง. ดูง่ายอาจมีลักษณะบางอย่างเช่นนี้ตั้งแต่มุมมองนี้จะถูกเก็บไว้ที่ทรัพยากร / views / greeting.php เราอาจจะกลับมาได้โดยใช้ฟังก์ชั่นผู้ช่วยมุมมองทั่วโลกเช่นดังนั้น: ที่คุณสามารถดู อาร์กิวเมนต์แรกที่ส่งผ่านไปยังผู้ช่วยมุมมองที่สอดคล้องกับชื่อของแฟ้มในมุมมองทรัพยากร directory / มุมมอง อาร์กิวเมนต์ที่สองส่งผ่านไปยังผู้ช่วยเป็นอาร์เรย์ของข้อมูลที่ควรจะทำให้มีมุมมอง ในกรณีนี้เราจะผ่านตัวแปรชื่อซึ่งจะแสดงในมุมมองโดยเพียงแค่การดำเนินการเกี่ยวกับการสะท้อนตัวแปร. แน่นอนว่ามุมมองที่อาจจะมีการซุกซ่อนอยู่ภายในไดเรกทอรีย่อยของทรัพยากร directory / มุมมอง "ดอท" สัญกรณ์อาจถูกใช้เพื่ออ้างอิงมุมมองที่ซ้อนกัน ตัวอย่างเช่นถ้ามุมมองของคุณจะถูกเก็บไว้ที่ทรัพยากร / views / admin / profile.php คุณอาจอ้างอิงได้เช่นดังนั้น:







การแปล กรุณารอสักครู่..
ผลลัพธ์ (ไทย) 3:[สำเนา]
คัดลอก!
มุมมองมี HTML โดยใช้โปรแกรมประยุกต์ของคุณ และแยกตรรกะควบคุม / ใบสมัครของคุณจากตรรกะการนำเสนอของคุณ ความคิดเห็นจะถูกเก็บไว้ในไดเรกทอรีทรัพยากร / มุมมอง

ดูง่ายอาจมีลักษณะบางอย่างเช่นนี้ :

เนื่องจากมุมมองนี้ถูกเก็บไว้ที่ / ทรัพยากร / ความคิดเห็น greeting.php เราอาจจะกลับมาใช้ทั่วโลกดูผู้ช่วยฟังก์ชันเช่นดังนั้น :

อย่างที่คุณเห็นอาร์กิวเมนต์แรกผ่านมุมมองผู้ช่วยที่สอดคล้องกับชื่อของไฟล์ดูในมุมมองทรัพยากร / ไดเรกทอรี อาร์กิวเมนต์ที่สองผ่านผู้ช่วยเป็นอาร์เรย์ของข้อมูลที่ให้มีมุมมอง ในกรณีนี้เราจะผ่านชื่อของตัวแปรซึ่งจะปรากฏในมุมมองโดยเพียงแค่การสะท้อนในตัวแปร

แน่นอนมุมมองที่อาจจะอยู่ในไดเรกทอรีย่อยในไดเรกทอรีทรัพยากร / มุมมอง " จุด " โน้ต อาจใช้อ้างอิงอยู่ views ตัวอย่างเช่น ถ้ามุมมองของคุณจะถูกเก็บไว้ในแหล่งข้อมูล / มุมมอง / admin / profile.php , คุณอาจจะอ้างอิงดังนี้
การแปล กรุณารอสักครู่..
 
ภาษาอื่น ๆ
การสนับสนุนเครื่องมือแปลภาษา: กรีก, กันนาดา, กาลิเชียน, คลิงออน, คอร์สิกา, คาซัค, คาตาลัน, คินยารวันดา, คีร์กิซ, คุชราต, จอร์เจีย, จีน, จีนดั้งเดิม, ชวา, ชิเชวา, ซามัว, ซีบัวโน, ซุนดา, ซูลู, ญี่ปุ่น, ดัตช์, ตรวจหาภาษา, ตุรกี, ทมิฬ, ทาจิก, ทาทาร์, นอร์เวย์, บอสเนีย, บัลแกเรีย, บาสก์, ปัญจาป, ฝรั่งเศส, พาชตู, ฟริเชียน, ฟินแลนด์, ฟิลิปปินส์, ภาษาอินโดนีเซี, มองโกเลีย, มัลทีส, มาซีโดเนีย, มาราฐี, มาลากาซี, มาลายาลัม, มาเลย์, ม้ง, ยิดดิช, ยูเครน, รัสเซีย, ละติน, ลักเซมเบิร์ก, ลัตเวีย, ลาว, ลิทัวเนีย, สวาฮิลี, สวีเดน, สิงหล, สินธี, สเปน, สโลวัก, สโลวีเนีย, อังกฤษ, อัมฮาริก, อาร์เซอร์ไบจัน, อาร์เมเนีย, อาหรับ, อิกโบ, อิตาลี, อุยกูร์, อุสเบกิสถาน, อูรดู, ฮังการี, ฮัวซา, ฮาวาย, ฮินดี, ฮีบรู, เกลิกสกอต, เกาหลี, เขมร, เคิร์ด, เช็ก, เซอร์เบียน, เซโซโท, เดนมาร์ก, เตลูกู, เติร์กเมน, เนปาล, เบงกอล, เบลารุส, เปอร์เซีย, เมารี, เมียนมา (พม่า), เยอรมัน, เวลส์, เวียดนาม, เอสเปอแรนโต, เอสโทเนีย, เฮติครีโอล, แอฟริกา, แอลเบเนีย, โคซา, โครเอเชีย, โชนา, โซมาลี, โปรตุเกส, โปแลนด์, โยรูบา, โรมาเนีย, โอเดีย (โอริยา), ไทย, ไอซ์แลนด์, ไอร์แลนด์, การแปลภาษา.

Copyright ©2025 I Love Translation. All reserved.

E-mail: