Я дико извиняюсь, но как-то у меня не срослось

Переписал основной контроллер:
<?php
defined('_JEXEC') or die;
jimport('joomla.application.component.controller');
class CartStoreController extends JControllerLegacy
{
public function display($cachable = false, $urlparams = false)
{
// Get the document object.
$document = JFactory::getDocument();
$jinput = JFactory::getApplication()->input;
// Set the default view name and format from the Request.
$vName = $jinput->getCmd('view', 'cartstore');
$vFormat = $document->getType();
$lName = $jinput->getCmd('layout', 'default');
if ($view = $this->getView($vName, $vFormat))
{
// Do any specific processing by view.
switch ($vName)
{
case 'changecart':
// The user is a guest, load the registration model and show the registration page.
$model = $this->getModel('ChangeCart', 'CartStoreModel');
break;
// Handle view specific models.
case 'unship':
$model = $this->getModel('Unship', 'CartStoreModel');
break;
default:
$model = $this->getModel('CartStore', 'CartStoreModel');
break;
}
// Push the model into the view (as default).
$view->setModel($model, true);
$view->setLayout($lName);
// Push document object into the view.
$view->document = $document;
$view->display();
}
}
}
Но в нужном виде все равно получаю ересь, типа (это дамп переменной, которая идет из модели)
array(5) {
[0]=>
object(stdClass)#271 (4) {
["id"]=>
string(1) "4"
["home"]=>
string(1) "0"
["template"]=>
string(5) "beez3"
["params"]=>
string(208) "{"wrapperSmall":"53","wrapperLarge":"72","logo":"images\/joomla_black.gif","sitetitle":"Joomla!","sitedescription":"Open Source Content Management","navposition":"left","templatecolor":"personal","html5":"0"}"
}
[1]=>
object(stdClass)#270 (4) {
["id"]=>
string(1) "5"
["home"]=>
string(1) "1"
["template"]=>
string(7) "rsmetro"
["params"]=>
string(112) "{"logoFile":"images\/logo.png","sitetitle":"","sitedescription":"","googleFont":"1","googleFontName":"Segoe UI"}"
}
[2]=>
object(stdClass)#269 (4) {
["id"]=>
string(1) "7"
["home"]=>
string(1) "0"
["template"]=>
string(9) "protostar"
["params"]=>
string(101) "{"templateColor":"","logoFile":"","googleFont":"1","googleFontName":"Open+Sans","fluidContainer":"0"}"
}
[3]=>
object(stdClass)#268 (4) {
["id"]=>
string(1) "9"
["home"]=>
string(1) "0"
["template"]=>
string(5) "beez3"
["params"]=>
string(208) "{"wrapperSmall":"53","wrapperLarge":"72","logo":"images\/joomla_black.gif","sitetitle":"Joomla!","sitedescription":"Open Source Content Management","navposition":"left","templatecolor":"personal","html5":"0"}"
}
[4]=>
object(stdClass)#266 (4) {
["id"]=>
string(2) "10"
["home"]=>
string(1) "0"
["template"]=>
string(10) "beez3_copy"
["params"]=>
string(209) "{"wrapperSmall":53,"wrapperLarge":72,"logo":"images\/logo.png","sitetitle":"","sitedescription":"","navposition":"center","bootstrap":"","templatecolor":"personal","headerImage":"","backgroundcolor":"#eeeeee"}"
}
}
Если сделать дамп $view, то модель, вроде как, нужная прописывается:
["_defaultModel":protected]=>
string(6) "unship"
Где я накосячил?