[beginner] How to install an addon?

I added addon LayoutComponents.
I just did ‘git clone GitHub - agentejo/LayoutComponents: Manage global layout-builder components - Cockpit addon’.

What else do I have to do for the addon to work? :smiley:

I have such an error in the console:

PHP Fatal error: Uncaught Error: Undefined constant “COCKPIT_API_REQUEST” in C:\projekty\praca\cockpit-core\addons\LayoutComponents\bootstrap.php:5

image

I don’t know php and I don’t know how to fix this error. Please help :smiley:

I think that add-on is written for Cockpit v1 and doesn’t work on v2 :(.

oh :disappointed: thanks for the answer