Thank you, it works fine now.
On Sun, Nov 1, 2009 at 6:18 PM, Peter Karman wrote:
> Julien Sobrier wrote on 11/1/09 8:07 PM:
> > Thank you
> >
> > Shoudl It put __PACKAGE__->config->{namespace} = ''root;, or simply
> > remove this line?
> >
>
> You should leave it as-is in the Root.pm and remove
Julien Sobrier wrote on 11/1/09 8:07 PM:
> Thank you
>
> Shoudl It put __PACKAGE__->config->{namespace} = ''root;, or simply
> remove this line?
>
You should leave it as-is in the Root.pm and remove the line altogether in the
Admin.pm.
--
Peter Karman . http://peknet.com/ . pe...@peknet.
On 02/11/2009, at 1:07 PM, Julien Sobrier wrote:
Thank you
Shoudl It put __PACKAGE__->config->{namespace} = ''root;, or simply
remove
this line?
Thank you
Julien
If you want Root to hit at '/' on your app you remove it from the
Admin controller, which will then hit at '/admin'
On Sunday 01 November 2009 08:07:32 pm Julien Sobrier wrote:
> Thank you
>
> Shoudl It put __PACKAGE__->config->{namespace} = ''root;, or simply remove
> this line?
>
You should leave it how it is in the root controller, and remove it in the
admin controller.
___
Thank you
Shoudl It put __PACKAGE__->config->{namespace} = ''root;, or simply remove
this line?
Thank you
Julien
On Sun, Nov 1, 2009 at 1:29 AM, Kieren Diment wrote:
>
> On 01/11/2009, at 3:36 PM, Julien Sobrier wrote:
>
> BTW, both Root.pm and Admin.pm have this line:
>>
>> __PACKAGE__->co
On 01/11/2009, at 3:36 PM, Julien Sobrier wrote:
BTW, both Root.pm and Admin.pm have this line:
__PACKAGE__->config->{namespace} = '';
Not sure if it makes a difference.
Yes it does. This line stops the Root controller matching /root in
the public namespace. Having this in two differen
BTW, both Root.pm and Admin.pm have this line:
__PACKAGE__->config->{namespace} = '';
Not sure if it makes a difference.
Julien
On Sat, Oct 31, 2009 at 10:00 AM, Julien Sobrier wrote:
> After adding an action, and return 1; in each auto and begin, it looks
> better:
>
> [info] *** Request 2 (
After adding an action, and return 1; in each auto and begin, it looks
better:
[info] *** Request 2 (0.000/s) [9579] [Sat Oct 31 09:58:48 2009] ***
[debug] "GET" request for "/" from "192.168.1.100"
[debug] Path is "/"
[debug] Found sessionid "e1262ec64fecc849f31af4e61fbb38cb66a414e9" in cookie
[d
On 31 Oct 2009, at 05:10, Julien Sobrier wrote:
Whether I access / or /admin, I don't see any log from any of the
auto functions, but I do see it from the begin fuctions. I am
wondering what I am missing.
Unsure.
Can you attach the debug log of your application startup and the
debug l
On Fri, Oct 30, 2009 at 10:10 PM, Julien Sobrier wrote:
>
>
>
>
> Whether I access / or /admin, I don't see any log from any of the auto
> functions, but I do see it from the begin fuctions. I am wondering what I am
> missing.
>
> Looks ok, although I would explicitly return true in your auto
Hello,
I was trying to use auto and begin in 2 Controllers, Root.pm and Admin.pm:
package MyApp::Controller::Root;
sub begin :Private {
my ($self, $c) = @_;
$c->log->debug('root begin');
}
sub auto :Private {
my ($self, $c) = @_;
$c->log->debug('root auto');
}
[...]
package M
11 matches
Mail list logo