Re: call a controller's action from shell as an authorized user

2009-11-10 Thread rrd...@gmail.com
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 subs

call a controller's action from shell as an authorized user

2009-11-07 Thread rrd...@gmail.com
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. A

Re: find('count',...) returns false

2009-10-12 Thread rrd
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

Re: find('count',...) returns false

2009-10-11 Thread rrd
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" gro

Re: find('count',...) returns false

2009-10-10 Thread rrd
Intercept->find('count', array( 'conditions' => array('there_id' => $uniqueId) )); ?> This is the code. I chan

find('count',...) returns false

2009-10-09 Thread rrd...@gmail.com
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? --~--~-~--~~~---~--~~

Re: install other app under cake

2009-10-08 Thread rrd
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@googleg

install other app under cake

2009-10-08 Thread rrd...@gmail.com
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

Re: login attempts limit and auth

2009-09-27 Thread rrd
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. --~--~-~--~~~---~--~--

login attempts limit and auth

2009-09-26 Thread rrd...@gmail.com
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 "Cake

auth login & sanitize

2009-06-10 Thread rrd...@gmail.com
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 t

ACL model.id and alias from console

2009-05-21 Thread rrd...@gmail.com
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

autocomplete default value

2009-03-13 Thread rrd...@gmail.com
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-ph

Re: What do you develop in (ide, text editor, etc.)?

2009-03-02 Thread rrd
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

bake script localization

2009-03-02 Thread rrd...@gmail.com
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