On 2013-11-28 10:43, Craig Chant wrote:

Hi Charlie,

So it is a URI for a method name in the controller class object you wish to 
execute.

So rather than matching it as a Path URL, it matches it a as a 
'ControllerClass/Method'

So for the URL path in my case would be '/complianceupdates/' , but for detach 
it is '/complianceupdates/index'

As index is the name of the method that handles the '/' path.

Got it! Many thanks,

The advantage or all this is that you change change your url layout without 
touching the code at all.



Craig.

-----Original Message-----
From: Charlie Garrison [mailto:garri...@zeta.org.au]
Sent: 27 November 2013 22:47
To: The elegant MVC web framework
Subject: RE: [Catalyst] Can't detach from root / create action object

Good morning,

On 27/11/13 at 2:51 PM -0000, Craig Chant 
<cr...@homeloanpartnership.com><mailto:cr...@homeloanpartnership.com> wrote:



Or are there two single argument signatures to detach() one takes an
Action object and one takes a URL path string?



Being pedantic here, but it doesn't accept a URL path; it accepts an action 
path. Often they are the same, but they don't need to be.

# in Root Controller
sub my_list :Path('list') { ... }

You would pass /my_list to detach, but the URL for that action would be /list.


Charlie

--
    ? Charlie Garrison ? <garri...@zeta.org.au><mailto:garri...@zeta.org.au>

O< ascii ribbon campaign - stop html mail - 
www.asciiribbon.org<http://www.asciiribbon.org>
?  http://www.ietf.org/rfc/rfc1855.txt


_______________________________________________
List: Catalyst@lists.scsys.co.uk<mailto: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/
This Email and any attachments contain confidential information and is intended 
solely for the individual to whom it is addressed. If this Email has been 
misdirected, please notify the author as soon as possible. If you are not the 
intended recipient you must not disclose, distribute, copy, print or rely on 
any of the information contained, and all copies must be deleted immediately. 
Whilst we take reasonable steps to try to identify any software viruses, any 
attachments to this e-mail may nevertheless contain viruses, which our 
anti-virus software has failed to identify. You should therefore carry out your 
own anti-virus checks before opening any documents. HomeLoan Partnership will 
not accept any liability for damage caused by computer viruses emanating from 
any attachment or other document supplied with this e-mail. HomeLoan 
Partnership reserves the right to monitor and archive all e-mail communications 
through its network. No representative or employee of HomeLoan Partnership has
the authority to enter into any contract on behalf of HomeLoan Partnership by 
email. HomeLoan Partnership is a trading name of H L Partnership Limited, 
registered in England and Wales with Registration Number 5011722. Registered 
office: Pharos House, 67 High Street, Worthing, West Sussex, BN11 1DN. H L 
Partnership Limited is authorised and regulated by the Financial Conduct 
Authority.




_______________________________________________
List: Catalyst@lists.scsys.co.uk<mailto: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/




*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*
T-Systems Austria GesmbH Rennweg 97-99, 1030 Wien
Handelsgericht Wien, FN 79340b
*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*
Notice: This e-mail contains information that is confidential and may be 
privileged.
If you are not the intended recipient, please notify the sender and then
delete this e-mail immediately.
*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*
_______________________________________________
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/

Reply via email to