Login +

Documentation

SLS_Generic::switchLang

Since SillySmart 1.0

Description

Switch the current application language and reload the current page
public switchLang ( string $lang, [ string $controller ] , [ string $scontroller ] );

Parameters

  • string $lang
    the lang to switch
  • string $controller
    the generic controller to reroute after changing lang (if empty, previous controller)
  • string $scontroller
    the generic scontroller to reroute after changing lang (if empty, previous action)

Return

No return.

Exemples

  •  $this->_generic->switchLang("fr");
     // will change your current language to 'french'

Comments

No comment on this function, be the first !

Add your comment

You must login/register to post a reply.