@martin: I am having problems with security and a white screen. I
suspect it's a field using TinyMCE which is causing my token to fail,
and I am aware of how to specify a blackHoleCallback method, but what
should I be placing in my echo debug(); to see security's errors?
I don't want to
My problem was not TinyMCE it was down to a field I had set as
disabled=true ... it needed added to security's disabledFields
attributes to allow the form to submit.
Would still like to know if there is a way to get Security to tell you
which field it is that's caused it to blackhole a request
Hi
I use Security component and I have a view like this:
?php e($form-create(NULL, array( 'url' = '/test/'))); ?
div
?php echo $form-input('testValue',array('name'='data[testValue]',
'id'='testValue','label' = 'strongTest Value/strong:','options'
= $testValues)); ?
/div
div class=unit lastUnit
How do you know if this is a security component issue as the form is
not being submitted to a Controller/Action to be processed?!?
What should happen if the form submits to the url /test/?
--~--~-~--~~~---~--~~
You received this message because you are subscribed
On 10 Set, 11:16, WebbedIT p...@webbedit.co.uk wrote:
How do you know if this is a security component issue as the form is
not being submitted to a Controller/Action to be processed?!?
Because if I don't use the Security component the form is correctly
submit.
What should happen if the
A clean white page suggests an error that can't be shown because you
have set the debug level to 0.
Try setting it to 1 or 2 and see if the 'white page' now outputs an
error message.
On Thu, Sep 10, 2009 at 11:32 AM, byqsri marco.rizze...@gmail.com wrote:
On 10 Set, 11:16, WebbedIT
I try to set the debug mode to 1 and to 2 but there is no errors
On 10 Set, 11:37, Bert Van den Brande cyr...@gmail.com wrote:
A clean white page suggests an error that can't be shown because you
have set the debug level to 0.
Try setting it to 1 or 2 and see if the 'white page' now outputs
What's the url of the page with the form, and what's the url of the white page ?
Maybe inspect traffic with the FireFox plugin Tamper Data to detect
what's going on ...
On Thu, Sep 10, 2009 at 11:46 AM, byqsri marco.rizze...@gmail.com wrote:
I try to set the debug mode to 1 and to 2 but there
The url is the same.
With FireFox plugin Tamper Data I get status header Not Found - 404
On 10 Set, 12:14, Bert Van den Brande cyr...@gmail.com wrote:
What's the url of the page with the form, and what's the url of the white
page ?
Maybe inspect traffic with the FireFox plugin Tamper Data
I don't think is affects your problem but in the code you posted the
html would be invalid. The form and /form should be at the same
hierarchical leven in the html but you have the end inside a div.
A 404 is what you would get is SecurityComponent decided to kick you
in the behind. It is called
Add this to your controllers beforeFilter:
$this-Security-disabledFields = array('testValue');
http://www.milesj.me/blog/read/43/Protecting-Your-Forms-With-The-Security-Component
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the
11 matches
Mail list logo