SproutCMS

This is the code documentation for the SproutCMS project

source of /modules/Demo/admin_load.php

  1. <?php
  2. /*
  3.  * Copyright (C) 2017 Karmabunny Pty Ltd.
  4.  *
  5.  * This file is a part of SproutCMS.
  6.  *
  7.  * SproutCMS is free software: you can redistribute it and/or modify it under the terms
  8.  * of the GNU General Public License as published by the Free Software Foundation, either
  9.  * version 2 of the License, or (at your option) any later version.
  10.  *
  11.  * For more information, visit <http://getsproutcms.com>.
  12.  */
  13.  
  14. use Sprout\Helpers\Register;
  15.  
  16.  
  17. Register::adminControllers('Karmabunny\Demo', [
  18. 'demo_item' => 'Admin\DemoItemAdminController',
  19. 'demo_item_category' => 'Admin\DemoItemCategoryAdminController',
  20. 'word' => 'Admin\WordAdminController',
  21. 'word_category' => 'Admin\WordCategoryAdminController',
  22. ]);
  23.  
  24. Register::adminTile(
  25. 'Demo items',
  26. 'live_help',
  27. 'Just some test items',
  28. [
  29. 'demo_item' => 'Demo items',
  30. 'word' => 'Words',
  31. ]
  32. );
  33.