[Cartoweb-users] Regarding creating configuration (.ini) files
oliver
oliver.christen at camptocamp.com
Tue Feb 7 05:26:44 EST 2006
try renaming serverDhis.php to ServerDhis.php
----- Original Message -----
From: VenuGopal Papasani
To: oliver
Sent: Tuesday, February 07, 2006 10:57 AM
Subject: Re: [Cartoweb-users] Regarding creating configuration (.ini) files
Hi Oliver,
I have made a configuration file with .ini extension and inside the file i have given the following
venu=true;
I have placed that ini file in projectname/server_conf/projectname/
Now I have opened my plugin (gopal) in the constructor of the file plugins\dhis\server\serverDhis.php i have written the following code i.e
if ($this->getconfig()->venu)
{
print("hello");
}
now i was getting the following errors
Class : CartocommonExceptionMessage : Error [8, Undefined property: SoapFault::$faultcode, c:\wamp\www\cartoweb3\client\CartoserverService.php, 40]
Backtrace:
file: 40 - c:\wamp\www\cartoweb3\client\CartoserverService.php
call: Common->cartowebErrorHandler(8, "Undefined property: SoapFault::$faultcode", "c:\wamp\www\cartoweb3\client\CartoserverService.php", 40, Array(1))
file: 105 - c:\wamp\www\cartoweb3\client\CartoserverService.php
call: SoapFaultWrapper->__construct(Object(SoapFault))
file: 156 - c:\wamp\www\cartoweb3\client\CartoserverService.php
call: CartoserverService->callDirect("getMapInfo", "zanzibar.zanzibar")
file: 215 - c:\wamp\www\cartoweb3\client\CartoserverService.php
call: CartoserverService->callFunction("getMapInfo", "zanzibar.zanzibar")
file: 60 - c:\wamp\www\cartoweb3\client\ClientMapInfoCache.php
call: CartoserverService->getMapInfo("zanzibar.zanzibar")
file: 99 - c:\wamp\www\cartoweb3\common\MapInfoCache.php
call: ClientMapInfoCache->computeMapInfo()
file: 92 - c:\wamp\www\cartoweb3\client\ClientMapInfoCache.php
call: MapInfoCache->cacheMapInfo()
file: 764 - c:\wamp\www\cartoweb3\client\Cartoclient.php
call: ClientMapInfoCache->checkMapInfoTimestamp(1138947430)
file: 876 - c:\wamp\www\cartoweb3\client\Cartoclient.php
call: Cartoclient->getMapResultFromRequest(Object(MapRequest))
file: 1011 - c:\wamp\www\cartoweb3\client\Cartoclient.php
call: Cartoclient->doMain()
file: 38 - c:\wamp\www\cartoweb3\htdocs\client.php
call: Cartoclient->main()
file: 3 - c:\wamp\www\cartoweb3\htdocs\zanzibar.php
call: require_once("c:\wamp\www\cartoweb3\htdocs\client.php")
Why i was getting these errors can u please suggest me what changes i have to make.
Regards,
venu.
On 2/7/06, oliver <oliver.christen at camptocamp.com> wrote:
Hi Venu,
simply create a .ini file with the same name as your plugin and put inside a variable and its value(s), like that: varname = varvalue[, varvalue2, varvalue3, ...]
to get the ini value from your plugin, use: $this->getConfig()->varname
regards,
Oliver
----- Original Message -----
From: VenuGopal Papasani
To: cartoweb-users at lists.maptools.org
Sent: Tuesday, February 07, 2006 5:16 AM
Subject: [Cartoweb-users] Regarding creating configuration (.ini) files
Hi all,
I have created a plugin.I want to write a configuration file for that.What are the things to be placed in the configuration file.It would be helpful for me any of u send me a plugin and the corresponding configuration file as an example so that i can have a overview of that.
Thanks in advance,
Thanks and Regards,
Venu
--------------------------------------------------------------------------
_______________________________________________
Cartoweb-users mailing list
Cartoweb-users at lists.maptools.org
http://lists.maptools.org/mailman/listinfo/cartoweb-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.maptools.org/pipermail/cartoweb-users/attachments/20060207/fd741637/attachment-0001.html
More information about the Cartoweb-users
mailing list