Yii
8
Вклад в тег
return {
template: '<ng-include src="getTemplateUrl()"/>',
scope: {
message: '=mainMessage',
typeMessage: '=typeMessage'
},
restrict: 'A',
controller: function($scope) {
$scope.getTemplateUrl = function() {
return 'template/common/' + $scope.typeMessage + "-message.tpl.html";
}
},
link: function(scope, element, attrs) {
}
}
public static function CategoryMenu() { }
$item['items']= [
'label'=>$category['title'],
'url'=>['/site/category', 'id' => $category['id']]
];
<ul>
<?php foreach( $availableLangs as $lang ) {
echo '<li>';
echo $lang;
echo '</li>';
}; ?>
</ul>