Hello:
I've set up Maypole::Plugin::Component like this:
use Maypole::Application qw(-Debug Config::YAML Authentication::Abstract
Component -Setup);
And am trying to use it within a template:
[% request.component("/ntable/list/?arg=12345"); %]
but instead of the expected output I end up getting the following error:
caught view error:
Can't call method "document_root" on an undefined value at
/www/trunk/lib/Apache/MVC.pm line 57, <GEN4> line 14.
Can't call method "document_root" on an undefined value at
/www/trunk/lib/Apache/MVC.pm line 57, <GEN4> line 14.
...caught at /www/trunk/lib/Maypole/View/Base.pm line 74, <GEN4> line 14.
Any thoughts or suggestions as to how I might fix this would be greatly appreciated.
I've overloaded &MyApp::parse_path if it helps at all. ntable gets mapped to an
actual table name and $self->{table} set appropriately.
Thank you in advance,
Matt
-- Matt Adams <matt.adams at morcor.com> Development Specialist Morcor Solutions Inc. <http://www.morcor.com/> (613) 354-2912 x228GnuPG public key at <http://staff.morcor.com/~madams/> Key fingerprint: BED5 B4F7 CCF5 D7B5 7C56 0505 9A0A A0FB C937 5975
_______________________________________________ maypole mailing list maypole at lists.netthink.co.uk http://lists.netthink.co.uk/listinfo/maypole
This archive was generated by hypermail 2.1.3 : Thu Feb 24 2005 - 22:25:57 GMT