Routing Problem with CakePHP 2 in subdirectory without mod_rewrite
Taking a plain CakePHP 2.0.5 (or minor) and installing it in a subdirectory without mod_rewrite (removing the 3 .htaccess and uncommenting "Configure::write('App.baseUrl', env('SCRIPT_NAME'));" in core.php) brings up the following problem: Loading the root page like this: http://servername/some/subdir/ shows the error "SomeController could not be found." whereas loading the root page like this: http://servername/some/subdir/index.php works Might this be an Apache configuration issue? With CakePHP 1.3 I hadn't that problem on the same machine. Thanks, Stefan -- 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: Lightbox form CakePHP 2.0
Hi Florin. I read through your question again. I would go for this: - create a controller function that returns all countries as json - when the lightbox is closed, call that controller function by ajax and populate the country select values with the countries it's mostly javascript 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: Lightbox form CakePHP 2.0
In case you wonder abput how to clse the lightbox, after the form is processed successfully, this is how i implemented it: in any ajax-popup-controller controller action: if ($form_processed_sucessfully) { $this->render(null, 'ajax', '/ajax_refresh'); } views/ajax_refresh.ctp: document.location.replace(document.location.href); -- 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 2.0.3 out of the oven
Many Thanks to the core team. You guys are fantasic! I love CakePHP -- 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: Cakefest videos
Thanks Larry, It's great to get the chance to see you guys from Germany too. Stefan -- 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: can't send gmail by using Email component
gmail requires some security stuff, that the default cakePHP email component does not support. I'm successfully using swiftmailer and the SwiftMailer Component by Gediminas Morkevicius to send mails via GMail. On 21 Sep., 17:18, pang wrote: > I follow the configuration in the cakhphp > tutorialhttp://book.cakephp.org/view/1290/Sending-A-Message-Using-SMTP, > to set smtp options like follows: > > /* SMTP Options */ > $this->Email->smtpOptions = array( > 'port'=>'465', > 'timeout'=>'30', > 'host' => 'ssl://smtp.gmail.com', > 'username'=>'your_usern...@gmail.com', > 'password'=>'your_gmail_password', > ); > > I also try to change port number to 587, it still doesn't work, what > else should I do? 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
how to log php errors with debug = 0
When having a php fatal error (i.e. call to not existing function) and debug set to 0, i get a blank page and don't see any log entry in my server log files. It happens in both versions 1.2 and 1.3. Do you experience the same problems? Any ideas how to enable logging and redirect to an error page? 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: UML
I like http://creately.com On 31 Dez. 2009, 19:30, Josh wrote: > thanks > > On Dec 31, 12:17 am, Abdul Rahman Riza > wrote: > > > try Umbrello > > > 2009/12/31 Josh > > > > Does anybody have a recommendation for a good UML tool? Do many of you > > > make UML diagrams of your more complex web apps? > > > > Check out the new CakePHP Questions sitehttp://cakeqs.organdhelp 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 > > om>For 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
Re: Intergrate cakephp with just static html pages
Does anybody know what to do, if the static html page should be the hompage of the site? There usually is by far the most traffic, so it would be great to have a static html (which could be generated as well) that the webserver could send without having to initialize the cakephp framework. I guess ther needs to be som rewriterule ... ? Cheerio, Stefan On 29 Sep., 02:00, brian wrote: > On Mon, Sep 28, 2009 at 10:56 AM, dong.l...@gmail.com > > > > wrote: > > > Dear all, > > > I have existed html files for one website, I would like to intergrate > > them withcakephpto add some dynamic methods. At the same time, I > > want to keep all the oldstaticpages to save time. When I put html > > pages in the root folder, it still handle bycakephp. I know it > > because the .htaccess file will look for index.php file in the webroot > > folder first. > > > So how can I change the .htaccess file to make it work. I want it can > > look for .html files first, if no html files, then it looks for > > index.php. > > > Below is oringal .htaccess file > > > > > RewriteEngine on > > RewriteRule ^$ app/webroot/ > > RewriteRule (.*) app/webroot/$1 [L] > > > > There's no need to change any of the .htaccess files. Put your HTML > files in app/webroot. The .htaccess file in that directory will only > pass the request to Cake if the file or directory does not exist > there. Note the 2 RewriteCond lines: > > > RewriteEngine On > RewriteCond %{REQUEST_FILENAME} !-d > RewriteCond %{REQUEST_FILENAME} !-f > RewriteRule ^(.*)$ index.php?url=$1 [QSA,L] > --~--~-~--~~~---~--~~ 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: Poll: what do you hate about CakePHP?
what a brave topic - i like it, nate! On May 8, 2:56 pm, "Dennis S. Hennen" wrote: > Consider Post hasMany Comment > > Comment->find('all') returns {n}.Comment.* > > Post->find('all') gives you Comment.{n}.* > > If I want a helper to do processing on a list of comments, I have to > handle both potential formats, or massage the data. - This on is an issue for me as well. - i have no problem with php4 support but as well didn't need it so far - i would wish more extensive ajax-js-clientside-mvc support (but is probalby a js-framework issue) - man, i have to think hard, it's just great :-) and I'm sure, you will come up with great features! --~--~-~--~~~---~--~~ 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: What you people use: Browser based automated tests or Cake's Inbuilt lib?
nice, 1st time i see selenium. makes a good first impression. by now we use imacros for browser based testing and are very satisfied. On Nov 28, 6:17 am, mark_story <[EMAIL PROTECTED]> wrote: > I think selenium and the built in test suite have different goals in > some respects. Outside of CakeWebTestCase there is very little > support for browser-esque testing. The focus of the core test suite > is on functional and unit testing of objects and not on web testing. > I think you almost need to use both selenium and a unit test suite to > get full end to end test coverage. > > Sure WebTestCase can do many of the things Selenium does, but I feel > that Selenium is a better and easier to use tool for web testing. > > -Mark > > On Nov 27, 5:35 am, Abhimanyu Grover <[EMAIL PROTECTED]> wrote: > > > Hey Bakers, > > > From quite a few days, Selenium IDE is seducing me as its a huge time > > saver in writing tests. Earlier I was using CakeWebTestCase which > > fulfilled our team's needs easily. Now I'm stuck in dilemma whether we > > should use Cake's Inbuilt CakeWebTestCase or Selenium as PHPUnit > > extension. > > > In case if we choose Selenium, we'll have to integrate it with Cake as > > well, and I'm still very much new to automated testing, I'm not > > willing to spend time writing the integration as of now. > > > Please suggest, from your experiences, what works best for you guys > > and what you suggest.. > > > Thanks a lot for reading. > > > Regards, > > Abhimanyu Grover --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
new CakePHP baby born: www.cooreea.com
Hello awesome CakePHP Community! Thank you a lot for helping me out with questions in the last 8 months when I was working on my own web project and first CakePHP project: It's a peer-to-peer transport network, that helps people come together who want to send stuff and people who want to get some of their fuel money back while travelling: www.cooreea.com We appreciate any comments about the site as we just launched and need feedback, feedback, feedback. And most thanks to the core team for keep on developing, we use 1.2 RC 3 which really rocks! My web development code quality improved soo much since I used CakePHP :-) You guys are great! stefanski --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: CakePHP 1.2 RC3 - Problem with alphaNumeric validation
Hey James. I had the problem with alphanumeric never validated on a production server. I found out that cake's alphaNumeric validation uses the /u regex parameter which has a bug in PHP 5.1.6: http://bugs.php.net/bug.php?id=42298 So I wrote my own alphaNumeric: app_model.php: / * validate alphanumeric for php compatibility sanity */ function myAlphaNumeric($data) { $val = array_shift(array_values($data)); if (ereg('[^A-Za-z0-9]', $val)) { return false; } else { return true; } } --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Sanitize problem with writing negative numbers into db
Hi folks, I want to clean up user input before saving into the database, but when I Sanitize::clean($this->data) it changes negative integer values like -10 into -10 and I get a database (Postgres) error because - obviously - it's not an integer anymore. I want to avoid manually cleaning avery text field and wonder, what other people - like you! - do ?? --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: admin routing in rc3
I have no trouble using the default routing: Configure::write('Routing.admin', 'admin'); On Oct 6, 9:47 am, . <[EMAIL PROTECTED]> wrote: > i just upgraded to rc3 (from rc2), why does the admin routing break? i have > a :1 at the end of the urls... --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
frontend texts spread around the application layers
Fellows of the cake ring, I come to the point where I thought about having common notification texts in a more central position in my application. Right now its pretty mixed like: - validation messages in the models - notifications in the session-flash, which are set in the controller - and a whole lot of other common texts in my textHelper in several arrays I thought, having them all in the View layer makes more sense, how do you guys do that? Use text keys for validation texts and write my own helper to display them? But how to solve the session flash issue? Thanks and keep up the good cake spirit :-) Stefanski --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: keeping model cache might improve performace
OK, nice! Now my performance improved a lot using these lines: Cache::config('_cake_model_', array('engine' => 'File', 'duration' => 3600)); Cache::config('_cake_core_', array('engine' => 'File', 'duration' => 3600)); in app/config/core.php Thanks a lot, Gwoo! :-) -- PS: Setting the default cache config duration, didn't affect the cache rebuilding: Cache::config('default', array('engine' => 'File', 'duration'=> 3600)); On 18 Aug., 20:17, Gwoo <[EMAIL PROTECTED]> wrote: > @stefanski > You did not define all the required settings so the config was not > created. Specifically, you must specify an "engine" --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: keeping model cache might improve performace
Thanks for your answers. I played around with the duration option - Cache::config('_cake_core_', array('duration' => 1000) and Cache::config('_cake_model_', array('duration' => 1000) but it had no effect, the model cache seems to be rebuild every 10 seconds, which I found out in cake/libs/model/datasources/datasource.php, line 389 : $expires = "+10 seconds"; After changing that to $expires = "+1 day" my app is a lot faster now for local development :-) if anybody knows how to set that in the config/core.php, I'd be happy to know ! On Aug 17, 6:50 pm, Gwoo <[EMAIL PROTECTED]> wrote: > Or you could set Cache::config('_cake_core_') in core.php to your own > settings. --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Help me to merge wamp with cakephp
Make sure, to turn mod_rewrite on and in the /.htaccess and /app/ webroot/.htaccess set: RewriteBase /absolute/wwwpath/to/project/ On Jun 9, 1:21 am, pradeep S <[EMAIL PROTECTED]> wrote: > Hello, > i am brand new to cakephp.. i was working wamp server to > handle my > php projects.. now i am insisted to change to cake by my project > providers. > I tried configuring it.. donno where to start with.. > i have downloaded cake_1.2.0.6311-beta. Extracted to the existing web > root > folder www name as cake.. > changed the database.php for database settings.. > changed the value for security salt.. > Every error that showed on the webroot index was cleared but still i > could > start with my new project > Plz some one let me know how to configure the wamp for cakephp.. > Thanks in advance!!! --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: What is the best Image Upload / Thumbnail package for CakePHP?
here is my file & image upload behaviour based on the code of iamkoa labs: http://bin.cakephp.org/saved/33249 On 7 Jun., 04:04, "Dardo Sordi Bogado" <[EMAIL PROTECTED]> wrote: > > AD7six upload behavior is the best tool thast you will find for this. > > Totally agree with Martin! Thanks AD7six for sharing this gem. > > Regards, > Dardo Sordi. --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: What is the best Image Upload / Thumbnail package for CakePHP?
For a more general aproach regarding different requirements, I think it makes more sense to split the tasks. For uploading i use this http://labs.iamkoa.net/2007/10/23/image-upload-component-cakephp/ which i modified to a behaviour because I see it more on the model- side (happy to share code if wanted). And for Thumbnails I love the http://bakery.cakephp.org/articles/view/image-resize-helper because it offers great flexibilty with dynamic thumbnails and caching. --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Mailqueue handling .. or instantiating a component from a model
I'm writing messages into my db's messages-table from different controllers throughout my app using various functions of my Message model. Depending on the user's notification settings, these messages should be sent by email to the user as well and therefore written to a mailqueue-table. I think the Message-model's afterSave() callback function would be a good place to do that. Now the question: Because I want a nicely rendered email, I want to use Cake's Email Component but I cannot figure out how to use that from the model. Regarding application layers this is maybe not the rights place, but i want to avoid rendering the email in all the controllers, when the email might be not even be needed at all. So would it make sense, to instantiate the component from the Model and if yes how to do that ... and if no, how is the better setup? --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: SWFUpload and CakePHP 1.2
> On Thu, Mar 6, 2008 at 6:11 AM, keerthi <[EMAIL PROTECTED]> wrote: > > Does nobody know how to use a search engine any more? C'mon people, > do some research before asking. Or at least lie and say that you did. > > I found this in under 5 seconds using Google and the phrase 'swfupload > cakephp 1.2' > > http://www.pagebakers.nl/2006/12/19/swfupload-part-ii/ > Hmmm, the link given above by Chris looks like cake1.1 - all I can find (I serached for 3 minutes at least!) was about cake 1.2 and the session problem whith swfupload. If anybody would post the migrated version of the swfupload component - would be great. --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---