Re: [Catalyst] auto method never triggered
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 the line altogether in > the > Admin.pm. > > > > -- > Peter Karman . http://peknet.com/ . pe...@peknet.com > > ___ > List: Catalyst@lists.scsys.co.uk > Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst > Searchable archive: > http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ > Dev site: http://dev.catalyst.perl.org/ > ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/
Re: [Catalyst] auto method never triggered
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.com ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/
Re: [Catalyst] auto method never triggered
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 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__->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 different controllers will have unpredictable consequences. ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/ ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/ ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/
Re: [Catalyst] auto method never triggered
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. ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/
Re: [Catalyst] auto method never triggered
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__->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 different controllers will have > unpredictable consequences. > > > ___ > List: Catalyst@lists.scsys.co.uk > Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst > Searchable archive: > http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ > Dev site: http://dev.catalyst.perl.org/ > ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/
Re: [Catalyst] auto method never triggered
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 different controllers will have unpredictable consequences. ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/