[Catalyst] n00b question
Eric W. Bates
ericx at vineyard.net
Wed Jun 14 00:47:47 CEST 2006
Building my first catalyst app and I'm getting what must be an obvious
error. I have created the first controller; but when I try to access
/plants/add, I get what must be a fundamental error:
Couldn't forward to "HG". Does not implement "HG::Controller::Plants"
The package HG::Controller::Plants exists. It is defined in the file
HG/lib/HG/Controller/Plants.pm. The server seems to find the files when
it is starting up:
** root at hg ** /usr/local/www/HG ** Tue Jun 13 18:44:04
# ./script/hg_server.pl -p 80
[Tue Jun 13 18:44:37 2006] [catalyst] [debug] Debug messages enabled
[Tue Jun 13 18:44:37 2006] [catalyst] [debug] Loaded plugins:
.------------------------------------------------------------------------------.
| Catalyst::Plugin::ConfigLoader 0.03
|
| Catalyst::Plugin::Static::Simple 0.13
|
'------------------------------------------------------------------------------'
[Tue Jun 13 18:44:37 2006] [catalyst] [debug] Loaded dispatcher
"Catalyst::Dispatcher"
[Tue Jun 13 18:44:37 2006] [catalyst] [debug] Loaded engine
"Catalyst::Engine::HTTP"
[Tue Jun 13 18:44:37 2006] [catalyst] [debug] Found home "/usr/local/www/HG"
[Tue Jun 13 18:44:39 2006] [catalyst] [debug] Loaded components:
.-------------------------------------------------------------------+----------.
| Class |
Type |
+-------------------------------------------------------------------+----------+
| HG::Controller::Plants |
instance |
| HG::Model::Schema |
instance |
| HG::Model::Schema::Award_Names |
class |
| HG::Model::Schema::Awards |
class |
| HG::Model::Schema::Plants |
class |
| HG::View::TT |
instance |
'-------------------------------------------------------------------+----------'
[Tue Jun 13 18:44:39 2006] [catalyst] [debug] Loaded Private actions:
.----------------------+----------------------------------------+--------------.
| Private | Class | Method
|
+----------------------+----------------------------------------+--------------+
| /default | HG |
default |
| /end | HG | end
|
| /plants/add | HG::Controller::Plants | add
|
| /plants/default | HG::Controller::Plants |
default |
'----------------------+----------------------------------------+--------------'
[Tue Jun 13 18:44:39 2006] [catalyst] [debug] Loaded Path actions:
.--------------------------------------+---------------------------------------.
| Path | Private
|
+--------------------------------------+---------------------------------------+
| /plants/add | /plants/add
|
'--------------------------------------+---------------------------------------'
[Tue Jun 13 18:44:39 2006] [catalyst] [info] HG powered by Catalyst 5.64
You can connect to your server at http://hg.horshamgardens.com
thanks for your time.
--
Eric W. Bates
More information about the Catalyst
mailing list