tailieunhanh - Tương tác giữa PHP và jQuery - part 24
CHAPTER 6 ■ PASSWORD PROTECTION SENSITIVE ACTIONS AND AREAS include_once 'assets/common/'; ? Now save this code and try to directly access http://localhost/ while logged out. As expected, you’ll be redirected to http://localhost/ instead. Summary In this chapter, you learned how to add user authorization to your calendar app, which means only authorized users can now make modifications to the calendar. You learned how to create the Admin class, check login credentials, display admin tools to admins only, and limit access to admin pages. In the next chapter, you’ll start integrating jQuery into the application to progressively enhance the user experience. 231 P A R T ■■■ 3 Combining. | CHAPTER 6 PASSWORD PROTECTION SENSITIVE ACTIONS AND AREAS include_once assets common Now save this code and try to directly access http localhost while logged out. As expected you ll be redirected to http localhost instead. Summary In this chapter you learned how to add user authorization to your calendar app which means only authorized users can now make modifications to the calendar. You learned how to create the Admin class check login credentials display admin tools to admins only and limit access to admin pages. In the next chapter you ll start integrating jQuery into the application to progressively enhance the user experience. 231 P A R T 3 Combining jQuery with PHP Applications With the calendar running properly you can now enhance the application with jQuery to improve the user experience. In the following chapters you ll create a layer of JavaScript that will sit on top of your app to add AJAX .
đang nạp các trang xem trước