[Chameleon] Help on Widget Development...

William Bronsema wbronsema at dmsolutions.ca
Wed Sep 5 11:39:09 EDT 2007


Hi Tim,

FYI - The EOT notation in PHP can be a real "gotcha".  

PHP lets you create block of code as strings by starting with "<<<EOT" and
ending with "EOT;".  The gotcha is the fact that the closing "EOT;" MUST be
on a line by itself with no characters before or after it.

This is what was likely causing your problems.

Cheers,
Bill


William Bronsema
Senior Applications Specialist
DM Solutions Group Inc.

___________________________________
http://www.dmsolutions.ca

-----Original Message-----
From: chameleon-bounces at lists.maptools.org
[mailto:chameleon-bounces at lists.maptools.org] On Behalf Of Nolte, Tim
Sent: Wednesday, September 05, 2007 8:15 AM
To: chameleon at lists.maptools.org
Subject: RE: [Chameleon] Help on Widget Development...

Well, I was well aware that the unexpected end error was generally due
to something missing. But if anyone else looked through the code they
would have found no errors in the PHP code, as I did. What I did find
was an issue with using <<<EOT and just putting the raw HTML code in
there. I ended up needing to put it all in an actual string and escape
the double quotes. I was able also to trim down some extras that I found
I didn't need. Everything is working pretty great now. I'm still pretty
foggy on the whole widget creation process but I think I'm a little bit
closer.

The other thing I'd like to do is to use an native Chameleon button as
my submit button rather than a plain old form submit button. I'm not
quite sure how I do this. Would it be best to use an existing widget
like the UpdateMap widget and extend it for my widget or is there
something else? I want to make use of the Chameleon icons for my button.
Thanks for everyone's help.

----
Timothy J Nolte - tnolte at ilpcs.com
Associate Network Planning Engineer

iPCS Wireless, Inc.
4717 Broadmoor Ave, Suite G
Kentwood, MI 49512

Office: 616-656-5163
PCS:    616-706-2438
Fax:    616-554-6484
Web: www.ipcswirelessinc.com


-----Original Message-----
From: Julien-Samuel Lacroix [mailto:jlacroix at mapgears.com] 
Sent: Tuesday, September 04, 2007 2:03 PM
To: Nolte, Tim
Cc: chameleon at lists.maptools.org
Subject: Re: [Chameleon] Help on Widget Development...

Hi,

This kind of error happens if a curly bracket ('}') is missing or if you

have a comment line that is not commented correctly.

Julien
org/mailman/listinfo/chameleon



More information about the Chameleon mailing list