Re: Cakephp, gearman workers and changing database connection on the fly issue

2012-09-17 Thread Ketan Shah
Sani tariques...@gmail.comwrote: Looks fine... No more ideas - sorry T On Mon, Sep 17, 2012 at 10:18 AM, Ketan Shah ketan.s...@gmail.com wrote: Thanks Tarique, Here you go. http://pastebin.com/ezCBqyGV On Mon, Sep 17, 2012 at 10:10 AM, Dr. Tarique Sani tariques...@gmail.com

Re: Cakephp, gearman workers and changing database connection on the fly issue

2012-09-16 Thread Ketan Shah
Thanks Tarique, Here you go. http://pastebin.com/ezCBqyGV On Mon, Sep 17, 2012 at 10:10 AM, Dr. Tarique Sani tariques...@gmail.comwrote: On Sat, Sep 15, 2012 at 6:46 PM, Ketan Shah ketan.s...@gmail.com wrote: Thats correct. I am sending the db config info in the workload Paste the code

Re: Cakephp, gearman workers and changing database connection on the fly issue

2012-09-15 Thread Ketan Shah
Thats correct. I am sending the db config info in the workload Sent from my iPhone On 15-Sep-2012, at 4:33 PM, Dr. Tarique Sani tariques...@gmail.com wrote: Are you sending which DB to use in the workload and then switching the DB in the worker accordingly? T On Sat, Sep 15, 2012 at

Re: Creating shell tasks in a plugin possible?

2011-06-30 Thread Ketan Shah
Thanks Mark for your reply. To load a model from a plugin we use (plugin_name}.{model_name}. Same should apply for plugins tasks as well. I was trying to use it that way, probably thats why it was not able to find the class. I noticed that your asset compressor task doesnt prepent plugin name.

Re: How to use a helper in Controller or Model?

2009-09-07 Thread Ketan Shah
Using a cakephp helper in the controller isnt permitted in the controller and model and rightly so. As you said helpers are associated with views and thats where it should be used. On Sep 7, 3:14 pm, cogitovn cogit...@gmail.com wrote: Hi all, I'm a newbie in cakePHP. As I know, helper is a

Re: Add dynamic CSS to head from element?

2009-05-08 Thread Ketan Shah
add this ?php echo $scripts_for_layout ;? in your head tag of the layout file. -Ketan. www.propertyjungle.in www.innovatechnologies.in On May 8, 8:56 pm, toby1kenobi toby.math...@gmail.com wrote: Ah, no it doesn't - it does seem strange. On May 8, 2:29 pm, brian bally.z...@gmail.com wrote:

Re: How to show .swf file in view?

2009-01-09 Thread Ketan Shah
You could place the head.swf file in the files folder of the webroot and then use the webroot-path/files/head.swf path in the view. _k10_ On Jan 9, 2:57 pm, Peak kong...@gmail.com wrote: Now, I have a head.swf file but i can't show this file in my view please help!

DbAcl::allow() - Invalid node

2008-12-31 Thread Ketan Shah
Hi, I have an ACO object with alias users/apanel_list and a admin ARO object in the DB. When I issue $this-Acl-allow(admin, users/apanel_list) I get the following error - DbAcl::allow() - Invalid node [CORE\cake\libs\controller\components \acl.php, line 325] The issue seem to be coming from ACO

Re: the Gift of 1.2 Final

2008-12-26 Thread Ketan Shah
bravo! Heartiest congratulations to the cake team. On Dec 26, 5:51 am, Gwoo gwoo.cake...@gmail.com wrote: //Warning: this message is long and full of goodies. History does not happen, it is made. Today, the history of the CakePHP grows stronger. December 25, 2008 will be remembered as one

Wierd routing bug/issue.

2008-12-26 Thread Ketan Shah
I am facing this weird issue. My browser renders a error code 400 - Bad request when I pass a url where the controller name starts with lowercase. When I use uppercase character, it works. Is this a known issue. It happened in RC3, then I upgraded it to the final version 7962. Still the same

Re: Find Topic with highest number of Comments

2008-12-25 Thread Ketan Shah
Dr Lecter, I think we can condense down your code. I am assuming that you have defined the hasMany relations between topic and comments. You could try this. $this-Topic-find('all', 'conditions'=array(), 'limit'=5,

Re: cms in cake php

2008-12-25 Thread Ketan Shah
you might want to read this first. http://book.cakephp.org/ On Dec 24, 10:15 pm, mona poojapinj...@gmail.com wrote: I have to make cms using cakephp and in that cms i have to increment a count every time when new content add in cms for that first i have to make login script can anybody tell

Re: Help needed for inline WISIWYG editor...

2008-11-13 Thread Ketan Shah
http://code.google.com/p/jwysiwyg/ You would need include jquery. Minimalistic editor. -Ketan Aneesh S wrote: Thanks donkeybob, but i still cant get the entered data. This is my code ... ?php echo $form-textarea('Content.content_text',array('cols'=75,'rows'=20,'id'=text234));?

Re: Component or One model

2008-11-09 Thread Ketan Shah
Components are generally used to aid controller logic. I think you should investigate cake's containable behavior to solve the requirement of the model fetching its associated data. cheers, -Ketan. http://www.propertyjungle.in http://www.innovatechnologies.in On Nov 10, 5:27 am, thatsgreat2345

Re: Cake losing sessions randomly

2008-10-13 Thread Ketan Shah
whats your security level? (core.php) On Oct 13, 11:12 pm, mehodgson [EMAIL PROTECTED] wrote: Just to make sure this wasn't the case I switched to database storage of sessions, but I am still having the same issue.  Sometimes it finds a the session data and sometimes it doesn't.  Seems

Re: Migrate Cake Php 1.1 to 1.2

2008-07-21 Thread Ketan Shah
forgot to add this. if you need a script to recursively rename the files please have a look at my blog http://innovatechnologies.blogspot.com/2008/07/blog-post.html -Ketan. On Jul 21, 12:34 pm, Ketan Shah [EMAIL PROTECTED] wrote: One more thing that is not mentioned in the url content

Re: Migrate Cake Php 1.1 to 1.2

2008-07-21 Thread Ketan Shah
One more thing that is not mentioned in the url content is that the template file extension .thtml for views and layout has been changed to .ctp. Regards, -Ketan. http://www.propertyjungle.in On Jul 21, 10:12 am, Daniel Hofstetter [EMAIL PROTECTED] wrote: Hi Jack, I'd like to know the

Re: need help with CakePHP + YUI

2008-07-15 Thread Ketan Shah
well u dont need to use the YUI javascript if you want to use YUI css grids. Both are independant of each other. Just place the yui grid css in the css folder of webroot and link it in your layout file. You can continue using jquery and yui grid. hope it helps. -Ketan

View this page CakePHP In The Wild - Property Jungle.

2008-06-23 Thread Ketan Shah
Hi All, I just launched a real estate search tool, Property Jungle http://www.propertyjungle.in for the India real estate market! It would be great if you could critique it! Thanks, -ketan --~--~-~--~~~---~--~~ You received this message because you are subscribed

Re: Captcha reload problem, works in ff not in IE

2008-06-16 Thread Ketan Shah
Well, My strongest (and I feel the correct) guess is that IE is caching the image. So a refresh request is not happening. You could try the following. 1) Set a 'back-dating' expires header for your captcha image. Also you could ask the browser not the cache by setting the appropriate header! OR