FAQ
Hi,

How can I access one controller from other?

I have 2 controllers called Myapp::Controller::User and
Myapp::Controller::Admin

In Myapp::Controller::User I have following method.

sub user_list :Path Args:(0) {
some function to display all the users.
}

Myapp::Controller::Admin has following method

sub users :Path Args(0) {
Here I want to display all users by calling Myapp::Controller::User
$c->controller('Myapp::Controller::User')->user_list is not working
}

any suggestion?

Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.scsys.co.uk/pipermail/catalyst/attachments/20101204/5e3f5561/attachment.htm

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupcatalyst @
categoriescatalyst, perl
postedDec 4, '10 at 3:00p
activeDec 5, '10 at 1:23p
posts5
users2
websitecatalystframework.org
irc#catalyst

2 users in discussion

Linuxsupport: 3 posts David Schmidt: 2 posts

People

Translate

site design / logo © 2022 Grokbase