Started work on backend with self-written models

This commit is contained in:
2019-04-15 15:40:10 +02:00
parent 5c93c0b74c
commit 9c407e750f
7 changed files with 399 additions and 1 deletions

View File

@@ -6,6 +6,8 @@ use Joomla\CMS\Factory;
// No direct access.
defined('_JEXEC') or die;
JLoader::discover('Clubs', JPATH_ROOT . '/administrator/components/com_clubs/mymodels');
$controller = BaseController::getInstance("Clubs");
$input = Factory::getApplication()->input;

View File

@@ -10,7 +10,7 @@ defined('_JEXEC') or die;
class ClubsViewClub extends HtmlView
{
public function display(string $tpl = null)
public function display($tpl = null)
{
// FIXME Insert code from DB
$this->clubid = 43;