ATK4.3 Installation and Addons

72 views
Skip to first unread message

Willem Rheeder

unread,
Aug 27, 2014, 9:34:22 AM8/27/14
to agile-too...@googlegroups.com
Hi,

is there a complete tutorial somewhere of how to start a project in ATK4.3?  

I also would like to know how to get my addons working in 4.3.  Is it comulsory to use Packagist?  I have installed a package using packagist but still cant add it in /frontend/libFrontend.php

Is there documentation available how to move a project from 4.2.5 to 4.3?

Regards,
Willem

Romans Malinovskis

unread,
Aug 28, 2014, 10:12:05 AM8/28/14
to agile-too...@googlegroups.com

Both 4.2 and 4.3 branches should be compatible with composer, so if you install anything extra through comoposer, it should just work. Try some well-known packagist modules to make sure it works.

In agile toolkit 4.3, you can place add-on inside shared/addons/.. and they will work fine. You'll need to use a namespace. Try this code:


$this->add('blahblah/Test');

and then see error output. Agile Toolkit will only look inside it's "add-on" folders (as per PathFinder), but it will also ask composer to look for this class. If none of them can find it, you see standard ATK error (because composer's error is really useless).


To make an add-on you don't need anything, just a namespace and a folder. You can later add "initialiser" to your add-on, which can then tell App_Admin a little bit more about your add-on and would allow users to simply "activate" your add-on.

Here is the current documentation on add-ons:


but some parts of that needs to be cleaned up.


Automated installation of Add-ons through UI will be my focus after the 4.3.0 is officially released.


Regards,
Romans
Reply all
Reply to author
Forward
0 new messages