Застопорился на уроке из Оф. доков Joomla. Developing a Model-View-Controller (MVC) Component for Joomla!1.6 - Part 07 Собственно не могу сообразить почему в Виде: Код (PHP): <?php // No direct access to this file defined('_JEXEC') or die('Restricted access'); // import Joomla view library jimport('joomla.application.component.view'); /** * HelloWorlds View */ class HelloWorldViewHelloWorlds extends JView { /** * HelloWorlds view display method * @return void */ function display($tpl = null) { // Get data from the model $items = $this->get('Items'); $pagination = $this->get('Pagination'); // Check for errors. if (count($errors = $this->get('Errors'))) { JError::raiseError(500, implode('<br />', $errors)); return false; } // Assign data to the view $this->items = $items; $this->pagination = $pagination; // Display the template parent::display($tpl); } } вот здесь Код (PHP): $items = $this->get('Items'); идет обращение к методу модели getItems, но вызывается почему то getListQuery. Код (PHP): <?php // No direct access to this file defined('_JEXEC') or die('Restricted access'); // import the Joomla modellist library jimport('joomla.application.component.modellist'); /** * HelloWorldList Model */ class HelloWorldModelHelloWorlds extends JModelList { /** * Method to build an SQL query to load the list data. * * @return string An SQL query */ protected function getListQuery() { // Create a new query object. $db = JFactory::getDBO(); $query = $db->getQuery(true); // Select some fields $query->select('id,title'); // From the hello table $query->from('#__content'); return $query; } }