Home
Add Document
Sign In
Register
laptrinhlaravel_bai5.pdf
Home
laptrinhlaravel_bai5.pdf
Full description...
Author:
Ho Khoa
12 downloads
130 Views
81KB Size
Report
DOWNLOAD .PDF
Recommend Documents
No documents
BÀI 5 : VIEW I Phân cấp thư mục cho View http://abc.com/resources/views/tintuc/themtintuc.php Route::get Route::get('them-tin-tuc',function ('them-tin-tuc',function () { return view view('tintuc ('tintuc. .themtintuc'); });
II View Share View::share View::share('trungtam','Khoa ('trungtam','Khoa Pham Training'); View::share View::share('dongvat' ('dongvat' ,['heo','vit','gà','ngỗ ng']);
III View Composer View::composer('khoapham1', function($view) { $view->with('giangvien','Mr Tuan'); }); View::composer(['khoapham1','khoapham2'], function($view) { $view->with('giangvien','Mr Tuan'); });
IV Kiểm tra sự tồn tại của 1 View Route::get('ton-tai-view',function () { if (view()->exists('quoctuan') ){ return view('quoctuan'); } else {
return "Không Tồ n Tại View"; } });
×
Report "laptrinhlaravel_bai5.pdf"
Your name
Email
Reason
-Select Reason-
Pornographic
Defamatory
Illegal/Unlawful
Spam
Other Terms Of Service Violation
File a copyright complaint
Description
×
Sign In
Email
Password
Remember me
Forgot password?
Sign In
Our partners will collect data and use cookies for ad personalization and measurement.
Learn how we and our ad partner Google, collect and use data
.
Agree & close