Home
Add Document
Sign In
Register
laptrinhlaravel_bai4
Home
laptrinhlaravel_bai4
Lập trình laravel 4...
Author:
Ho Khoa
42 downloads
174 Views
97KB Size
Report
DOWNLOAD .PDF
Recommend Documents
No documents
BÀI 4 : ROUTE I Truyền giá trị cho View Route::get Route::get('thong-tin',function ('thong-tin',function () { $hoten = 'Vũ Quố c Tuấn'; return view view('khoapham' ('khoapham',compact('hoten') ,compact('hoten')); ); });
II Gọi controller trong Route Route::get Route::get('the-gioi',' ('the-gioi','WelcomeController WelcomeController@ @thegioi thegioi'); '); Controller
Action Function
III Tạo định danh cho route Route::get Route::get('quoc-te', ('quoc-te',[ ['as' => 'qt',function 'qt' ,function () {
return 'Đây là trang tin quốc tế'; }]);
IV Tạo nhóm route Route::group(['prefix' => 'quan-ly'],function () { Route::get('tin-tuc',function () {
echo "Đây là trang quản lý tin tứ c"; }); Route::get('thanh-vien',function () {
echo "Đây là trang quan lý thành viên"; }); });
×
Report "laptrinhlaravel_bai4"
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