I don't understand what you mean by "if ... call the function from an other controller it doesn't work..." -- are you accessing the function in your nonworking controller directly from a different controller? If so, you should be using requestAction() instead of calling the method directly.
Anyway, here are some questions to ask yourself to help determine why it isn't working in the other controller: 1a) Have you globally searched your code for "Cookie->key" (i.e. $this- >Cookie->key)? You may have inadvertently set the value for this to null or blank as I indicated in my prior email. 1b) Have you verified that the initialization parameters for the CookieComponent in the nonworking controller (and any controller class(es) it is being extended from, such as the AppController). You may have inadvertently set the value for this to null or blank as I indicated in my prior email. 2) Are both the working and nonworking controllers in the same app? 3) Are both the working and nonworking controllers extending the same controller class (i.e. AppController, or is one extending a plugin app controller)? 4) Are either the working or nonworking controller implementing the beforeFilter() method? Are you calling parent::beforeFilter() within the method? On Mar 14, 3:06 am, Carachi <[email protected]> wrote: > Thank you ShadowCross, > I do some other test and I discover that if I call the function from > URL it works and the Security::cipher() and the Security.salt is set , > but if I call the function from an other controller it doesn't work > and the Security.salt is set but the Security::cipher() is empty and > I don't understand Why... > I think that there is very strange! > > Thank you > Bye > > ________________________http://pcc8.netsons.org > -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cake-php
