[Chameleon] Renameing a modified Widget
Peter Thomann
pameleon at gmx.de
Mon Mar 14 07:50:19 EST 2005
Sorry my fault send the wrong email...
Ok i works right now
I dont know if it was that but first i replaced every Query with MVQuery and
didn't take care of the case of the letters
Thank you Peter
> Peter,
>
> to rename a Widget, you have to do the following:
>
> 1. rename the directory the widget is in
> 2. rename the widget file
> 3. rename the class
> 4. rename the constructor
>
> Optionally, you may have to rename other files and change references to
> them inside the code.
>
> An example: Query.widget.php
>
> chameleon/htdocs/widgets/Query -> chameleon/htdocs/widgets/MyQuery
> Query.widget.php -> MyQuery.widget.php
> class Query extends CWCWidget -> class MyQuery extends CWCWidget
> function Query() -> function MyQuery()
>
> Cheers
>
> Paul
>
> Peter Thomann wrote:
> > Ok my problem is that I have a changed query-widget for a special
> project.
> > Cause I have a server running different maps I don't want the original
> > query-widget to be overwritten by my changed one. I had the Idea to
> rename
> > it and some variables inside but it doesn't work. The changed widget is
> > only changed in the way how to diplay some data. Is there an easy way
> how to
> > rename it?
> > Any suggestion are welcome
> > Thank you Peter
> >
>
--
SMS bei wichtigen e-mails und Ihre Gedanken sind frei ...
Alle Infos zur SMS-Benachrichtigung: http://www.gmx.net/de/go/sms
More information about the Chameleon
mailing list