FAQ
... and I can't figure out why.

code:

<snip>
package Engoi::Controller::Root;

use strict;
use warnings;
use base 'Catalyst::Controller';

__PACKAGE__->config->{namespace} = '';


sub default : Private {
my ( $self, $c ) = @_;
$c->response->redirect('/public/home');
}

sub auto : Private {

# do stuff

}

1;
</snip>

debug output is this:

[Mon Apr 24 20:35:01 2006] [catalyst] [debug] Loaded Private actions:
.----------------------+----------------------------------------+--------------.
Private | Class |
Method |
+----------------------+----------------------------------------+--------------+
/end | Engoi |
end |
/public/menu | Engoi::Controller::Public |
menu |
/public/default | Engoi::Controller::Public |
default |
/public/index | Engoi::Controller::Public |
index |
/public/error | Engoi::Controller::Public |
error |
/public/home | Engoi::Controller::Public |
home |
/root/auto | Engoi::Controller::Root |
auto |
/root/default | Engoi::Controller::Root |
default |
'----------------------+----------------------------------------+--------------'

[Mon Apr 24 20:35:01 2006] [catalyst] [debug] Loaded Path actions:
.--------------------------------------+---------------------------------------.
Path |
Private |
+--------------------------------------+---------------------------------------+
/public/error |
/public/error |
/public/home |
/public/home |
/public/index |
/public/index |
/public/menu |
/public/menu |
'--------------------------------------+---------------------------------------'

[Mon Apr 24 20:35:01 2006] [catalyst] [info] engoi powered by Catalyst 5.65
You can connect to your server at http://roomatthetop:3000
[Mon Apr 24 20:39:02 2006] [catalyst] [debug]
**********************************
[Mon Apr 24 20:39:02 2006] [catalyst] [debug] * Request 1 (0.004/s) [29528]
[Mon Apr 24 20:39:02 2006] [catalyst] [debug]
**********************************
[Mon Apr 24 20:39:02 2006] [catalyst] [debug] Found sessionid
"f6998b6311af2d118d013219bf1547970ba506e0" in cookie
[Mon Apr 24 20:39:02 2006] [catalyst] [debug] "GET" request for "" from "
127.0.0.1"
[Mon Apr 24 20:39:02 2006] [catalyst] [debug] Arguments are ""
[Mon Apr 24 20:39:02 2006] [catalyst] [error] No default action defined
[Mon Apr 24 20:39:02 2006] [catalyst] [error] No default action defined
[Mon Apr 24 20:39:02 2006] [catalyst] [debug] Restored session
"f6998b6311af2d118d013219bf1547970ba506e0"
[Mon Apr 24 20:39:03 2006] [catalyst] [info] Request took 0.508799s (1.965
/s)


any ideas? (I bet it's something blindingly silly ... )

thanks

Daniel



--
Daniel McBrearty
email : danielmcbrearty at gmail.com
www.engoi.com : the multi - language vocab trainer
BTW : 0873928131
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.rawmode.org/pipermail/catalyst/attachments/20060424/10287a55/attachment.htm

Search Discussions

  • Sebastian Riedel at Apr 24, 2006 at 7:11 pm

    24.04.2006 20:44 Daniel McBrearty:
    sub auto : Private {

    # do stuff

    }
    auto has to return a true value.


    --
    sebastian
  • Matt S Trout at Apr 24, 2006 at 7:29 pm

    Daniel McBrearty wrote:
    ... and I can't figure out why.

    [Mon Apr 24 20:35:01 2006] [catalyst] [info] engoi powered by Catalyst 5.65

    any ideas? (I bet it's something blindingly silly ... )
    Indeed it is. Look at the Catalyst version number :)

    --
    Matt S Trout Offering custom development, consultancy and support
    Technical Director contracts for Catalyst, DBIx::Class and BAST. Contact
    Shadowcat Systems Ltd. mst (at) shadowcatsystems.co.uk for more information

    + Help us build a better perl ORM: http://dbix-class.shadowcatsystems.co.uk/ +
  • Daniel McBrearty at Apr 24, 2006 at 7:56 pm
    *ting* (sound of penny dropping, slowly, as I realise that my home m/c has
    cat 5.55, my laptop 5.66 ... ahhhh ...)

    (heads for kettle ...)

    On 4/24/06, Matt S Trout wrote:

    Daniel McBrearty wrote:
    ... and I can't figure out why.

    [Mon Apr 24 20:35:01 2006] [catalyst] [info] engoi powered by Catalyst 5.65
    any ideas? (I bet it's something blindingly silly ... )
    Indeed it is. Look at the Catalyst version number :)

    --
    Matt S Trout Offering custom development, consultancy and
    support
    Technical Director contracts for Catalyst, DBIx::Class and BAST.
    Contact
    Shadowcat Systems Ltd. mst (at) shadowcatsystems.co.uk for more
    information

    + Help us build a better perl ORM:
    http://dbix-class.shadowcatsystems.co.uk/ +

    _______________________________________________
    Catalyst mailing list
    Catalyst at lists.rawmode.org
    http://lists.rawmode.org/mailman/listinfo/catalyst


    --
    Daniel McBrearty
    email : danielmcbrearty at gmail.com
    www.engoi.com : the multi - language vocab trainer
    BTW : 0873928131
    -------------- next part --------------
    An HTML attachment was scrubbed...
    URL: http://lists.rawmode.org/pipermail/catalyst/attachments/20060424/a932e03a/attachment.htm

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupcatalyst @
categoriescatalyst, perl
postedApr 24, '06 at 6:44p
activeApr 24, '06 at 7:56p
posts4
users3
websitecatalystframework.org
irc#catalyst

People

Translate

site design / logo © 2022 Grokbase