What is the use of state variables in Joomla? and what is the use $model->setState
in this code (code from the Joomla module mod_articles_popular)?
$model = JModelLegacy::getInstance('Articles', 'ContentModel', array('ignore_request' => true));
$app = JFactory::getApplication();
$appParams = $app->getParams();
$model->setState('params', $appParams);
$model->setState('list.start', 0);
source
share