Re: call a controller's action from shell as an authorized user
Finaly I got the answer on irc. class TimedShell extends Shell{ function main(){ App::import('Component','Auth'); $this->Auth = new AuthComponent(null); App::import('Component','Session'); $this->Auth->Session = new SessionComponent(null); ... } -- You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-...@googlegroups.com. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/cake-php?hl=.
call a controller's action from shell as an authorized user
Hari, My service http://sociall.cc sends and receivesmessages from and to more social networks like twitter, facebook, etc. I would like to add a timed messages service where users could set messages to send in a future time. For this I need to have my own cake shell and run it by a crontask. At a certain point I want to call $this->requestAction('/messages/send'); But messages controller's send action is available if there is an authenticated user. So before I call this somehow the shell should authenticated itself as a user. Than it could send the message, and the shell could reauthenticate itself as a different user and send messages belongs to that user. The question is how could I authenticate the shell as a particular user? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: find('count',...) returns false
I can not do it as this happens only at the production enviroment and queries are started by an ajax call. So somehow I have to satch de error messages without displaying them. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: find('count',...) returns false
It should be written down in the cookbook and in the api. If so is tehre any way to get the sql error message? I need to know what caused the query error. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: find('count',...) returns false
Intercept->find('count', array( 'conditions' => array('there_id' => $uniqueId) )); ?> This is the code. I change nothing in the database table, and sometimes $isSaved wil be 1 (integer) and sometimes boolean false. I changed if(!$isSaved) to if($isSaved === 0) but it took me 5 hours to figure out what is wrong. It seems to me as a CakePHP bug. As I understand find count always should return an integer. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
find('count',...) returns false
I have a find('count',...) check in my application. It seems sometimes it returns a boolean false even when there is 1 row in the table what meets the conditions. Sometimes happens this and sometimes it returns 1. Any ide why? Is there a bug? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: install other app under cake
The answer is here: http://groups.google.com/group/cake-php/browse_thread/thread/a3b4b82eefeb9d8a --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
install other app under cake
Hari, I have a cake project on http://sociall.cc I want to install a wordpress blog to http://sociall.cc/blog. Where should I upload wordpress files? It seems if I just upload them to / blog near to /app It will not work. should I put the files to /app/ webroot/blog ? rrd --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: login attempts limit and auth
The interesting thing is the manual says login function will not be used if auth autoredirect is not false. http://book.cakephp.org/view/248/AuthComponent-Variables#autoRedirect-395 But it seems with default autoredirect the login function works. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
login attempts limit and auth
Hari, I use auth component to do the login. I want to limit login attempts like for 3 attempts. Where should I put my code? UserController login ()? beforeFilter? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
auth login & sanitize
Hari, It looks auth component does not use sanitize for cleaning the given username. Password is hashed so it should not be a problem, but as I see username is used as it is. Is it right? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
ACL model.id and alias from console
Hari, Is there any way to create an ACL node by the console which has model.id AND alias property also? I may do it by sql but I can not figure out how to do it with the cake console. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
autocomplete default value
It would be nice to have more options for $ajax->autocomplete's input box, like setting default value, etc. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: What do you develop in (ide, text editor, etc.)?
I am using Komodo Edit. Platform independent, support core php and cakephp methods, etc. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
bake script localization
I am using localized controller method names. It would be nice if the core backe script could be localized. By this we could get localized baked controller method names, view files and links in view files. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---