Help a complete beginner with plugins please

So I’ve literally never used CakePHP before and I have no idea what I’m doing when it comes to stuff like using plugins. What I’m trying to do is install the SB Admin 2 plugin so that I can use the elements in my website’s visual design. I’ve been trying to follow what the cookbook says, but it isn’t working. So far, this is what I’ve done:

Run the command to download the package from packagist:
composer require iron-summit-media/startbootstrap-sb-admin-2
Added the plugin path to the vendor/cakephp-plugins.php file.
Run ‘bin/cake plugin load sbAdmin’ (which is what I named it in cakephp-plugins.php)

I copied the HTML from the index page in the plugin files to a page that I’m using to test if it works, and it isn’t loading the plugin specific div classes. What do I need to do from here to use this correctly? Apologies if this seems under-researched but I’ve been trying for hours.

That package isn’t a CakePHP plugin, it’s simply a composer package. Looking at it’s source code (https://github.com/BlackrockDigital/startbootstrap-sb-admin-2) it seems to have entirely dropped the composer package and should be installed using npm

1 Like

Okay, I have npm installed on my machine. How do I use it specifically for this project? I tried following the steps laid out in the README, but I couldn’t get it to work. I would run npm install in the main project directory, but then I’m unable to run npm start because there’s no start script in that directory. Thanks for your help so far!

You’d need to manually port it to be usable by CakePHP (splitting the elements into elements, creating the layout file etc. etc.) or you need to adapt it so it uses a RESTful API.
You can’t use it “as is” unfortunately.

Oh okay, thanks for the help!