Jump to content

Multiple API Keys


Arun Kumaravel

Recommended Posts

Hi i have alter the mycontroller.php as said in docs

 

switch($_SERVER['HTTP_HOST']) {

      case 'domain name':

        $this->Config->{'geomaps.google_key'} = 'googlekey';

      break;     

      case 'second domain name':

        $this->Config->{'geomaps.google_key'} = 'google key';

      break;

      case 'third domain':

        $this->Config->{'geomaps.google_key'} = 'googlekey';

    break;

}

 

But i could not make it work it is working only for the domain in the first case loop am i doing something wrong in coding

Link to comment
×
×
  • Create New...