Re: Where should i contact right people in CakePHP.org because this security critical problem
kudos! -- 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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: habtm
HI you can solve this problem usign "custom query pagination". you can search in google you will get many examples. On Fri, Jun 24, 2011 at 10:02 PM, Prabha Vathi wrote: > Hi, > > In tagscontroller, > $this->paginate = array('conditions' => array('Post.status' => > 'active','Tag.tag_machine_value' => $name),'limit' => 3); > $posts = $this->paginate('Post'); > $this->set(compact('posts')); > > Tag and Post model have hasAndBelongsToMany relation. > > I am getting Unknown column 'Tag.tag_machine_value' in 'where clause' > > I tried > $this->Tag->unBindModel(array('hasAndBelongsToMany' => array('Post'))); > $this->Tag->bindModel(array('hasMany' => array('Post'))); > > But it is still not working > > -- > 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 > cake-php+unsubscr...@googlegroups.com For more options, visit this group > at http://groups.google.com/group/cake-php > -- Master Ram. Founder n Director of rgPlanets Pvt. Ltd. -- 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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: habtm
Any Help Please? -- 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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: Where should i contact right people in CakePHP.org because this security critical problem
Glad to hear that. Finally, i get my question answered. Yes, the right people to be contacted in CakePHP is all people involved in this forum. Thanks AD7six :) Yoodey http://yoodey.com On Fri, 2011-06-24 at 18:15 -0700, Maury wrote: > Optimal solution to the problem AD7six. Good work. > https://github.com/cakephp/cakephp/commit/e4fee14a5b1aca3c0af11549aa7... > > I know it is the responsibility of the developer, but it is good to > see that by the CakePHP core, developers are concerned and help create > solutions. > Thank you. > -- 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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: Where should i contact right people in CakePHP.org because this security critical problem
Optimal solution to the problem AD7six. Good work. https://github.com/cakephp/cakephp/commit/e4fee14a5b1aca3c0af11549aa7... I know it is the responsibility of the developer, but it is good to see that by the CakePHP core, developers are concerned and help create solutions. Thank you. -- 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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: Where should i contact right people in CakePHP.org because this security critical problem
Optimal solution to the problem AD7six. Good work. https://github.com/cakephp/cakephp/commit/e4fee14a5b1aca3c0af11549aa722358092853e7 I know it is the responsibility of the developer, but it is good to see that by the CakePHP core, developers are concerned and help create solutions. Thank you. On 23 jun, 02:03, euromark wrote: > i always do it the other way around > in core debug=0 and if on localhost, raise it afterwards to 1/2 > this way there should be no flaws > > On 23 Jun., 06:50, oceanguy wrote: > > > > > > > > > I've been baking for over 3 years, and while I know leaving debug >0 > > is not kosher, I often leave it temporarily at 1 for quasi-production > > sites, as it is a heck of a lot easier to debug run-time issues. > > > But I had no idea that database info would ever be exposed. And why > > would I? Seems like only a peculiar set of circumstances would have > > lead me to this error. If there's one piece of config information > > that shouldn't be exposed at all by an application, it's the db > > connection info. (Salt keys are probably a close second.) > > > If something is a bad practice, then it's up to the community to find > > the best way to inhibit it automatically. It's really a question of > > the community's integrity as a whole. If it's common for end user > > developers to make a mistake, then that speaks to an issue that needs > > to be addressed at the core level, otherwise everyone's reputation > > suffers. > > > CakePHP is a complex application and there is *a lot* to learn about > > it. Verbal notes hidden in forums (or even the docs) won't cut it, > > nor will saying, "if you followed best practice X, you wouldn't have > > exposed yourself to Y." End user developers do not know the details > > of how things might work under all circumstances, so we must trust the > > core developers to insure that best practices are in place to protect > > us from ourselves. > > > If it's a question of encouraging developers to maintain separate > > core.php files on dev and production machines, I think an alternative > > distribution model might be helpful. For example, maybe core.php > > should be distributed like database.php.default, which encourages devs > > to make a specific customized copy for each machine, which also > > implies not including it under version control. > > > Aside from this quibble, thanks for an awesome framework (and Mark, > > for a great blog). > > > -Sage > > > On Jun 22, 1:02 pm, mark_story wrote: > > > > It is the developer's fault, for deploying a system in a way it should > > > never be deployed. > > > > Since, I was working under the pre-tense that any developer who > > > actually cared about these kinds of things wouldn't make a stupid > > > mistake like this. And combined with the fact that removing the > > > passwords is a non-trivial problem, I punted on the issue. The place > > > where this error gets displayed from is inside Debugger, and its more > > > than non-trivial to filter through the various parts of output, > > > looking for things that follow password, and cutting them out. While > > > this is probably doable it will affect all the messages that Debugger > > > will create. > > > > I guess I underestimated the ability of people to screw up basic > > > deployment. If someone want's to prepare a patch, I'd be happy to > > > apply it so people who can't be bothered to properly deploy their > > > applications, can sleep better at night. > > > > -Mark -- 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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Aros and acos in another database
I'm thinking of creating an application that has the same user permissions to multiple databases. So I would summarize the ACL in a separate database that will not be changed by the user of the system. Groups will be pre-registered. You can create connections to another database only for the models using the Aro and Aco "public $ useDbConfig"? For that, the permissions are sought in another database, and not on the basis of the application. I am using CakePHP 1.3 -- 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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Form-Helper (kind of disfunction)
Hey guys, i'm having a formular present on all sites with the action for this formular located in the beforeFilter function of the AppController. It's kind of a language switcher. This is because i want to have the action of that formular set to the current site url. To create this form i use "$this->Form->create('')" in the view. It is working just fine with controller actions like "/companies/index" but with params like in "/admin/pages/display/admin_home" (in this case it is "admin_home") which is routed to "/admin" it is not working. This is because the Form-Helper totally ignores the params given to the method. I already tried the return value of "$this->Html->url()" as "action" and/or "url" but because of cake giving this to the "HtmlHelper::url()" function so it gets double based if the app is running in a subfolder. Even though normal users are not allowed to submit a ticket please submit one for this problem and fix it. Or if there is a solution please tell me ;) Greetings func0der -- 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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
render and paging
Hi, post controllers has something like this. function index() { //logic. //model communication $this->set(compact('posts')); } authors controller has something like this function someaction() { //logic //model communication $this->render('/posts/index'); } The view is same. So, I render this. I have no problem on this. But in pagination, postcontrollers index action gives like this (routers used) web-root/1, web-root/2 when authors name is clicked, the url is like this, ---> web-root/authors/authorname but paging is different web-root/2 , web-root/3 I think it is because i render posts/index action. How to achieve this without using duplicate coding? -- 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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: Routers
I finally found. I found it with google search. $this->Paginator->options I have to use this in my view. ;) On Sat, Jun 25, 2011 at 2:39 AM, Sam Sherlock wrote: > ok I see as I say I don't use pagination with that route. > > Perhaps others may have suggestions > > I think the pass param maybe of help > - S > > > > > > On 24 June 2011 21:58, Prabha Vathi wrote: > >> I am getting those in $this->params. But the problem is cakephp's >> pagination givers different url >> >> >> On Sat, Jun 25, 2011 at 2:25 AM, Sam Sherlock wrote: >> >>> is that not what your expecting? >>> - S >>> >>> >>> >>> >>> >>> On 24 June 2011 21:39, Prabha Vathi wrote: >>> [controller] => authors [action] => first [letter] => m [named] => Array ( ) [pass] => Array ( [0] => m ) I got letter m Array ( [0] => m ) On Sat, Jun 25, 2011 at 2:05 AM, Sam Sherlock wrote: > try > > debug($this->params); > > debug(func_get_args()); > > I have a route for pages using slugs and slug is an index in the params > array, > func_get_args is empty > > > Router::connect('/:slug', array( > 'controller' => 'app_pages', > 'action' => 'view'), > array('routeClass' => 'DynamPageRoute')); > (I don't use pagination on these routes) > > - S > > > > > > On 24 June 2011 21:05, Prabha Vathi wrote: > >> No. It is not working. >> Why $this->params['letter'] ? >> >> Why cake is not parsing pagination link? >> >> >> On Fri, Jun 24, 2011 at 11:04 PM, Sam Sherlock < >> sam.sherl...@gmail.com> wrote: >> >>> In controller action try >>> >>> $this->params['letter'] >>> - S >>> On 24 Jun 2011 17:57, "Prabha Vathi" >>> wrote: >>> > No, It is not working. If i remove this >>> > Router::connect('/authors/first-letter/:letter', array('controller' >>> => >>> > 'authors', 'action' => 'first'),array('pass' => >>> array('letter'),'letter' => >>> > '[a-zA-Z]')); >>> > and the one you gave me, i am getting error. >>> > >>> > If i add that new code in new line it is not changing the paging >>> url. I am >>> > still getting wrong paging url. >>> > >>> > -- >>> > Our newest site for the community: CakePHP Video Tutorials >>> http://tv.cakephp.org >>> > Check out the new CakePHP Questions site http://ask.cakephp.organd >>> > help others with their CakePHP related questions. >>> > >>> > >>> > 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 >>> >>> -- >>> 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 >>> cake-php+unsubscr...@googlegroups.com For more options, visit this >>> group at http://groups.google.com/group/cake-php >>> >> >> >> >> -- >> -- Prabhavathi >> >> >> -- >> 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 >> cake-php+unsubscr...@googlegroups.com 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 > cake-php+unsubscr...@googlegroups.com For more options, visit this > group at http://groups.google.com/group/cake-php > -- -- Prabhavathi -- 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 cake-php+unsubscr...@googlegroups.com 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. >>> >>> >>>
Re: Routers
ok I see as I say I don't use pagination with that route. Perhaps others may have suggestions I think the pass param maybe of help - S On 24 June 2011 21:58, Prabha Vathi wrote: > I am getting those in $this->params. But the problem is cakephp's > pagination givers different url > > > On Sat, Jun 25, 2011 at 2:25 AM, Sam Sherlock wrote: > >> is that not what your expecting? >> - S >> >> >> >> >> >> On 24 June 2011 21:39, Prabha Vathi wrote: >> >>> [controller] => authors >>> [action] => first >>> [letter] => m >>> [named] => Array >>> ( >>> ) >>> >>> [pass] => Array >>> ( >>> [0] => m >>> ) >>> >>> I got letter m >>> >>> Array >>> ( >>> [0] => m >>> ) >>> >>> >>> >>> On Sat, Jun 25, 2011 at 2:05 AM, Sam Sherlock wrote: >>> try debug($this->params); debug(func_get_args()); I have a route for pages using slugs and slug is an index in the params array, func_get_args is empty Router::connect('/:slug', array( 'controller' => 'app_pages', 'action' => 'view'), array('routeClass' => 'DynamPageRoute')); (I don't use pagination on these routes) - S On 24 June 2011 21:05, Prabha Vathi wrote: > No. It is not working. > Why $this->params['letter'] ? > > Why cake is not parsing pagination link? > > > On Fri, Jun 24, 2011 at 11:04 PM, Sam Sherlock > wrote: > >> In controller action try >> >> $this->params['letter'] >> - S >> On 24 Jun 2011 17:57, "Prabha Vathi" >> wrote: >> > No, It is not working. If i remove this >> > Router::connect('/authors/first-letter/:letter', array('controller' >> => >> > 'authors', 'action' => 'first'),array('pass' => >> array('letter'),'letter' => >> > '[a-zA-Z]')); >> > and the one you gave me, i am getting error. >> > >> > If i add that new code in new line it is not changing the paging >> url. I am >> > still getting wrong paging url. >> > >> > -- >> > 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 >> > cake-php+unsubscr...@googlegroups.com 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 >> cake-php+unsubscr...@googlegroups.com For more options, visit this >> group at http://groups.google.com/group/cake-php >> > > > > -- > -- Prabhavathi > > > -- > 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 > cake-php+unsubscr...@googlegroups.com 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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php >>> >>> >>> >>> -- >>> -- Prabhavathi >>> >>> -- >>> 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 >>> cake-php+unsubscr...@googlegroups.com 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 >> cake-php+unsubscr...@googlegroups.com For more options, visit this group >> at http://groups.google.com/group/cake-php >> > > > > -- > -- Prabhavathi > > -- > 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 the
Re: Routers
I am getting those in $this->params. But the problem is cakephp's pagination givers different url On Sat, Jun 25, 2011 at 2:25 AM, Sam Sherlock wrote: > is that not what your expecting? > - S > > > > > > On 24 June 2011 21:39, Prabha Vathi wrote: > >> [controller] => authors >> [action] => first >> [letter] => m >> [named] => Array >> ( >> ) >> >> [pass] => Array >> ( >> [0] => m >> ) >> >> I got letter m >> >> Array >> ( >> [0] => m >> ) >> >> >> >> On Sat, Jun 25, 2011 at 2:05 AM, Sam Sherlock wrote: >> >>> try >>> >>> debug($this->params); >>> >>> debug(func_get_args()); >>> >>> I have a route for pages using slugs and slug is an index in the params >>> array, >>> func_get_args is empty >>> >>> >>> Router::connect('/:slug', array( >>> 'controller' => 'app_pages', >>> 'action' => 'view'), >>> array('routeClass' => 'DynamPageRoute')); >>> (I don't use pagination on these routes) >>> >>> - S >>> >>> >>> >>> >>> >>> On 24 June 2011 21:05, Prabha Vathi wrote: >>> No. It is not working. Why $this->params['letter'] ? Why cake is not parsing pagination link? On Fri, Jun 24, 2011 at 11:04 PM, Sam Sherlock wrote: > In controller action try > > $this->params['letter'] > - S > On 24 Jun 2011 17:57, "Prabha Vathi" wrote: > > No, It is not working. If i remove this > > Router::connect('/authors/first-letter/:letter', array('controller' > => > > 'authors', 'action' => 'first'),array('pass' => > array('letter'),'letter' => > > '[a-zA-Z]')); > > and the one you gave me, i am getting error. > > > > If i add that new code in new line it is not changing the paging url. > I am > > still getting wrong paging url. > > > > -- > > 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 > > cake-php+unsubscr...@googlegroups.com 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 > cake-php+unsubscr...@googlegroups.com For more options, visit this > group at http://groups.google.com/group/cake-php > -- -- Prabhavathi -- 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 cake-php+unsubscr...@googlegroups.com 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 >>> cake-php+unsubscr...@googlegroups.com For more options, visit this group >>> at http://groups.google.com/group/cake-php >>> >> >> >> >> -- >> -- Prabhavathi >> >> -- >> 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 >> cake-php+unsubscr...@googlegroups.com 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 > cake-php+unsubscr...@googlegroups.com For more options, visit this group > at http://groups.google.com/group/cake-php > -- -- Prabhavathi -- 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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: Routers
is that not what your expecting? - S On 24 June 2011 21:39, Prabha Vathi wrote: > [controller] => authors > [action] => first > [letter] => m > [named] => Array > ( > ) > > [pass] => Array > ( > [0] => m > ) > > I got letter m > > Array > ( > [0] => m > ) > > > > On Sat, Jun 25, 2011 at 2:05 AM, Sam Sherlock wrote: > >> try >> >> debug($this->params); >> >> debug(func_get_args()); >> >> I have a route for pages using slugs and slug is an index in the params >> array, >> func_get_args is empty >> >> >> Router::connect('/:slug', array( >> 'controller' => 'app_pages', >> 'action' => 'view'), >> array('routeClass' => 'DynamPageRoute')); >> (I don't use pagination on these routes) >> >> - S >> >> >> >> >> >> On 24 June 2011 21:05, Prabha Vathi wrote: >> >>> No. It is not working. >>> Why $this->params['letter'] ? >>> >>> Why cake is not parsing pagination link? >>> >>> >>> On Fri, Jun 24, 2011 at 11:04 PM, Sam Sherlock >>> wrote: >>> In controller action try $this->params['letter'] - S On 24 Jun 2011 17:57, "Prabha Vathi" wrote: > No, It is not working. If i remove this > Router::connect('/authors/first-letter/:letter', array('controller' => > 'authors', 'action' => 'first'),array('pass' => array('letter'),'letter' => > '[a-zA-Z]')); > and the one you gave me, i am getting error. > > If i add that new code in new line it is not changing the paging url. I am > still getting wrong paging url. > > -- > 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 > cake-php+unsubscr...@googlegroups.com 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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php >>> >>> >>> >>> -- >>> -- Prabhavathi >>> >>> >>> -- >>> 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 >>> cake-php+unsubscr...@googlegroups.com 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 >> cake-php+unsubscr...@googlegroups.com For more options, visit this group >> at http://groups.google.com/group/cake-php >> > > > > -- > -- Prabhavathi > > -- > 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 > cake-php+unsubscr...@googlegroups.com 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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: Where should i contact right people in CakePHP.org because this security critical problem
... and on other branches too. =) -- 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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: Routers
[controller] => authors [action] => first [letter] => m [named] => Array ( ) [pass] => Array ( [0] => m ) I got letter m Array ( [0] => m ) On Sat, Jun 25, 2011 at 2:05 AM, Sam Sherlock wrote: > try > > debug($this->params); > > debug(func_get_args()); > > I have a route for pages using slugs and slug is an index in the params > array, > func_get_args is empty > > > Router::connect('/:slug', array( > 'controller' => 'app_pages', > 'action' => 'view'), > array('routeClass' => 'DynamPageRoute')); > (I don't use pagination on these routes) > > - S > > > > > > On 24 June 2011 21:05, Prabha Vathi wrote: > >> No. It is not working. >> Why $this->params['letter'] ? >> >> Why cake is not parsing pagination link? >> >> >> On Fri, Jun 24, 2011 at 11:04 PM, Sam Sherlock wrote: >> >>> In controller action try >>> >>> $this->params['letter'] >>> - S >>> On 24 Jun 2011 17:57, "Prabha Vathi" wrote: >>> > No, It is not working. If i remove this >>> > Router::connect('/authors/first-letter/:letter', array('controller' => >>> > 'authors', 'action' => 'first'),array('pass' => >>> array('letter'),'letter' => >>> > '[a-zA-Z]')); >>> > and the one you gave me, i am getting error. >>> > >>> > If i add that new code in new line it is not changing the paging url. I >>> am >>> > still getting wrong paging url. >>> > >>> > -- >>> > 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 >>> > cake-php+unsubscr...@googlegroups.com 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 >>> cake-php+unsubscr...@googlegroups.com For more options, visit this group >>> at http://groups.google.com/group/cake-php >>> >> >> >> >> -- >> -- Prabhavathi >> >> >> -- >> 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 >> cake-php+unsubscr...@googlegroups.com 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 > cake-php+unsubscr...@googlegroups.com For more options, visit this group > at http://groups.google.com/group/cake-php > -- -- Prabhavathi -- 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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: Where should i contact right people in CakePHP.org because this security critical problem
AD7six has already 'fixed' it on 2.0 branch at Github. https://github.com/cakephp/cakephp/commit/fcd0505d424aaafecfe3b051930e721efebac9f5 Thanks AD7six.. and thanks all members from this topic. Case closed. -- 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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: Routers
try debug($this->params); debug(func_get_args()); I have a route for pages using slugs and slug is an index in the params array, func_get_args is empty Router::connect('/:slug', array( 'controller' => 'app_pages', 'action' => 'view'), array('routeClass' => 'DynamPageRoute')); (I don't use pagination on these routes) - S On 24 June 2011 21:05, Prabha Vathi wrote: > No. It is not working. > Why $this->params['letter'] ? > > Why cake is not parsing pagination link? > > > On Fri, Jun 24, 2011 at 11:04 PM, Sam Sherlock wrote: > >> In controller action try >> >> $this->params['letter'] >> - S >> On 24 Jun 2011 17:57, "Prabha Vathi" wrote: >> > No, It is not working. If i remove this >> > Router::connect('/authors/first-letter/:letter', array('controller' => >> > 'authors', 'action' => 'first'),array('pass' => array('letter'),'letter' >> => >> > '[a-zA-Z]')); >> > and the one you gave me, i am getting error. >> > >> > If i add that new code in new line it is not changing the paging url. I >> am >> > still getting wrong paging url. >> > >> > -- >> > 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 >> > cake-php+unsubscr...@googlegroups.com 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 >> cake-php+unsubscr...@googlegroups.com For more options, visit this group >> at http://groups.google.com/group/cake-php >> > > > > -- > -- Prabhavathi > > > -- > 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 > cake-php+unsubscr...@googlegroups.com 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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Render
Hi, I have two actions in post controller view and random in random i render view action. But in view action i check the id for empty. If it is empty then i redirect it to root of the site. so, random is always getting redirected to home page. If i use different view file for random action, then i duplicate. Is there any other way? Thanks -- 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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: Routers
No. It is not working. Why $this->params['letter'] ? Why cake is not parsing pagination link? On Fri, Jun 24, 2011 at 11:04 PM, Sam Sherlock wrote: > In controller action try > > $this->params['letter'] > - S > On 24 Jun 2011 17:57, "Prabha Vathi" wrote: > > No, It is not working. If i remove this > > Router::connect('/authors/first-letter/:letter', array('controller' => > > 'authors', 'action' => 'first'),array('pass' => array('letter'),'letter' > => > > '[a-zA-Z]')); > > and the one you gave me, i am getting error. > > > > If i add that new code in new line it is not changing the paging url. I > am > > still getting wrong paging url. > > > > -- > > 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 > > cake-php+unsubscr...@googlegroups.com 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 > cake-php+unsubscr...@googlegroups.com For more options, visit this group > at http://groups.google.com/group/cake-php > -- -- Prabhavathi -- 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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: CakePHP + Apache Load Balancer
Well, i had to change the Security.level to low and all is working fine. []'s On 24 jun, 14:06, Felipe Carballo wrote: > John, i verified that the "HTTP_X_FORWARDED_FOR" is being passed > correctly. > > We chose the Apache Load Balancer for this project because we already > have another application (Roundcube Webmail) running in the same > scenario. > > Best regards. > > On 24 jun, 11:31, John Hardy wrote: > > > > > > > > > Have you ensured that you setup your proxy to pass the > > "HTTP_X_FORWARDED_FOR" header with the clients IP address > > > You can dump the _SERVER var to check if that value is being passed in the > > header. > > > Also, I would suggest using HAPROXY as a software based proxy, it's built > > specifically for such use-cases and, I can attest that it works perfectly > > with > > a cakephp install as I am using it now to load balance 15 web nodes and 3 > > databases. > > > On Jun 24, 2011, at 7:26 AM, Felipe Carballo wrote: > > > > Hello guys! > > > > I'm having trouble to setting up a CakePHP app on a balanced > > > environment: sessions seems to be lost between requests. I'm already > > > using database to save sessions. > > > > Below is my balancer config: > > > > > > > DocumentRoot /var/www/html > > > DirectoryIndex index.htm index.html index.php > > > ServerName www3.dominio.com > > > Options -Indexes +FollowSymLinks > > > > ProxyPass /server-status ! > > > ProxyPass /balancer-manager ! > > > ProxyPass / balancer://WebCluster/ stickysession=BALANCEID > > > nofailover=Off > > > ProxyPassReverse / balancer://WebCluster/ > > > > > > > BalancerMemberhttp://web1.dominio.comloadfactor=10 > > > route=web1.dominio.com > > > BalancerMemberhttp://web2.dominio.comloadfactor=10 > > > route=web2.dominio.com > > > ProxySet lbmethod=byrequests > > > > > > > > > > SetHandler balancer-manager > > > Order deny,allow > > > Allow from 192.168.0.0/20 > > > > > > > > > > > There is something I'm missing? > > > > I appreciate if anyone can help me. =) > > > > -- > > > Our newest site for the community: CakePHP Video > > > Tutorialshttp://tv.cakephp.org > > > Check out the new CakePHP Questions sitehttp://ask.cakephp.organdhelp > > > others with their CakePHP related questions. > > > > To unsubscribe from this group, send email to > > > cake-php+unsubscr...@googlegroups.com For more options, visit this group > > > athttp://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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: Routers
In controller action try $this->params['letter'] - S On 24 Jun 2011 17:57, "Prabha Vathi" wrote: > No, It is not working. If i remove this > Router::connect('/authors/first-letter/:letter', array('controller' => > 'authors', 'action' => 'first'),array('pass' => array('letter'),'letter' => > '[a-zA-Z]')); > and the one you gave me, i am getting error. > > If i add that new code in new line it is not changing the paging url. I am > still getting wrong paging url. > > -- > 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 > cake-php+unsubscr...@googlegroups.com 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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: CakePHP + Apache Load Balancer
John, i verified that the "HTTP_X_FORWARDED_FOR" is being passed correctly. We chose the Apache Load Balancer for this project because we already have another application (Roundcube Webmail) running in the same scenario. Best regards. On 24 jun, 11:31, John Hardy wrote: > Have you ensured that you setup your proxy to pass the "HTTP_X_FORWARDED_FOR" > header with the clients IP address > > You can dump the _SERVER var to check if that value is being passed in the > header. > > Also, I would suggest using HAPROXY as a software based proxy, it's built > specifically for such use-cases and, I can attest that it works perfectly with > a cakephp install as I am using it now to load balance 15 web nodes and 3 > databases. > > On Jun 24, 2011, at 7:26 AM, Felipe Carballo wrote: > > > > > > > > > Hello guys! > > > I'm having trouble to setting up a CakePHP app on a balanced > > environment: sessions seems to be lost between requests. I'm already > > using database to save sessions. > > > Below is my balancer config: > > > > > DocumentRoot /var/www/html > > DirectoryIndex index.htm index.html index.php > > ServerName www3.dominio.com > > Options -Indexes +FollowSymLinks > > > ProxyPass /server-status ! > > ProxyPass /balancer-manager ! > > ProxyPass / balancer://WebCluster/ stickysession=BALANCEID > > nofailover=Off > > ProxyPassReverse / balancer://WebCluster/ > > > > > BalancerMemberhttp://web1.dominio.comloadfactor=10 > > route=web1.dominio.com > > BalancerMemberhttp://web2.dominio.comloadfactor=10 > > route=web2.dominio.com > > ProxySet lbmethod=byrequests > > > > > > > SetHandler balancer-manager > > Order deny,allow > > Allow from 192.168.0.0/20 > > > > > > > > There is something I'm missing? > > > I appreciate if anyone can help me. =) > > > -- > > Our newest site for the community: CakePHP Video > > Tutorialshttp://tv.cakephp.org > > Check out the new CakePHP Questions sitehttp://ask.cakephp.organd help > > others with their CakePHP related questions. > > > To unsubscribe from this group, send email to > > cake-php+unsubscr...@googlegroups.com For more options, visit this group > > athttp://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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: Routers
Hi, I just added this Router::connect('/authors/first-letter/:letter', array('controller' => 'authors', 'action' => 'first'),array('pass' => array('letter'),'letter' => '[a-zA-Z]')); Router::connect('/authors/first-letter/:letter/:page', array('controller' => 'authors', 'action' => 'first'),array('pass' => array('letter'),'letter' => '[a-zA-Z]')); http://localhost/famousquotes/authors/first/m/page:2 But paging is still give the above link URL in browser now is : http://localhost/famousquotes/authors/first-letter/m Thanks On Fri, Jun 24, 2011 at 10:28 PM, Tilen Majerle wrote: > no no...you just add my route, so you have 2 routes > > Router::connect('/authors/first-letter/:letter', array('controller' => > 'authors', 'action' => 'first'),array('pass' => array('letter'),'letter' => > '[a-zA-Z]')); > Router::connect('/authors/first-letter/:letter/:page', array('controller' > => 'authors', 'action' => 'first'),array('pass' => array('letter'),'letter' > => '[a-zA-Z]')); > > -- > Lep pozdrav, Tilen Majerle > http://majerle.eu > > > > 2011/6/24 Prabha Vathi > >> No, It is not working. If i remove this >> Router::connect('/authors/first-letter/:letter', array('controller' => >> 'authors', 'action' => 'first'),array('pass' => array('letter'),'letter' => >> '[a-zA-Z]')); >> and the one you gave me, i am getting error. >> >> If i add that new code in new line it is not changing the paging url. I am >> still getting wrong paging url. >> >> -- >> 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 >> cake-php+unsubscr...@googlegroups.com 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 > cake-php+unsubscr...@googlegroups.com For more options, visit this group > at http://groups.google.com/group/cake-php > -- -- Prabhavathi -- 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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: Routers
no no...you just add my route, so you have 2 routes Router::connect('/authors/first-letter/:letter', array('controller' => 'authors', 'action' => 'first'),array('pass' => array('letter'),'letter' => '[a-zA-Z]')); Router::connect('/authors/first-letter/:letter/:page', array('controller' => 'authors', 'action' => 'first'),array('pass' => array('letter'),'letter' => '[a-zA-Z]')); -- Lep pozdrav, Tilen Majerle http://majerle.eu 2011/6/24 Prabha Vathi > No, It is not working. If i remove this > Router::connect('/authors/first-letter/:letter', array('controller' => > 'authors', 'action' => 'first'),array('pass' => array('letter'),'letter' => > '[a-zA-Z]')); > and the one you gave me, i am getting error. > > If i add that new code in new line it is not changing the paging url. I am > still getting wrong paging url. > > -- > 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 > cake-php+unsubscr...@googlegroups.com 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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: Routers
No, It is not working. If i remove this Router::connect('/authors/first-letter/:letter', array('controller' => 'authors', 'action' => 'first'),array('pass' => array('letter'),'letter' => '[a-zA-Z]')); and the one you gave me, i am getting error. If i add that new code in new line it is not changing the paging url. I am still getting wrong paging url. -- 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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: Routers
Router::connect('/authors/first-letter/:letter/:page', array('controller' => 'authors', 'action' => 'first'),array('pass' => array('letter'),'letter' => '[a-zA-Z]')); (router) try that -- Lep pozdrav, Tilen Majerle http://majerle.eu 2011/6/24 Prabha Vathi > I think it should be simple. I tried a lot from google. But nothing works > for me :( > > -- > 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 > cake-php+unsubscr...@googlegroups.com 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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
habtm
Hi, In tagscontroller, $this->paginate = array('conditions' => array('Post.status' => 'active','Tag.tag_machine_value' => $name),'limit' => 3); $posts = $this->paginate('Post'); $this->set(compact('posts')); Tag and Post model have hasAndBelongsToMany relation. I am getting Unknown column 'Tag.tag_machine_value' in 'where clause' I tried $this->Tag->unBindModel(array('hasAndBelongsToMany' => array('Post'))); $this->Tag->bindModel(array('hasMany' => array('Post'))); But it is still not working -- 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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: CakePHP + Apache Load Balancer
the proxy setup is something missing, not the cake. try pen load balancer, i have try it with success. On Fri, Jun 24, 2011 at 10:31 PM, John Hardy wrote: > > Have you ensured that you setup your proxy to pass the > "HTTP_X_FORWARDED_FOR" header with the clients IP address > > You can dump the _SERVER var to check if that value is being passed in the > header. > > Also, I would suggest using HAPROXY as a software based proxy, it's built > specifically for such use-cases and, I can attest that it works perfectly > with > a cakephp install as I am using it now to load balance 15 web nodes and 3 > databases. > > On Jun 24, 2011, at 7:26 AM, Felipe Carballo wrote: > > > Hello guys! > > > > I'm having trouble to setting up a CakePHP app on a balanced > > environment: sessions seems to be lost between requests. I'm already > > using database to save sessions. > > > > Below is my balancer config: > > > > > > DocumentRoot /var/www/html > > DirectoryIndex index.htm index.html index.php > > ServerName www3.dominio.com > > Options -Indexes +FollowSymLinks > > > > ProxyPass /server-status ! > > ProxyPass /balancer-manager ! > > ProxyPass / balancer://WebCluster/ stickysession=BALANCEID > > nofailover=Off > > ProxyPassReverse / balancer://WebCluster/ > > > > > >BalancerMember http://web1.dominio.com loadfactor=10 > > route=web1.dominio.com > >BalancerMember http://web2.dominio.com loadfactor=10 > > route=web2.dominio.com > >ProxySet lbmethod=byrequests > > > > > > > >SetHandler balancer-manager > >Order deny,allow > >Allow from 192.168.0.0/20 > > > > > > > > > > There is something I'm missing? > > > > I appreciate if anyone can help me. =) > > > > -- > > 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 > > cake-php+unsubscr...@googlegroups.com 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 > cake-php+unsubscr...@googlegroups.com 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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: Routers
I think it should be simple. I tried a lot from google. But nothing works for me :( -- 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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: CakePHP + Apache Load Balancer
Have you ensured that you setup your proxy to pass the "HTTP_X_FORWARDED_FOR" header with the clients IP address You can dump the _SERVER var to check if that value is being passed in the header. Also, I would suggest using HAPROXY as a software based proxy, it's built specifically for such use-cases and, I can attest that it works perfectly with a cakephp install as I am using it now to load balance 15 web nodes and 3 databases. On Jun 24, 2011, at 7:26 AM, Felipe Carballo wrote: > Hello guys! > > I'm having trouble to setting up a CakePHP app on a balanced > environment: sessions seems to be lost between requests. I'm already > using database to save sessions. > > Below is my balancer config: > > > DocumentRoot /var/www/html > DirectoryIndex index.htm index.html index.php > ServerName www3.dominio.com > Options -Indexes +FollowSymLinks > > ProxyPass /server-status ! > ProxyPass /balancer-manager ! > ProxyPass / balancer://WebCluster/ stickysession=BALANCEID > nofailover=Off > ProxyPassReverse / balancer://WebCluster/ > > >BalancerMember http://web1.dominio.com loadfactor=10 > route=web1.dominio.com >BalancerMember http://web2.dominio.com loadfactor=10 > route=web2.dominio.com >ProxySet lbmethod=byrequests > > > >SetHandler balancer-manager >Order deny,allow >Allow from 192.168.0.0/20 > > > > > There is something I'm missing? > > I appreciate if anyone can help me. =) > > -- > 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 > cake-php+unsubscr...@googlegroups.com 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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
CakePHP + Apache Load Balancer
Hello guys! I'm having trouble to setting up a CakePHP app on a balanced environment: sessions seems to be lost between requests. I'm already using database to save sessions. Below is my balancer config: DocumentRoot /var/www/html DirectoryIndex index.htm index.html index.php ServerName www3.dominio.com Options -Indexes +FollowSymLinks ProxyPass /server-status ! ProxyPass /balancer-manager ! ProxyPass / balancer://WebCluster/ stickysession=BALANCEID nofailover=Off ProxyPassReverse / balancer://WebCluster/ BalancerMember http://web1.dominio.com loadfactor=10 route=web1.dominio.com BalancerMember http://web2.dominio.com loadfactor=10 route=web2.dominio.com ProxySet lbmethod=byrequests SetHandler balancer-manager Order deny,allow Allow from 192.168.0.0/20 There is something I'm missing? I appreciate if anyone can help me. =) -- 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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: Auth allow
Thanks. It is good -- 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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: Routers
Yes, I got it now. But I found one more problem. http://localhost/famousquotes/authors/first-letter/m (url) Router::connect('/authors/first-letter/:letter', array('controller' => 'authors', 'action' => 'first'),array('pass' => array('letter'),'letter' => '[a-zA-Z]')); (router) This is working good. But link('M', array( 'controller' => 'authors', 'action' => 'first', 'letter' => 'm' ) ); ?> When i click this link, It works good. But the paging (cakephp's default paging) gives link like this http://localhost/famousquotes/authors/first/m/page:2 Can we fix it? -- 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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: Routers
if you make route to a /authors/:letter than you should open link like localhost/authors/a not localhost/authors/first-letter/a why? because you don't have route for /authors/first-letter/:letter and then params are parsed like /:controller/:action/:pass1/:pass2 i hope you understand you need to create a new route for /authors/first-letter/:letter and point it to AuthorsController::first(); -- Lep pozdrav, Tilen Majerle http://majerle.eu 2011/6/24 Prabha Vathi > Hi, > > Router::connect('/authors/:letter', array('controller' => 'authors', > 'action' => 'first'),array('pass' => array('letter'),'letter' => > '[a-zA-Z]')); > > http://localhost/cakephp/authors/first-letter/a > > I am getting the following error. > > *Error: * The action *first-letter* is not defined in controller * > AuthorsController** > Error: * Create *AuthorsController::**first-letter()* in file: > app\controllers\authors_controller.php. > > i think, if i rename first() in authors controller to first-name, it will > work. But to achieve this in routers without changing in controller > > Thanks > > -- > 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 > cake-php+unsubscr...@googlegroups.com 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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
how to use To_char and To_date function
hi sir i am using to_date and to_char function with cakephp+oracle then it is giving me letral type error. how can i resolve it my query is below. Error - SQL Error: ORA-01861: literal does not match format string SELECT TO_CHAR (TO_DATE ( TO_DATE ('2011/01/01', '/mm/dd') - TO_CHAR (TO_DATE ('2011/01/01', '/mm/dd'), 'D') + 2, 'dd-mm-' ), '-mm-dd' ) year_first_wk_start_, TO_CHAR (TO_DATE ( TO_DATE ('2011/01/01', '/mm/dd') - TO_CHAR (TO_DATE ('2011/01/01', '/mm/dd'), 'D') + 2, 'dd-mm-' ), 'dd-mm-' ) year_first_wk_start_dmy, TO_CHAR ( TO_DATE ( TO_DATE ('2011/01/01', '/mm/dd') - TO_CHAR (TO_DATE ('2011/01/01', '/mm/dd'), 'D') + 2, 'dd-mm-' ) + 6, 'dd-mm-' ) year_first_wk_end_dmy, TO_CHAR (TO_DATE (SYSDATE - TO_CHAR (SYSDATE, 'D') + 2, 'dd-mm- '), '-mm-dd' ) cur_year_cur_week_start_, TO_CHAR (TO_DATE (SYSDATE - TO_CHAR (SYSDATE, 'D') + 2, 'dd-mm- ') + 6, 'dd-mm-' ) cur_year_cur_week_end_dmy, TO_CHAR (TO_DATE (SYSDATE - TO_CHAR (SYSDATE, 'D') + 2, 'dd-mm- '), 'dd-mm-' ) cur_year_cur_week_start_dmy FROM DUAL -- 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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Routers
Hi, Router::connect('/authors/:letter', array('controller' => 'authors', 'action' => 'first'),array('pass' => array('letter'),'letter' => '[a-zA-Z]')); http://localhost/cakephp/authors/first-letter/a I am getting the following error. *Error: * The action *first-letter* is not defined in controller * AuthorsController** Error: * Create *AuthorsController::**first-letter()* in file: app\controllers\authors_controller.php. i think, if i rename first() in authors controller to first-name, it will work. But to achieve this in routers without changing in controller Thanks -- 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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: how to change layout in some action
check this... http://book.cakephp.org/view/488/Themes -- Lep pozdrav, Tilen Majerle http://majerle.eu 2011/6/24 > > how to switch layout in some action > > when i use index page use green.ctp > > when i use view page use red.ctp > > > funnily enough, there is a whole section of the cake book that covers > layouts. > > http://book.cakephp.org/view/96/Layouts > > > > > > > thank > > > > -- > > 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 > > cake-php+unsubscr...@googlegroups.com 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 > cake-php+unsubscr...@googlegroups.com 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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: Only allow a single session per user account?
I don't think its cakePHP specific really, and its not something I have done before. But off the top of my head, it seems it would just be a case of storing a random value in the DB against the user, and then storing this in the cookie as well, this would be regenerated each time the user logs in. In cake terms, you'd then compare the two in the app_controller, if they don't match, then log that user out. (not sure of the best way of forcing a logout in cake) Anyway, just my thoughts. Other more experienced cake users may know of an existing built in method. On Jun 24, 10:53 am, Shaz wrote: > Just wanted to ask what would be the best way of doing this? > Essentially if a person logs in from one location, and then a while > later from the other - I want them to immediately be logged out from > the first location. -- 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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: how to change layout in some action
> how to switch layout in some action > when i use index page use green.ctp > when i use view page use red.ctp funnily enough, there is a whole section of the cake book that covers layouts. http://book.cakephp.org/view/96/Layouts > > thank > > -- > 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 > cake-php+unsubscr...@googlegroups.com 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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: Where should i contact right people in CakePHP.org because this security critical problem
My dos centimos: This certainly isn't a bug. It's a "marmite" featured insofar as you either like it or you don't. This happened to me once on a dev site that somehow got cached by Google. It was a shock, but it also gave me a slap on the wrists and I was lucky - Lesson: never push anything public unless debug is 0. I personally don't agree with sensitive information like passwords appearing in debug - but I can live with it if I am aware it can happen. As the trace is generally collapsed, it can be difficult to spot any highly sensitive information is public for the more naive developer. I think a warning (prominent) in the docs that this can happen would suffice. In this case, if you don't read the manual, you have no one else to blame. On Jun 23, 7:03 am, euromark wrote: > i always do it the other way around > in core debug=0 and if on localhost, raise it afterwards to 1/2 > this way there should be no flaws > > On 23 Jun., 06:50, oceanguy wrote: > > > > > > > > > I've been baking for over 3 years, and while I know leaving debug >0 > > is not kosher, I often leave it temporarily at 1 for quasi-production > > sites, as it is a heck of a lot easier to debug run-time issues. > > > But I had no idea that database info would ever be exposed. And why > > would I? Seems like only a peculiar set of circumstances would have > > lead me to this error. If there's one piece of config information > > that shouldn't be exposed at all by an application, it's the db > > connection info. (Salt keys are probably a close second.) > > > If something is a bad practice, then it's up to the community to find > > the best way to inhibit it automatically. It's really a question of > > the community's integrity as a whole. If it's common for end user > > developers to make a mistake, then that speaks to an issue that needs > > to be addressed at the core level, otherwise everyone's reputation > > suffers. > > > CakePHP is a complex application and there is *a lot* to learn about > > it. Verbal notes hidden in forums (or even the docs) won't cut it, > > nor will saying, "if you followed best practice X, you wouldn't have > > exposed yourself to Y." End user developers do not know the details > > of how things might work under all circumstances, so we must trust the > > core developers to insure that best practices are in place to protect > > us from ourselves. > > > If it's a question of encouraging developers to maintain separate > > core.php files on dev and production machines, I think an alternative > > distribution model might be helpful. For example, maybe core.php > > should be distributed like database.php.default, which encourages devs > > to make a specific customized copy for each machine, which also > > implies not including it under version control. > > > Aside from this quibble, thanks for an awesome framework (and Mark, > > for a great blog). > > > -Sage > > > On Jun 22, 1:02 pm, mark_story wrote: > > > > It is the developer's fault, for deploying a system in a way it should > > > never be deployed. > > > > Since, I was working under the pre-tense that any developer who > > > actually cared about these kinds of things wouldn't make a stupid > > > mistake like this. And combined with the fact that removing the > > > passwords is a non-trivial problem, I punted on the issue. The place > > > where this error gets displayed from is inside Debugger, and its more > > > than non-trivial to filter through the various parts of output, > > > looking for things that follow password, and cutting them out. While > > > this is probably doable it will affect all the messages that Debugger > > > will create. > > > > I guess I underestimated the ability of people to screw up basic > > > deployment. If someone want's to prepare a patch, I'd be happy to > > > apply it so people who can't be bothered to properly deploy their > > > applications, can sleep better at night. > > > > -Mark -- 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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Only allow a single session per user account?
Just wanted to ask what would be the best way of doing this? Essentially if a person logs in from one location, and then a while later from the other - I want them to immediately be logged out from the first location. -- 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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php