Back to Browse

CakePHP 4 - Using the Tree Behavior to create a Bootstrap 5 menu

1.0K views
Dec 8, 2022
1:24:35

Code: https://github.com/toggenation/cakephp4-tree-behavior-menus 00:00 Intro 01:04 php-dotenv 03:10 Create a migration for a table that supports the Tree behavior 06:47 Fixing a php-dotenv error 08:42 Adding a Bootstrap Navbar, JS and CSS 12:54 Overriding the default PaginatorHelper widget templates 20:08 Creating a Database Seeder that works with the Tree Behavior 27:53 Fixing the "No active transactions" error in the MenuSeed 29:00 Displaying the parent / child relationships in index view and select input lists 30:04 Storing the nesting level of a node in a database field 34:20 Implement Tree Behavior methods: moveUp, moveDown, removeFromTree 40:53 Styling the flash alerts with Bootstrap 42:00 Fixing incorrect level values using either recover or by updating descendants 50:30 Making the Menu Tree available to all views 53:52 Disabling DebugKit Panels 56:15 CakePHPizing the sample Bootstrap navbar code 01:15:115 Ordering menu items correctly 01:18:30 Using a custom Helper to provide controller:action CakePHP menus

Download

1 formats

Video Formats

360pmp4156.8 MB

Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.

CakePHP 4 - Using the Tree Behavior to create a Bootstrap 5 menu | NatokHD