Re: requestAction issue

2007-05-25 Thread AD7six
On May 23, 4:41 pm, Repsah [EMAIL PROTECTED] wrote: Yes, I was thinking as well about using a component but I wanted to make sure this was the wisest choice. I'll need a whole lot of them ;) Maybe useful http://www.noswad.me.uk/MiBlog/MiniControllers hth, AD

requestAction issue

2007-05-23 Thread Repsah
I'm using cake 1.1.4, dealing with a requestAction problem. In one of my controllers I need to apply some logic which clearly belongs to another controller, to do this, I used a requestAction. The abuse of this feature quickly brings a significant drop in performances. In my opinoin, moving the

RE: requestAction issue

2007-05-23 Thread Mariano Iglesias
Enviado el: MiƩrcoles, 23 de Mayo de 2007 10:14 a.m. Para: cake-php@googlegroups.com Asunto: requestAction issue In a situation like mine, what would be the best way to access another controller's logic? Is there somewhere you can point me

Re: requestAction issue

2007-05-23 Thread Repsah
-php@googlegroups.com *Asunto:* requestAction issue In a situation like mine, what would be the best way to access another controller's logic? Is there somewhere you can point me to? --~--~-~--~~~---~--~~ You received this message because you are subscribed

Re: requestAction issue when using a plugin

2007-01-31 Thread Doug
On Jan 31, 12:59 am, Dr. Tarique Sani [EMAIL PROTECTED] There was a bug in v1.1 which prevented more than one requestAction calls on the same page to the same plugin and it was fixed - search the Trac for it, I had reported and submitted a patch - perhaps it is a similar issue raising its

Re: requestAction issue when using a plugin

2007-01-31 Thread Dr. Tarique Sani
On 1/31/07, Doug [EMAIL PROTECTED] wrote: I downloaded the nightly build ( 1.2.x.x_30.01.2007.zip ), which I think is the newest I can get. And it looks different from your diff. Yes, presume it would be different from the diff (the diff is not for 1.2) but the problem appears to be similar

Re: requestAction issue when using a plugin

2007-01-31 Thread Doug
On Jan 31, 2:20 am, Dr. Tarique Sani [EMAIL PROTECTED] wrote: Go ahead hack the CakePHP core to make it work - create a patch and post a ticket in the Trac with your patch attached - someone from the dev team will apply the patch or suggest alternatives. Thanks for your advice. I opened a

requestAction issue when using a plugin

2007-01-30 Thread Doug
I am using Cake 1.1.12.4205 calling a plugins action: /catalog/search/General/ /plugin(controller same name)/action/parameter All works fine. I add the following line to my default layout: ?php echo $this-requestAction(Menu/display/main_menu, array( return=true ) ); ? Where the Menu

Re: requestAction issue when using a plugin

2007-01-30 Thread Dr. Tarique Sani
On 1/31/07, Doug [EMAIL PROTECTED] wrote: ?php echo $this-requestAction(Menu/display/main_menu, array( return=true ) ); ? ?php echo $this-requestAction(Menu/display/main_menu, array( return=true ) ); ? There was a bug in v1.1 which prevented more than one requestAction calls on the same page

requestAction issue

2006-11-05 Thread Ismael S. Kafeltz
Hello all, i would like to know if there is a way to make requestAction() only accept call from inside? I use requestAction to fill select tag with option element from ajax, but it is possible to look in the source code and discovery javascript call: updater(/my_controller/my_options) If the

Re: requestAction issue

2006-11-05 Thread Mikee Freedom
morning Ismael, I think this was brought up a while back in quite a lengthy discussion, an interesting one mind you. Basically, any function of your controller that you do not want publicly available via the browser should be pre-cursed with an underscore: function _myOptions() { } I think

Re: requestAction issue

2006-11-05 Thread Larry E. Masters aka PhpNut
if($this-params['requested'] === true){// do your thing here}-- /*** @author Larry E. Masters* @var string $userName* @param string $realName* @returns string aka PhpNut* @accesspublic */ --~--~-~--~~~---~--~~ You received this message because you are subscribed