Currently, im still new to the joomla development. i try step by step to create joomla component.
when i'm in step to create list at back end, i got a problem with pagination. the pagination is displayed well, but not functioning.
when i see the inspection console, this error message is come out when i click on any pagination button.
this is my codeUncaught TypeError: Cannot read property 'limitstart' of undefined (anonymous function)index.php:274 onclick
/admin/com_test/models/activities.php
Code: Select all
<?php
jimport('joomla.application.component.modellist');
class TestModelActivities extends JModelList{
public function getListQuery(){
$query = parent::getListQuery();
$query->select('*')
->from('#__test_activities');
return $query;
}
}
Code: Select all
<?php
jimport('joomla.application.component.view');
class TestViewActivities extends JView{
protected $items;
protected $pagination;
public function display($tpl = null){
$this->items = $this->get('Items');
$this->pagination = $this->get('Pagination');
parent::display($tpl);
}
i still dont get what the problem really is..