[Catalyst] Can't detach from root / create action object

Hartmaier Alexander alexander.hartmaier at t-systems.at
Thu Nov 28 11:05:54 GMT 2013


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 'ControllerC=
lass/Method'

So for the URL path in my case would be '/complianceupdates/' , but for det=
ach 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:garrison at 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 <craig at homeloanpartnership.com><m=
ailto:craig at 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 /li=
st.


Charlie

--
    ? Charlie Garrison ? <garrison at zeta.org.au><mailto:garrison at 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 at lists.scsys.co.uk<mailto:Catalyst at 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 inte=
nded solely for the individual to whom it is addressed. If this Email has b=
een misdirected, please notify the author as soon as possible. If you are n=
ot the intended recipient you must not disclose, distribute, copy, print or=
 rely on any of the information contained, and all copies must be deleted i=
mmediately. 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 vi=
ruses 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 H=
omeLoan 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. Registe=
red office: Pharos House, 67 High Street, Worthing, West Sussex, BN11 1DN. =
H L Partnership Limited is authorised and regulated by the Financial Conduc=
t Authority.




_______________________________________________
List: Catalyst at lists.scsys.co.uk<mailto:Catalyst at 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 pr=
ivileged.
If you are not the intended recipient, please notify the sender and then
delete this e-mail immediately.
*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*=
"*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.scsys.co.uk/pipermail/catalyst/attachments/20131128/39576=
dd5/attachment.htm


More information about the Catalyst mailing list