View Single Post
  #5  
Old 07-24-2014, 05:12 AM
 
Dewiar Dewiar is offline
 

Newbie
  
Join Date: Jan 2012
Posts: 3
 

Default Re: X-Cart 5: Target and View.

Yes it's XC5.
I already have @ListChild directive. Maybe there is another issue. Take a look at my View please:
Quote:
<?php
// vim: set ts=4 sw=4 sts=4 et:
namespace XLite\Module\Bob\Bbb\View;

/**
* Bbb widget for Bbb target.
* @ListChild (list="center", zone="customer")
*/
class Bbb extends \XLite\View\AView
{
public static function getAllowedTargets() {
return array_merge( parent::getAllowedTargets(), array ( 'bbb' ) );
}

protected function getDefaultTemplate() {
return 'modules/Bob/Bbb/ccc/body.tpl';
}
}
__________________
LC 1.0.14
Reply With Quote