tag instead [ [null], '' ], [ [''], '' ], [ ['test'], 'test' ], [ [['one', 'two']], 'onetwo' ], // null columns are not rendered [ [['one', null]], 'one' ], [ [new CCol('test')], 'test' ], [ [[new CCol('one'), new CCol('two')]], 'onetwo' ], [ ['', 'myclass'], '' ], [ ['', null, 'myid'], '' ] ]; } public function createTag($items = null, $class = null, $id = null) { return (new CRow($items)) ->addClass($class) ->setId($id); } }