Siteacces

Author Message

Carlos Revillo

Monday 12 June 2006 6:00:10 am

Hi. I'm working with a multilingual site now. I've developed an extension and i need to know from wich siteaccess i'm "calling" the php script i wrote.

is there any way to know that?.

I mean, i have my module.php file, with something like
$ViewList ['a']=array('script'=>'a.php');

In my a.php file i want to know wich siteaccess i am now.

Sorry for my english. Thanks.

Ɓukasz Serwatka

Monday 12 June 2006 6:20:59 am

You can read current siteaccess name from:

$GLOBALS['eZCurrentAccess']['name']

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog