PHP code example of justinholtweb / craft-puppy
1. Go to this page and download the library: Download justinholtweb/craft-puppy library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
justinholtweb / craft-puppy example snippets
src/
├── Plugin.php # Registers asset bundle and event listeners
├── assetbundles/puppy/PuppyAsset.php # Injects JS and CSS into the CP
├── controllers/SessionController.php # Endpoints: get-trail, record-visit, clear
├── models/TrailItem.php # Data model for trail and edit items
├── services/Trail.php # Session-based trail storage and normalization
└── resources/
├── js/puppy.js # Floating panel, drag, tabs, route parsing
└── css/puppy.css # Panel styles