Multilingual from Code

Permalink
The following code show select control but doesn't work when changing selection.

$bt = BlockType::getByHandle('switch_language');
$bt->render('view');


How to use language selection with label?

 
shahroq replied on at Permalink Reply
shahroq
Adding this piece to your code should fix it:
$html = Core::make('helper/html');
$this->addFooterItem($html->javascript('../blocks/switch_language/view.js'));