I seem to be going round in circles unable to understand how I create an action object so I can pass it to detach as the IRC has told me to pass in an action and not what I thought which was 'controller_name, subroutine'.
E.G.
$c->detach('my_controller_name','index');
But it seems that this signature is ('class_name', 'subroutine')
I'm having a problem with Catalyst randomly deciding when it is OK to have a controller and a model called the same, as I have in the same root auto subroutine ,
$c->detach('splashscreen','index').
Where I have both a controller called 'SplashScreen' and a model called 'SplashScreen', and the detach works fine.
However, for another controller / model pair called 'ComplianceUpdates',
This doesn't work
$c->detach('complianceupdates','index').
and errors with...
Couldn't forward to "ComplianceUpdates". Does not implement "process"
Couldn't detach to command "complianceupdates": Invalid action or component.
So If I am to use
$c->detach($action);
How do I create a Catalyst::Action object.
What attributes am I meant to be setting in the object before I pass it in, and where are the docs for this as I can't find them.
All help is appreciated.
Craig Chant
Information Technology Manager
[Description: Description: HLP_IT_Sig1]
Direct Line: 01903 227 753 Main Line: 01903 602 664 Website: www.homeloanpartnership.com<http://www.homeloanpartnership.com>
[Description: Description: HLP_Sig2_variant]
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.
E.G.
$c->detach('my_controller_name','index');
But it seems that this signature is ('class_name', 'subroutine')
I'm having a problem with Catalyst randomly deciding when it is OK to have a controller and a model called the same, as I have in the same root auto subroutine ,
$c->detach('splashscreen','index').
Where I have both a controller called 'SplashScreen' and a model called 'SplashScreen', and the detach works fine.
However, for another controller / model pair called 'ComplianceUpdates',
This doesn't work
$c->detach('complianceupdates','index').
and errors with...
Couldn't forward to "ComplianceUpdates". Does not implement "process"
Couldn't detach to command "complianceupdates": Invalid action or component.
So If I am to use
$c->detach($action);
How do I create a Catalyst::Action object.
What attributes am I meant to be setting in the object before I pass it in, and where are the docs for this as I can't find them.
All help is appreciated.
Craig Chant
Information Technology Manager
[Description: Description: HLP_IT_Sig1]
Direct Line: 01903 227 753 Main Line: 01903 602 664 Website: www.homeloanpartnership.com<http://www.homeloanpartnership.com>
[Description: Description: HLP_Sig2_variant]
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.