Blog Tutorial – Authentication and Authorization
Page Contents Blog Tutorial – Authentication and Authorization Creating All User-Related Code Authentication (Login and Logout) Authorization (who’s allowed to access what) Suggested Follow-up Reading Blog Tutorial – Authentication and Authorization Following our Blog Tutorial example, imagine we wanted to secure access to certain URLs, based on the logged-in user. We also have another requirement: […]
Blog Tutorial – Part 3
Page Contents Blog Tutorial – Part 3 Create a Tree Category Migrations Plugin Modifying the Tables Generate Skeleton Code for Categories Attach TreeBehavior to CategoriesTable Reordering Categories with TreeBehavior Modifying the ArticlesController Modifying the Articles Templates Blog Tutorial – Part 3 Create a Tree Category Let’s continue our blog application and imagine we want to […]
Blog Tutorial – Part 2
Page Contents Blog Tutorial – Part 2 Create an Article Model Create the Articles Controller Creating Article Views Adding Articles Data Validation Editing Articles Deleting Articles Routes Conclusion Suggested Follow-up Reading Blog Tutorial – Part 2 Create an Article Model Models are the bread and butter of CakePHP applications. By creating a CakePHP model that […]
CakePHP 3.10 Blog Tutorial
Page Contents Blog Tutorial Getting CakePHP Directory Permissions on tmp and logs Creating the Blog Database Database Configuration Optional Configuration A Note on mod_rewrite Blog Tutorial This tutorial will walk you through the creation of a simple blog application. We’ll be installing CakePHP, creating a database, and creating enough application logic to list, add, edit, […]
Bookmarker Tutorial Part 2
Page Contents Bookmarker Tutorial Part 2 Adding Login Adding Logout Enabling Registrations Restricting Bookmark Access Fixing List view and Forms List View Improving the Tagging Experience Adding a Computed Field Updating the Views Persisting the Tag String Wrapping Up Bookmarker Tutorial Part 2 After finishing the first part of this tutorial you should have a […]
CakePHP 3.10 Bookmarker Tutorial
Page Contents Bookmarker Tutorial Getting CakePHP Checking our Installation Creating the Database Database Configuration Generating Scaffold Code Adding Password Hashing Getting Bookmarks with a Specific Tag Creating the Finder Method Creating the View Bookmarker Tutorial This tutorial will walk you through the creation of a simple bookmarking application (bookmarker). To start with, we’ll be installing […]
CMS Tutorial – Authentication
Page Contents CMS Tutorial – Authentication Adding Password Hashing Adding Login Adding Logout Enabling Registrations Restricting Article Access Fixing the Add & Edit Actions Wrapping Up CMS Tutorial – Authentication Now that our CMS has users, we should enable them to login, and apply some basic access control to the article creation & editing experiences. […]
CMS Tutorial – Tags and Users
Page Contents CMS Tutorial – Tags and Users Adding Tagging to Articles Updating Articles to Enable Tagging Finding Articles By Tags Creating the Finder Method Creating the View Improving the Tagging Experience Adding a Computed Field Updating the Views Persisting the Tag String Auto-populating the Tag String CMS Tutorial – Tags and Users With the […]
CMS Tutorial – Creating the Articles Controller
Page Contents CMS Tutorial – Creating the Articles Controller Create the Article List Template Create the View Action Create the View Template Adding Articles Create Add Template Adding Simple Slug Generation Add Edit Action Create Edit Template Update Validation Rules for Articles Add Delete Action CMS Tutorial – Creating the Articles Controller With our model […]
CMS Tutorial – Creating the Database
Page Contents CMS Tutorial – Creating the Database Database Configuration Creating our First Model CMS Tutorial – Creating the Database Now that we have CakePHP installed, let’s set up the database for our CMS application. If you haven’t already done so, create an empty database for use in this tutorial, with a name of your […]