Login +

Documentation

SLS_Generic::getTranslatedController

Since SillySmart 1.0

Description

Return the controller and the scontroller translated into the wanted language
public $array getTranslatedController ( string $controller, string $scontroller, [ string{2}[optionnal] $lang ] );

Parameters

  • string $controller
  • string $scontroller
  • string{2}[optionnal] $lang

Return

$array $controller
array('controller'] => '..', 'scontroller' => '..', 'protocol' => '..')

Exemples

  •  var_dump($this->_generic->getTranslatedController("Home","Index"));
     // will produce :
     array(
     "protocol"=> "http",
     "controller"=> "Home",
     "scontroller"=> "Welcome"
     )

Comments

No comment on this function, be the first !

Add your comment

You must login/register to post a reply.