From: Boris Z. <bz...@2b...> - 2004-06-01 09:05:48
|
Hi Bill, Am Freitag 28 Mai 2004 20:51 schrieb Bill Karwin: > Thanks Boris, as usual you have helped me greatly! I used your > suggestion of using Dumper, and I discovered that the call to > $model->config wasn't returning a config object at all, and in fact the > config function in Model.pm wasn't being called. > > It turns out that I had created a page called "config" and a page > handler function for it! Because of the inheritence from the > Apache::PageKit::Model package, my handler replaced the config > subroutine in Model.pm, and of course my function doesn't returning the > model's config object. I changed my page to "appconfig" and now it works. The method $model->config is undocumented and a poor choiced name. The idea was to equip the user with a relaible way to get the config object. Does anyone complain loudly if I rename ->config to ->pkit_config in the next release? -- Boris |