Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>See below URL</p> <p><a href="https://stackoverflow.com/questions/9171227/cakephp-disable-security-component-site-wide">CakePHP: Disable Security Component site wide</a></p> <p><a href="https://stackoverflow.com/questions/6670900/disabling-input-elements-in-a-cakephp-form-that-uses-security-component-and-jque">Disabling input elements in a CakePHP form that uses Security component and jQuery</a></p> <p><a href="http://life.mysiteonline.org/archives/175-Disable-the-Security-Component-in-CakePHP-only-for-Certain-Actions.html" rel="nofollow noreferrer">http://life.mysiteonline.org/archives/175-Disable-the-Security-Component-in-CakePHP-only-for-Certain-Actions.html</a></p> <p><a href="http://book.cakephp.org/2.0/en/core-libraries/components/security-component.html" rel="nofollow noreferrer">http://book.cakephp.org/2.0/en/core-libraries/components/security-component.html</a></p> <p><a href="http://api.cakephp.org/class/security-component" rel="nofollow noreferrer">http://api.cakephp.org/class/security-component</a></p> <p><strong>Or try it:-</strong></p> <p>Even if you disable it in your app_controller your individual controller may have that security enabled.As my wild guess says this is what you want to do.If not let me know more about it</p> <pre><code>function beforeFilter(){ parent::beforeFilter(); if(isset($this-&gt;Security) &amp;&amp; $this-&gt;RequestHandler-&gt;isAjax() &amp;&amp; $this-&gt;action = 'add'){ $this-&gt;Security-&gt;enabled = false; } } </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload