versione stabile
This commit is contained in:
@ -12,6 +12,7 @@ namespace Pcrt\Component\Circolari\Administrator\Controller;
|
|||||||
\defined('_JEXEC') or die;
|
\defined('_JEXEC') or die;
|
||||||
|
|
||||||
use Joomla\CMS\MVC\Controller\FormController;
|
use Joomla\CMS\MVC\Controller\FormController;
|
||||||
|
use Joomla\CMS\MVC\Factory\MVCFactoryInterface;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Circolare controller class.
|
* Circolare controller class.
|
||||||
@ -21,10 +22,12 @@ use Joomla\CMS\MVC\Controller\FormController;
|
|||||||
class CircolareController extends FormController
|
class CircolareController extends FormController
|
||||||
{
|
{
|
||||||
protected $view_list = 'circolares';
|
protected $view_list = 'circolares';
|
||||||
|
protected $view_item = 'circolare';
|
||||||
|
|
||||||
public function __construct($config = array())
|
|
||||||
|
public function __construct($config = array(), MVCFactoryInterface $factory = null, $app = null, $input = null)
|
||||||
{
|
{
|
||||||
parent::__construct($config);
|
parent::__construct($config, $factory, $app, $input);
|
||||||
$this->registerTask('apply', 'save');
|
$this->registerTask('apply', 'save');
|
||||||
$this->registerTask('save2new', 'save');
|
$this->registerTask('save2new', 'save');
|
||||||
}
|
}
|
||||||
|
|||||||
@ -29,7 +29,7 @@ class DisplayController extends BaseController
|
|||||||
* @var string
|
* @var string
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
protected $default_view = 'circolari';
|
protected $default_view = 'circolares';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Method to display a view.
|
* Method to display a view.
|
||||||
|
|||||||
@ -64,7 +64,7 @@ class CategoriaModel extends AdminModel
|
|||||||
*
|
*
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
public function getTable($type = 'Categoria', $prefix = 'Administrator', $config = array())
|
public function getTable($type = 'Categoria', $prefix = 'Table', $config = array())
|
||||||
{
|
{
|
||||||
return parent::getTable($type, $prefix, $config);
|
return parent::getTable($type, $prefix, $config);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -66,7 +66,7 @@ class CircolareModel extends AdminModel
|
|||||||
*
|
*
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
public function getTable($type = 'Circolare', $prefix = 'Administrator', $config = array())
|
public function getTable($type = 'Circolare', $prefix = 'Table', $config = array())
|
||||||
{
|
{
|
||||||
return parent::getTable($type, $prefix, $config);
|
return parent::getTable($type, $prefix, $config);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -64,7 +64,7 @@ class FirmatipoModel extends AdminModel
|
|||||||
*
|
*
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
public function getTable($type = 'Firmatipo', $prefix = 'Administrator', $config = array())
|
public function getTable($type = 'Firmatipo', $prefix = 'Table', $config = array())
|
||||||
{
|
{
|
||||||
return parent::getTable($type, $prefix, $config);
|
return parent::getTable($type, $prefix, $config);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user