Login +

Documentation

SLS_Generic::getFullPath

Since SillySmart 1.0

Description

Get a full url
public string getFullPath ( string $controller, string $scontroller, [ array $more ] , [ bool $finishUrl ] , [ string $lang ] , [ string $domainAlias ] );

Parameters

  • string $controller
    the controller name
  • string $scontroller
    the scontroller name
  • array $more
    key|value optionnal params
  • bool $finishUrl
    true if u want to append the defaultExtension, else false
  • string $lang
    the lang you want
  • string $domainAlias
    the alias domain

Return

string $url
the full url

Exemples

  •  var_dump($this->_generic->getFullPath("Home","Index"));
     // will produce : "http://doc.sillysmart.org/Home/Welcome.sls"

Comments

No comment on this function, be the first !

Add your comment

You must login/register to post a reply.