|
I just want to know that the use of requestaction in a view file is good for coding or using Class::Rergistry is better then requestaction ?
-- 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 [hidden email] For more options, visit this group at http://groups.google.com/group/cake-php |
|
Those are very different things. What do you want to do exactly?
On Wed, Aug 1, 2012 at 3:43 AM, Bharat Maheshwari <[hidden email]> wrote: > I just want to know that the use of requestaction in a view file is good for > coding or using Class::Rergistry is better then requestaction ? > > -- > 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 > [hidden email] For more options, visit this group at > http://groups.google.com/group/cake-php -- 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 [hidden email] For more options, visit this group at http://groups.google.com/group/cake-php |
|
I want to know is there any performance issue if i use requestaction in a ctp file???????
On Wednesday, August 1, 2012 11:29:16 PM UTC+5:30, cricket wrote: Those are very different things. What do you want to do exactly?-- You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to [hidden email]. To unsubscribe from this group, send email to [hidden email]. Visit this group at http://groups.google.com/group/cake-php?hl=en-US. |
|
Here are some interesting read on requestAction, maybe a bit old but I think most of it is still relevant :
http://debuggable.com/posts/requestaction-considered-harmful:48abb514-1f9c-4443-b91c-6d0f4834cda3 Cheers, On Fri, Aug 10, 2012 at 2:29 PM, Bharat Maheshwari <[hidden email]> wrote: I want to know is there any performance issue if i use requestaction in a ctp file??????? You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to [hidden email]. To unsubscribe from this group, send email to [hidden email]. Visit this group at http://groups.google.com/group/cake-php?hl=en-US. |
|
In reply to this post by Bharat Maheshwari
From cakephp.org documentation: If used without caching requestAction can lead to poor performance. It is rarely appropriate to use in a controller or model. If the ClassRegistry will not give you any conflict, it´s better, but if you have any conflict use the requestAction.
-- Em sexta-feira, 10 de agosto de 2012 09h29min40s UTC-3, Bharat Maheshwari escreveu: I want to know is there any performance issue if i use requestaction in a ctp file??????? You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to [hidden email]. To unsubscribe from this group, send email to [hidden email]. Visit this group at http://groups.google.com/group/cake-php?hl=en-US. |
|
In reply to this post by Bharat Maheshwari
If used without caching requestAction can lead to poor performance. It is rarely appropriate to use in a controller or model.
If the ClassRegistry will not give you any kind of conflict, i recommend the use of this, but if you have trouble you can use requestAction without problems, i am using this for dinamic menus wich have related models.
-- Em quarta-feira, 1 de agosto de 2012 04h43min21s UTC-3, Bharat Maheshwari escreveu: I just want to know that the use of requestaction in a view file is good for coding or using Class::Rergistry is better then requestaction ? You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to [hidden email]. To unsubscribe from this group, send email to [hidden email]. Visit this group at http://groups.google.com/group/cake-php?hl=en-US. |
| Powered by Nabble | Edit this page |
