Redirect mixed case URLS
Hi guys Does anyone know of a decent, non htaccess way of reading in URL's that have mixed case but still point to the appropriate controller/ action ? e.g. Router::connect('/about', array('controller' => 'pages', 'action' => 'display','about')); Means I'm able to route my about page by: myhosting.com/about - but attempting to visit myhosting.com/About results in error. I've tried checking out the API for the Router class methods but seem to be stuck. Regards Robert Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. 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 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?hl=en
Re: Absolute URLs
"Er, what for?" Because I prefer to use absolute URLs :P "And there's no way you can have a link like '/cake/css/cake.generic.css'" Obviously you can if your working within a folder named 'cake', I just pasted a random href link in there from my test setup for an example. Thanks for the heads up on the url method argument, must have been a lack of coffee that made me forget to check the api for that too :) On 25 April 2010 12:03, jacmoe wrote: > Er, what for? > > And there's no way you can have a link like '/cake/css/ > cake.generic.css' - it would be '/css/cake.generic.css'. > Are you creating all those links yourself? > > On Apr 25, 6:59 am, Robert Popplewell wrote: > > Does anyone know the best way to change all html links within cakephp > > to absolute URLs? (besides preg_replace) > > > > e.g. > > > > From: > > > > /cake/css/cake.generic.css > > > > To: > > > > http://myurl.com/cake/css/cake.generic.css > > > > Check out the new CakePHP Questions sitehttp://cakeqs.organd help others > with their CakePHP related questions. > > > > 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 > > To unsubscribe from this group, send email to > > cake-php+unsubscr...@googlegroups.comFor > > more options, visit this group athttp:// > groups.google.com/group/cake-php?hl=en > > Check out the new CakePHP Questions site http://cakeqs.org and help others > with their CakePHP related questions. > > 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 > To unsubscribe from this group, send email to > cake-php+unsubscr...@googlegroups.comFor > more options, visit this group at > http://groups.google.com/group/cake-php?hl=en > Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. 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 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?hl=en
Absolute URLs
Does anyone know the best way to change all html links within cakephp to absolute URLs? (besides preg_replace) e.g. From: /cake/css/cake.generic.css To: http://myurl.com/cake/css/cake.generic.css Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. 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 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?hl=en
Re: Release: CakePHP 1.2.5
I wonder if every other member of the CakePHP development team takes the time to reply to remarks made by all other end-users with such wit. 2009/10/2 mark_story > > George, > > Sorry to hear you're miffed, but I made a mistake in packaging 1.2.5 > so the version number printed when running shells reads 1.2.4.8284. > While the VERSION.txt reads 1.2.5. So if you want to be mad at > someone be mad at me. As for other things missing, there is nothing > that I'm aware of. As the version number changes are the last changes > made before packaging. I'll try to do better in the future, sorry for > all the confusion and anguish this has caused you. > > -Mark > > > On Oct 1, 9:07 pm, George H wrote: > > I'm a little miffed that there's no word from any developers about the > > issue above -- either through here, twitter or CakePHP Bakery. > > > > My main concern is that the release notes for this version state that > > a change has been made (the version number for example) but the > > download package doesn't have that change applied – if this particular > > change hasn't been delivered, what else is missing from this version? > > I know it's just a version number but it makes me think what else is > > missing from 1.2.5 that should be there according to the release > > notes. > > > > On Sep 15, 10:46 am, "euromark (munich)" > > wrote: > > > > > > > > > the nightly build does not have the date problems > > > so i guess this was an error on building the official release > > > > > the version number is still 1.2.4 in the nightly as well though > > > > > On 15 Sep., 01:45, frsp wrote: > > > > > > Yes, it is a bit strange > > > > > > * @version $Revision$ > > > > * @modifiedby$LastChangedBy$ > > > > * @lastmodified $Date$ > > > > > > and "return $config['Cake.version'] = '1.2.4.8284';" for cake 1.2.5 > > > > > > Any comments from developers? > > > > > > On Sep 10, 5:53 am, George H wrote: > > > > > > > Good going with the release of 1.2.5! I've already downloaded and > > > > > installed it. > > > > > > > However, I noticed that the version reported is still 1.2.4.8284. > Are > > > > > you sure this is a clean commit to the code base? Commit > > > > > [e693e881e05dba168f49d14ab657dbff2b2f9c88] in the changelog says > that > > > > > the version number was updated, but this doesn't seem to be the > case > > > > > for me. Also, the $ macros in each PHP script in the top comments > > > > > (stuff like $Id$ and $Revision$) are all blank / default, and not > the > > > > > actual data that should be in there. > > > > > > > FWIW, I downloaded the .tar.bz2 distribution from here: > http://cakeforge.org/frs/download.php/733/cake_1.2.5.tar.bz2 > > > --~--~-~--~~~---~--~~ 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 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?hl=en -~--~~~~--~~--~--~---
Re: Ask : Anyone want this site source code? or give me some advice?
I wouldn't mind having a look, I'd like to see how you've implemented your search 2009/9/12 CoolCourt > > Hello I wouldnt mind getting a chance to play with that code. how do I > get it? > > On Sep 11, 4:03 pm, yodi wrote: > > Hello, > > > > I have build sites about logo sharing :http://freelogo.web.id. > > It use CakePHP 1.2 Final and Jquery 1.2 and have build in one week. > > > > Just asking that anyone interesting with this site code? > > or maybe give me some advices? > > > > If there are someone need it, i will opened it to help them. > > > > Thanks > > > --~--~-~--~~~---~--~~ 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 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?hl=en -~--~~~~--~~--~--~---
Re: prototype
Might be worth checking this link out http://www.jamesfairhurst.co.uk/posts/view/compressing_jquery_javascript_with_php/ 2009/8/31 Dr. Loboto > > Or place prototype and scriptaculous back into header and deal with > load time by cache or do not use ajax helper and write your own > javascript code that can live in such conditions. > > On Aug 31, 8:00 pm, persianshadow wrote: > > hi > > > > i using prototype and scriptaculous in my project but these frameworks > > are heavy size and > > > > final pages load very slow , i searching for find solution for this > > problem , i want put these > > > > framework in bottom of my layout (near close body tag) but after this > > work , ajax method and > > > > scriptaculous effects don't work. > > > > anybody have idea for solve this ? > > > > thanks :) > > > --~--~-~--~~~---~--~~ 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 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?hl=en -~--~~~~--~~--~--~---
Re: Passing data from the view to the controller
I'd rather it werent possible for some random "jackass" to post comments to ANY published/unpublished post :p Regardless of how far down the list, it is still a concern! 2009/8/28 brian > > Look into the Security component. However, I have to ask: so what? If > a user is determined to be a jackass, this is one of the least things > I'd be concerned about. > > On Thu, Aug 27, 2009 at 1:18 PM, Robert Popplewell > wrote: > > > > I am trying to add a comments area to a simple blog application and I > > would like to pass the id of a specific blog post to the comments > > controller. > > > > The only example I can find involves setting a hidden form field and > > passing it via the form data... > > > > echo $form->hidden('Comment.post_id', array('value' => $post['Post'] > > ['id'])); > > > > Is there any other way to pass the contents of $post['Post']['id'] to > > the comments controller? > > > > The reason I am concerned about this method is (correct me if i'm > > wrong) it is possible to manipulate the client side of html forms - > > such as the post id to be passed via html form data therefore a user > > could tell their browser to add a comment to ANY post id. > > > > > > > > > > > --~--~-~--~~~---~--~~ 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 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?hl=en -~--~~~~--~~--~--~---
Passing data from the view to the controller
I am trying to add a comments area to a simple blog application and I would like to pass the id of a specific blog post to the comments controller. The only example I can find involves setting a hidden form field and passing it via the form data... echo $form->hidden('Comment.post_id', array('value' => $post['Post'] ['id'])); Is there any other way to pass the contents of $post['Post']['id'] to the comments controller? The reason I am concerned about this method is (correct me if i'm wrong) it is possible to manipulate the client side of html forms - such as the post id to be passed via html form data therefore a user could tell their browser to add a comment to ANY post id. --~--~-~--~~~---~--~~ 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 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?hl=en -~--~~~~--~~--~--~---