From: TheIdeaMan <ide...@gm...> - 2004-10-14 12:19:32
|
I'm testing Ismo out, and I like what I've seen so far. I recently received an "Internal Server Error" page that had the not " Set the ISMO_CORE_DEBUG variable to 1 if you want more detailed error reporting." I tried using the setConfiguration method on the application object, but was unsuccessful in figuring that out. Any and all help would be appreciated. |
From: Joakim A. <ja...@mo...> - 2004-10-14 13:22:54
|
Hi, On 14.10.2004 14:19 TheIdeaMan wrote: > I'm testing Ismo out, and I like what I've seen so far. I recently > received an "Internal Server Error" page that had the not " Set the > ISMO_CORE_DEBUG variable to 1 if you want more detailed error > reporting." I tried using the setConfiguration method on the > application object, but was unsuccessful in figuring that out. just put define('ISMO_CORE_DEBUG', 1); in the php file where you create your application. Regards, Joakim -- Joakim Andersson ; ja...@mo... ; http://morrdusk.net |
From: TheIdeaMan <ide...@gm...> - 2004-10-14 16:03:02
|
Thanks, Joakim. How does setConfiguration() work then? (no rush on this; I know you're busy) Thanks again. On Thu, 14 Oct 2004 15:22:03 +0200, Joakim Andersson <ja...@mo...> wrote: > Hi, > > On 14.10.2004 14:19 TheIdeaMan wrote: > > I'm testing Ismo out, and I like what I've seen so far. I recently > > received an "Internal Server Error" page that had the not " Set the > > ISMO_CORE_DEBUG variable to 1 if you want more detailed error > > reporting." I tried using the setConfiguration method on the > > application object, but was unsuccessful in figuring that out. > > just put > > define('ISMO_CORE_DEBUG', 1); > > in the php file where you create your application. > > Regards, > Joakim > > -- > Joakim Andersson ; ja...@mo... ; http://morrdusk.net > > ------------------------------------------------------- > This SF.net email is sponsored by: IT Product Guide on ITManagersJournal > Use IT products in your business? Tell us what you think of them. Give us > Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more > http://productguide.itmanagersjournal.com/guidepromo.tmpl > _______________________________________________ > Ismo-users mailing list > Ism...@li... > https://lists.sourceforge.net/lists/listinfo/ismo-users > |
From: Joakim A. <ja...@mo...> - 2004-10-14 22:33:00
|
Hi, On 14.10.2004 18:02 TheIdeaMan wrote: > How does setConfiguration() work then? (no rush on this; I know you're busy) what you give as a parameter to the setConfiguration() call will be give to a method named the same (i.e. setConfiguration()) in the state class. So you could for example have something like this: in your app.php file: <?php // ... $config_array = parse_ini_file('config.ini'); $app->setConfiguration($config_array); // ... ?> and then in your state classes you could do something like class State1 extends Ismo_Core_State_HTTP { function setConfiguration(&$config) { $this->_config =& $config; } function execDefault() { echo $_config['setting1']; } function execBar() { echo $_config['setting2']; } } The object given to the setConfiguration() method in the application context can be anything, any kind of object, just as long as the state classes using it knows what it is. Note that one has to override the setConfiguration() method in the state class to do something with the passed on configuration object, e.g. store it in a class variable or something like that. That could probably be added as a default in the future to make things even more simple. Regards, Joakim -- Joakim Andersson ; ja...@mo... ; http://morrdusk.net |
From: TheIdeaMan <ide...@gm...> - 2004-10-14 23:09:10
|
Makes since. I like the idea of adding that as a default. I'm going to add some info about this to the wiki. I looked there first and maybe it will help others. Thanks for the info, Joakim. On Fri, 15 Oct 2004 00:32:17 +0200, Joakim Andersson <ja...@mo...> wrote: > Hi, > > On 14.10.2004 18:02 TheIdeaMan wrote: > > How does setConfiguration() work then? (no rush on this; I know you're busy) > > what you give as a parameter to the setConfiguration() call will be give > to a method named the same (i.e. setConfiguration()) in the state class. > So you could for example have something like this: > > in your app.php file: > > <?php > > // ... > > $config_array = parse_ini_file('config.ini'); > $app->setConfiguration($config_array); > > // ... > ?> > > and then in your state classes you could do something like > > class State1 extends Ismo_Core_State_HTTP > { > function setConfiguration(&$config) > { > $this->_config =& $config; > } > > function execDefault() > { > echo $_config['setting1']; > } > > function execBar() > { > echo $_config['setting2']; > } > } > > The object given to the setConfiguration() method in the application > context can be anything, any kind of object, just as long as the state > classes using it knows what it is. > > Note that one has to override the setConfiguration() method in the state > class to do something with the passed on configuration object, e.g. > store it in a class variable or something like that. That could probably > be added as a default in the future to make things even more simple. > > > > Regards, > Joakim > > -- > Joakim Andersson ; ja...@mo... ; http://morrdusk.net > > ------------------------------------------------------- > This SF.net email is sponsored by: IT Product Guide on ITManagersJournal > Use IT products in your business? Tell us what you think of them. Give us > Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more > http://productguide.itmanagersjournal.com/guidepromo.tmpl > _______________________________________________ > Ismo-users mailing list > Ism...@li... > https://lists.sourceforge.net/lists/listinfo/ismo-users > |
From: Stefan S. <ste...@gm...> - 2004-10-16 10:00:27
|
Hi All, Wiki is a very good idea, but what about the nearly empty forum? The Mails of the last days would have made a pretty good thread ;-). This is just thought not a critic and it is meant totally friendly ;-) Greetings Stefan Am Freitag 15 Oktober 2004 01:09 schrieb TheIdeaMan: > Makes since. I like the idea of adding that as a default. > > I'm going to add some info about this to the wiki. I looked there > first and maybe it will help others. > > Thanks for the info, Joakim. > > On Fri, 15 Oct 2004 00:32:17 +0200, Joakim Andersson <ja...@mo...> wrote: > > Hi, > > > > On 14.10.2004 18:02 TheIdeaMan wrote: > > > How does setConfiguration() work then? (no rush on this; I know you're > > > busy) > > > > what you give as a parameter to the setConfiguration() call will be give > > to a method named the same (i.e. setConfiguration()) in the state class. > > So you could for example have something like this: > > > > in your app.php file: > > > > <?php > > > > // ... > > > > $config_array = parse_ini_file('config.ini'); > > $app->setConfiguration($config_array); > > > > // ... > > ?> > > > > and then in your state classes you could do something like > > > > class State1 extends Ismo_Core_State_HTTP > > { > > function setConfiguration(&$config) > > { > > $this->_config =& $config; > > } > > > > function execDefault() > > { > > echo $_config['setting1']; > > } > > > > function execBar() > > { > > echo $_config['setting2']; > > } > > } > > > > The object given to the setConfiguration() method in the application > > context can be anything, any kind of object, just as long as the state > > classes using it knows what it is. > > > > Note that one has to override the setConfiguration() method in the state > > class to do something with the passed on configuration object, e.g. > > store it in a class variable or something like that. That could probably > > be added as a default in the future to make things even more simple. > > > > > > > > Regards, > > Joakim > > > > -- > > Joakim Andersson ; ja...@mo... ; http://morrdusk.net > > > > ------------------------------------------------------- > > This SF.net email is sponsored by: IT Product Guide on ITManagersJournal > > Use IT products in your business? Tell us what you think of them. Give us > > Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out > > more http://productguide.itmanagersjournal.com/guidepromo.tmpl > > _______________________________________________ > > Ismo-users mailing list > > Ism...@li... > > https://lists.sourceforge.net/lists/listinfo/ismo-users > > ------------------------------------------------------- > This SF.net email is sponsored by: IT Product Guide on ITManagersJournal > Use IT products in your business? Tell us what you think of them. Give us > Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more > http://productguide.itmanagersjournal.com/guidepromo.tmpl > _______________________________________________ > Ismo-users mailing list > Ism...@li... > https://lists.sourceforge.net/lists/listinfo/ismo-users |
From: TheIdeaMan <ide...@gm...> - 2004-10-16 13:04:50
|
Stefan, I agree. The forum would probably be better because of its "archiving" so new users can read old threads. I didn't post much there because it was so empty. Maybe that was self defeating. :) I'll post there from now on. Joakim? Should we focus our questions there? Thanks, Stefan. On Sat, 16 Oct 2004 12:01:02 +0200, Stefan Schwierz <ste...@gm...> wrote: > Hi All, > > Wiki is a very good idea, but what about the nearly empty forum? The Mails of > the last days would have made a pretty good thread ;-). > > This is just thought not a critic and it is meant totally friendly ;-) > > Greetings Stefan > > Am Freitag 15 Oktober 2004 01:09 schrieb TheIdeaMan: > > > > Makes since. I like the idea of adding that as a default. > > > > I'm going to add some info about this to the wiki. I looked there > > first and maybe it will help others. > > > > Thanks for the info, Joakim. > > > > On Fri, 15 Oct 2004 00:32:17 +0200, Joakim Andersson <ja...@mo...> > wrote: > > > Hi, > > > > > > On 14.10.2004 18:02 TheIdeaMan wrote: > > > > How does setConfiguration() work then? (no rush on this; I know you're > > > > busy) > > > > > > what you give as a parameter to the setConfiguration() call will be give > > > to a method named the same (i.e. setConfiguration()) in the state class. > > > So you could for example have something like this: > > > > > > in your app.php file: > > > > > > <?php > > > > > > // ... > > > > > > $config_array = parse_ini_file('config.ini'); > > > $app->setConfiguration($config_array); > > > > > > // ... > > > ?> > > > > > > and then in your state classes you could do something like > > > > > > class State1 extends Ismo_Core_State_HTTP > > > { > > > function setConfiguration(&$config) > > > { > > > $this->_config =& $config; > > > } > > > > > > function execDefault() > > > { > > > echo $_config['setting1']; > > > } > > > > > > function execBar() > > > { > > > echo $_config['setting2']; > > > } > > > } > > > > > > The object given to the setConfiguration() method in the application > > > context can be anything, any kind of object, just as long as the state > > > classes using it knows what it is. > > > > > > Note that one has to override the setConfiguration() method in the state > > > class to do something with the passed on configuration object, e.g. > > > store it in a class variable or something like that. That could probably > > > be added as a default in the future to make things even more simple. > > > > > > > > > > > > Regards, > > > Joakim > > > > > > -- > > > Joakim Andersson ; ja...@mo... ; http://morrdusk.net > > > > > > ------------------------------------------------------- > > > This SF.net email is sponsored by: IT Product Guide on ITManagersJournal > > > Use IT products in your business? Tell us what you think of them. Give us > > > Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out > > > more http://productguide.itmanagersjournal.com/guidepromo.tmpl > > > _______________________________________________ > > > Ismo-users mailing list > > > Ism...@li... > > > https://lists.sourceforge.net/lists/listinfo/ismo-users > > > > ------------------------------------------------------- > > This SF.net email is sponsored by: IT Product Guide on ITManagersJournal > > Use IT products in your business? Tell us what you think of them. Give us > > Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more > > http://productguide.itmanagersjournal.com/guidepromo.tmpl > > _______________________________________________ > > Ismo-users mailing list > > Ism...@li... > > https://lists.sourceforge.net/lists/listinfo/ismo-users > > > ------------------------------------------------------- > > > This SF.net email is sponsored by: IT Product Guide on ITManagersJournal > Use IT products in your business? Tell us what you think of them. Give us > Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more > http://productguide.itmanagersjournal.com/guidepromo.tmpl > _______________________________________________ > Ismo-users mailing list > Ism...@li... > https://lists.sourceforge.net/lists/listinfo/ismo-users > |
From: Joakim A. <ja...@mo...> - 2004-10-18 21:51:24
|
On 16.10.2004 15:04 TheIdeaMan wrote: > I agree. The forum would probably be better because of its "archiving" > so new users can read old threads. > > I didn't post much there because it was so empty. Maybe that was self > defeating. :) > > I'll post there from now on. > > Joakim? Should we focus our questions there? maybe we should do that... Earlier I didn't really like forums that much but I've got used to them so for me it doesn't really matter. -- Joakim Andersson ; ja...@mo... ; http://morrdusk.net |