Re: CakePHP future
I agree with you mark, Allot of companies are still on older php versions, the CentOS/RedHat repositories are still on 5.1.6 if I remember correctly. And I can't see them changing that any time soon. PHP 5.3 features in the framework is all good, but by doing it it will cause the framework not to work on some shared hostings anymore. And especially for companies, they don't 'just' upgrade. I want to use the 5.3 myself for my personal sites, because I like some of the new features(and gc). Personally I think it's a shame that again another framework is being made. If everyone could work together on one, that would be so much more beneficial. Although I understand that each developer has his/her own idea's on what should be done. For that reason ppl don't always get along/see eye to eye. That being said, the idea is good, php5.3 has some nice new features that could speed up/expand the core functionality, but for now, it's to soon On Sep 9, 5:20 am, mark_story mark.st...@gmail.com wrote: The standards you are referring to are most likely the PSR guidelines, and we are looking into ways that we can make CakePHP compatible with the ideas in the guidelines. I think the ability to combine different frameworks and libraries together is generally something that can already be done. There are a few pain points, and I hope to find the time to figure out how to make them less painful. Just because a framework isn't 5.3 only doesn't mean you can't use 5.3 features in your application code. -Mark On Sep 7, 5:53 am, j0n4s.h4rtm...@googlemail.com j0n4s.h4rtm...@googlemail.com wrote: two notes on this: a.) while this might not make me friends: Lithium may be able to pull of both: a.) a very microkernel framework that comes without much tools and with a loose frame (thus bad for newbies and bad programmers like me ;-p) and b.) a standard set of addons extensions plugins whatever: data sources/object mappers, filters, authenfication, access control, etc. Why do I say this? Rails 3 did this (Though the basis of Ruby implies different contraints, some very positive other rather negative) (More on that topic on the rails website under screencasts, Rails 3 Screencast Series, the screencasts show the decoupling of the frame- parts (read framework parts) and the great Arel :)). So I could very well imagen Lithium and Lithium+, though on the other side of the coin - if there will be no Lithium+ in the long run - I do not see it becoming much more popular than ZF though. b.) I do not like general OSS wars, they just consume time. Instead I want to ask a question: Afaik Lithium is committed to some php library standard definitions. Will Cake2 share those? And if that's the case: can you see combined use of both, parts of them and/or integration? p.s: While I do not like php 5.3s syntax, its hard to read, I do not see why to stick with 5.2 if 5.3 offers some real performance benefits. I love that most of the cake's source is easy to read and understand, great spirit. 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: passing a php variable with jquery to my controller
thx miles. the JS code is in the same view as my php stuffso it should work.. i'll give it a try when i get home. again, i have learned sth. thank you :) On 9 Sep., 01:30, Miles J mileswjohn...@gmail.com wrote: You cant pass PHP variables to an external Javascript file. If the JS was in the page, you could do: $('#my_div').load('viewproduct, {data: '?php echo $content; ? '}).fadeIn('slow'); On Sep 8, 1:19 pm, Tomfox Wiranata tomfox.wiran...@gmail.com wrote: hi, i have this jquery function $('#my_div').load('viewproduct, {data: title_content}).fadeIn('slow'); but instead of passing the JS variable title_content i want to pass a php variable? does anybody know how to do that? thank you :) 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: counterCache with deeper association level
At least tell me I'm talking rubbish because I'm going crazy over this. I thought of linking posts to forums directly in order to get post_count to work but this will get a huge set of date on a find all query. On Tue, Sep 7, 2010 at 6:37 PM, Andrei Mita andrei.m...@gmail.com wrote: Hello, I was wondering if you could use counterCache for deeper level associations. I'm not sure if I'm saying it right. Let's say we have 3 tables: forums, topics and posts. Forum hasMany Topic Topic hasMany Post I can make the topic_count field in Forum update when a new topic is added and I can also update the post_count field in Topic when a new post is added with the help of counterCache. But, can I update the field post_count in Forum with counterCache when a new post is added? Thanks, Andrei 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
$this-params['url'] doesn't work
For example, the URL is: www.example.com/locations/index If I call the command print_r ($ this- params ['url']) from main_menus controllers and function getPage (), I get the following output: Array ([url] = main_menus / getPage). This is wrong! The result should be: Array ([url] = locations / index), but it's not. Why??? 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: Web testing: How to get the ID of a created article/post/whatever?
yes, but I thought they are only available for unit testing? i couldn't find any instructions on how to use them for web testing yet. On Wed, Sep 8, 2010 at 5:41 PM, j.blotus j.blo...@gmail.com wrote: As far as I know CakePHP's web testing doesn't offer the use of fixtures, so I also can't just remove one of them to test removal of an article. wrong. see: http://book.cakephp.org/view/359/About-fixtures On Sep 8, 4:43 am, psybear83 psybea...@gmail.com wrote: Hi everybody I'm trying to create useful web tests for an application I didn't develop (I certainly would have done it in Rails, not in CakePHP ;-) ), and I'm quite frustrated with the possibilities that CakePHP's simple integration of SimpleTest offers me... What I want is to write a test that creates (let's say) an article, then displays and removes it. The problem here is that I don't know what ID a newly created article has. So I have to find ways how to overcome that. I read somewhere a solution that reads the whole page and scans for available ID's, but that seems rather clumsy to me. As far as I know CakePHP's web testing doesn't offer the use of fixtures, so I also can't just remove one of them to test removal of an article. So I got the following idea... If I could specify the ID of a newly created article, I would know it from the beginning and could remove it without any problem. But how could that be achieved? I could just offer a text input field in every form! But for every normal and *not* testing use this would be quite strange, so it would be nice if I could only display the field in testing mode. So... 1) Do you think this is a good idea? 2) Is there a way to check whether the website is rendered in testing mode? 3) Is there a better solution (maybe I'm wrong and there really *are* fixtures available in web testing?)? Thanks a lot for your thoughts and hints.. Josh 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 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
mod_rewrite doesn't seem to work (OSX 10.5)
Hi everybody I'm trying to get my clean cakephp installation to work. when opening the root directory, i'm getting the default diagnosis website (Your database configuration file is NOT present. etc.), but it doesn't have any CSS styles applied. It seems that mod_rewrite doesn't work on my computer. I'm on OSX 10.5, and I did some searching and stuff, and everything seems correct... I changed AllowOverride to All for Directory /Library/WebServer/ Documents in /etc/httpd/httpd.conf, and LoadModule rewrite_module libexec/apache2/mod_rewrite.so is uncommented, too. The only thing I'm unsure is why I'm having an apache and an apache2 installation? And which one is really active now? The rest I followed quite exactly this link: http://bakery.cakephp.org/articles/view/installing-cakephp-on-macos-x Thank you very much for help Josh 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: $this-params['url'] doesn't work
On Thu, September 9, 2010 9:51 am, zoran wrote: For example, the URL is: www.example.com/locations/index If I call the command from main_menus controllers and function getPage (), I get the following output: Array ([url] = main_menus / getPage). This is wrong! The result should be: Array ([url] = locations / index), but it's not. Why??? running print_r ($ this- params ['url']) inside main_menus / getPage will show the result you are getting. move the print_r into beforeFilter in app controller and you should see the locations/index as correct path. 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 -- Mike Karthauser Managing Director - Brightstorm Ltd Email: mi...@brightstorm.co.uk Web: http://www.brightstorm.co.uk Tel: 07939 252144 (mobile) Fax: 0870 1320560 Address: 1 Brewery Court, North Street, Bristol, BS3 1JS 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
Required fields and the form helper
I have a form that is built using the Form helper. Its data array has a nested set of models (so I have fields such as Model1.field_name, Model2.0.field_name etc). Some of the models are correctly picking up that their fields are required (as defined by using the notEmpty validation rule) and therefore producing a 'required' class on their surrounding dviv, whilst others are not. I have disabled all forms of caching during development - so it's not that. What is the golden rule to make this work consistently? 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
Project just displays empty page in browser after checkout from SVN
Hello everybody I have worked on a project on a windows machine using XAMPP. Now I checked the same project out from Subversion to a mac 10.5 machine. But when opening it in a browser, the page loads for 2-3 seconds, but nothing happens: it just stays a blank, white page. No error, nothing. I'm quite new to CakePHP, so could anybody please help debugging this, so I can get the stuff to work? A clean CakePHP installation works without a problem, by the way. Thanks Josh 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: Project just displays empty page in browser after checkout from SVN
woah, it was because i hadn't created a database.php file... very strange, that it doesn't display at least some ort of an include error?! On Thu, Sep 9, 2010 at 11:53 AM, psybear83 psybea...@gmail.com wrote: Hello everybody I have worked on a project on a windows machine using XAMPP. Now I checked the same project out from Subversion to a mac 10.5 machine. But when opening it in a browser, the page loads for 2-3 seconds, but nothing happens: it just stays a blank, white page. No error, nothing. I'm quite new to CakePHP, so could anybody please help debugging this, so I can get the stuff to work? A clean CakePHP installation works without a problem, by the way. Thanks Josh 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 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: Project just displays empty page in browser after checkout from SVN
I believe it depends on the debug value in your config file. If you migrated a production app, the debug has to be set to 0. On Thu, Sep 9, 2010 at 12:59 PM, Joshua Muheim psybea...@gmail.com wrote: woah, it was because i hadn't created a database.php file... very strange, that it doesn't display at least some ort of an include error?! On Thu, Sep 9, 2010 at 11:53 AM, psybear83 psybea...@gmail.com wrote: Hello everybody I have worked on a project on a windows machine using XAMPP. Now I checked the same project out from Subversion to a mac 10.5 machine. But when opening it in a browser, the page loads for 2-3 seconds, but nothing happens: it just stays a blank, white page. No error, nothing. I'm quite new to CakePHP, so could anybody please help debugging this, so I can get the stuff to work? A clean CakePHP installation works without a problem, by the way. Thanks Josh 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.comcake-php%2bunsubscr...@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.comcake-php%2bunsubscr...@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
Re: Project just displays empty page in browser after checkout from SVN
Thanks, it's much better now already. But I always get the error Error: The requested address '/users/login' was not found on this server. when accessing a page. Interestingly when I access an invalid URL (that definitely doesn't exist) the error is Error: The requested address '/' was not found on this server. (always a / instead of the URL itself). Any idea on how to debug this? Thanks. Josh On Thu, Sep 9, 2010 at 12:55 PM, Andrei Mita andrei.m...@gmail.com wrote: I believe it depends on the debug value in your config file. If you migrated a production app, the debug has to be set to 0. On Thu, Sep 9, 2010 at 12:59 PM, Joshua Muheim psybea...@gmail.com wrote: woah, it was because i hadn't created a database.php file... very strange, that it doesn't display at least some ort of an include error?! On Thu, Sep 9, 2010 at 11:53 AM, psybear83 psybea...@gmail.com wrote: Hello everybody I have worked on a project on a windows machine using XAMPP. Now I checked the same project out from Subversion to a mac 10.5 machine. But when opening it in a browser, the page loads for 2-3 seconds, but nothing happens: it just stays a blank, white page. No error, nothing. I'm quite new to CakePHP, so could anybody please help debugging this, so I can get the stuff to work? A clean CakePHP installation works without a problem, by the way. Thanks Josh 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 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 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 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: mod_rewrite doesn't seem to work (OSX 10.5)
If you're on OSX have you made sure you actually copied over the htaccess files? OSX hides files with filenames starting with a dot (.) d. On Sep 9, 10:25 am, psybear83 psybea...@gmail.com wrote: Hi everybody I'm trying to get my clean cakephp installation to work. when opening the root directory, i'm getting the default diagnosis website (Your database configuration file is NOT present. etc.), but it doesn't have any CSS styles applied. It seems that mod_rewrite doesn't work on my computer. I'm on OSX 10.5, and I did some searching and stuff, and everything seems correct... I changed AllowOverride to All for Directory /Library/WebServer/ Documents in /etc/httpd/httpd.conf, and LoadModule rewrite_module libexec/apache2/mod_rewrite.so is uncommented, too. The only thing I'm unsure is why I'm having an apache and an apache2 installation? And which one is really active now? The rest I followed quite exactly this link:http://bakery.cakephp.org/articles/view/installing-cakephp-on-macos-x Thank you very much for help Josh 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: Project just displays empty page in browser after checkout from SVN
Go to /app/config In core.php you should have Configure::write('debug', 2); This will give you a very detailed explanation on what's wrong with your controller/model/view. On Thu, Sep 9, 2010 at 1:58 PM, Joshua Muheim psybea...@gmail.com wrote: Thanks, it's much better now already. But I always get the error Error: The requested address '/users/login' was not found on this server. when accessing a page. Interestingly when I access an invalid URL (that definitely doesn't exist) the error is Error: The requested address '/' was not found on this server. (always a / instead of the URL itself). Any idea on how to debug this? Thanks. Josh On Thu, Sep 9, 2010 at 12:55 PM, Andrei Mita andrei.m...@gmail.com wrote: I believe it depends on the debug value in your config file. If you migrated a production app, the debug has to be set to 0. On Thu, Sep 9, 2010 at 12:59 PM, Joshua Muheim psybea...@gmail.com wrote: woah, it was because i hadn't created a database.php file... very strange, that it doesn't display at least some ort of an include error?! On Thu, Sep 9, 2010 at 11:53 AM, psybear83 psybea...@gmail.com wrote: Hello everybody I have worked on a project on a windows machine using XAMPP. Now I checked the same project out from Subversion to a mac 10.5 machine. But when opening it in a browser, the page loads for 2-3 seconds, but nothing happens: it just stays a blank, white page. No error, nothing. I'm quite new to CakePHP, so could anybody please help debugging this, so I can get the stuff to work? A clean CakePHP installation works without a problem, by the way. Thanks Josh 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.comcake-php%2bunsubscr...@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.comcake-php%2bunsubscr...@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.comcake-php%2bunsubscr...@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.comcake-php%2bunsubscr...@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
Re: Core validations always produce the same error msg (cannot be left blank)
OK, thank you. On Wed, Sep 8, 2010 at 7:14 PM, Miles J mileswjohn...@gmail.com wrote: This isn't RoR :P Furthermore, the Validation class does not define any error messages. The error message you receive is a fallback for you not defining them yourself. http://github.com/cakephp/cakephp/blob/master/cake/libs/model/model.php#L2531 On Sep 8, 8:42 am, j.blotus j.blo...@gmail.com wrote: please post your $validate array and we can tell you exactly why you are wrong On Sep 8, 3:15 am, Joshua Muheim psybea...@gmail.com wrote: Really?? This sounds veeery odd to me. Ruby on Rails produces meaningful error messages for every core validation rule, and I don't see any reason why CakePHP shouldn't do this? And this also doesn't answer why the blank rule (the only one which would fit the above mentioned error message) doesn't work... Anyway, thanks for your reply. :-) On Tue, Sep 7, 2010 at 9:02 PM, Miles J mileswjohn...@gmail.com wrote: Those are the only errors you will ever receive. If you want custom error messages, you will need to manually overwrite them. http://book.cakephp.org/view/1143/Data-Validation On Sep 7, 7:09 am, psybear83 psybea...@gmail.com wrote: Hi everybody My core validation rules always produce the same error message, that is This field cannot be left blank Regardless of whether I use decimal or email, the validation itself works, but the error message is the wrong one. And guess what? blank seems to be the only rule that doesn't even work! Very strange, don't you think? Any idea on what's wrong here? Thanks a lot, Josh 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 For 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.com 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: mod_rewrite doesn't seem to work (OSX 10.5)
I got it running; it's been the problem that I didn't have the cake folder in the root of my webserver... according to this article (http://bakery.cakephp.org/articles/view/installing-cakephp-on-macos-x) this is required. strange, though, because on windows/xampp this wasn't an issue. On Thu, Sep 9, 2010 at 1:03 PM, designv...@gmail.com designv...@gmail.com wrote: If you're on OSX have you made sure you actually copied over the htaccess files? OSX hides files with filenames starting with a dot (.) d. On Sep 9, 10:25 am, psybear83 psybea...@gmail.com wrote: Hi everybody I'm trying to get my clean cakephp installation to work. when opening the root directory, i'm getting the default diagnosis website (Your database configuration file is NOT present. etc.), but it doesn't have any CSS styles applied. It seems that mod_rewrite doesn't work on my computer. I'm on OSX 10.5, and I did some searching and stuff, and everything seems correct... I changed AllowOverride to All for Directory /Library/WebServer/ Documents in /etc/httpd/httpd.conf, and LoadModule rewrite_module libexec/apache2/mod_rewrite.so is uncommented, too. The only thing I'm unsure is why I'm having an apache and an apache2 installation? And which one is really active now? The rest I followed quite exactly this link:http://bakery.cakephp.org/articles/view/installing-cakephp-on-macos-x Thank you very much for help Josh 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 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: Project just displays empty page in browser after checkout from SVN
oh thank you, this is really a great hint. i figured out what's the problem: cakephp can't connect to mysql! but why does it present me the error message Error: Database table acos for model Aco was not found. instead of something like can't connect to the db?! looks damn unpretty to me... :-/ On Thu, Sep 9, 2010 at 1:04 PM, Andrei Mita andrei.m...@gmail.com wrote: Go to /app/config In core.php you should have Configure::write('debug', 2); This will give you a very detailed explanation on what's wrong with your controller/model/view. On Thu, Sep 9, 2010 at 1:58 PM, Joshua Muheim psybea...@gmail.com wrote: Thanks, it's much better now already. But I always get the error Error: The requested address '/users/login' was not found on this server. when accessing a page. Interestingly when I access an invalid URL (that definitely doesn't exist) the error is Error: The requested address '/' was not found on this server. (always a / instead of the URL itself). Any idea on how to debug this? Thanks. Josh On Thu, Sep 9, 2010 at 12:55 PM, Andrei Mita andrei.m...@gmail.com wrote: I believe it depends on the debug value in your config file. If you migrated a production app, the debug has to be set to 0. On Thu, Sep 9, 2010 at 12:59 PM, Joshua Muheim psybea...@gmail.com wrote: woah, it was because i hadn't created a database.php file... very strange, that it doesn't display at least some ort of an include error?! On Thu, Sep 9, 2010 at 11:53 AM, psybear83 psybea...@gmail.com wrote: Hello everybody I have worked on a project on a windows machine using XAMPP. Now I checked the same project out from Subversion to a mac 10.5 machine. But when opening it in a browser, the page loads for 2-3 seconds, but nothing happens: it just stays a blank, white page. No error, nothing. I'm quite new to CakePHP, so could anybody please help debugging this, so I can get the stuff to work? A clean CakePHP installation works without a problem, by the way. Thanks Josh 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 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 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 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 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 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: $this-params['url'] doesn't work
Value of field Array ([url] = locations / index) should be within the main_menus_controller.php, but it's failure. Otherwise, with these I have not had a problem with CakePHP 1.1 version. Now I use the 1.3 version. On Sep 9, 11:42 am, Mike Karthauser mi...@brightstorm.co.uk wrote: On Thu, September 9, 2010 9:51 am, zoran wrote: For example, the URL is:www.example.com/locations/index If I call the command from main_menus controllers and function getPage (), I get the following output: Array ([url] = main_menus / getPage). This is wrong! The result should be: Array ([url] = locations / index), but it's not. Why??? running print_r ($ this- params ['url']) inside main_menus / getPage will show the result you are getting. move the print_r into beforeFilter in app controller and you should see the locations/index as correct path. 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.com For more options, visit this group athttp://groups.google.com/group/cake-php?hl=en -- Mike Karthauser Managing Director - Brightstorm Ltd Email: mi...@brightstorm.co.uk Web:http://www.brightstorm.co.uk Tel: 07939 252144 (mobile) Fax: 0870 1320560 Address: 1 Brewery Court, North Street, Bristol, BS3 1JS 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
Cake can't connect to DB but only shows an error that there's missing a table!
Hi everybody I have overtaken a CakePHP application that I have to optimize now. I have installed it on my computer, but I could't get it to run properly yet. It tells me that Database table acos for model Aco was not found., but the real problem is, that it can't connect to the DB! Somehow it doesn't complain about that, but as soon as there's a table needed, it notices that there isn't any. I guess this is quite unclean, IMHO it should complain that it can't connect to the DB. Is this normal? Thanks for help Josh 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
ajax helper for updating a div
hi, again, ajax is driving me nuts. shocker! :) I have a certain DIV that echoes data from a table. with each data row comes an ajax link to delete it. when a user clicks that link, a delete() function in my controller deletes that certain data and this DIV is supposed to update. I found some code for orientation, but it wont work. the View render_attachment.ctp echoes the data from my table and has the ajax link: ?php echo $javascript-link('prototype'); echo $javascript-link('scriptaculous'); ? ?php foreach ($attachments as $attachment): echo $attachment['LinkTmp']['name']; echo $ajax-link('x', array('controller' = 'linkables', 'action' = 'deleteattachment'), array('update' = 'attachment_div')); ? ?php endforeach; ? div id=attachment_div/div the render_attachment.ctp View is called after a file-upload-process to show the user what files he uploaded: function __renderattachment() { $this-set('attachments', $this-Link-LinkTmp-find('all', array('conditions' = array('LinkTmp.ed =' = $this - Session - read('Link.eyed'), 'LinkTmp.attachment' = '1'; $this-render('render_attachment','ajax'); } Now with the ajax link I try to call the deleteattachment() fnction in my controller, that acutally deletes that data from the table: function deleteattachment($name) { $this-Link-LinkTmp-deleteAll(array('LinkTmp.eyed' = $this - Session - read('Link.eyed'), 'LinkTmp.name' = $name)); } so, how do I a) tell cake to render my view render_attachment.ctp in the DIV that i defined in the link, after i called deleteattachment() ? b) how can i pass variables to deleteattachment() with my ajax link? echo $ajax-link('x', array('controller' = 'linkables', 'action' = 'deleteattachment'), array('update' = 'attachment_div')); thx :) 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 use paginate for sorting by two columns
I want to set Order By clause to sort two columns with same direction. How to implement it using paginator. I have tested by setting paginate['order'] but I also want the columns and direction in passedArgs. 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: Cake can't connect to DB but only shows an error that there's missing a table!
OK, at least I now found out what was the problem for CakePHP not being able to connect to MySQL: more coincidentally I found the following link: http://soledadpenades.com/2006/08/06/wrong-location-of-mysqlsock/ that states that CakePHP looks in /var/mysql/mysql.sock for the mysql socket, and that normally this one is in /tmp/mysql.sock. So I created a soft link, and now it works. But I am very disappointed with the error messages in CakePHP... On Thu, Sep 9, 2010 at 2:00 PM, psybear83 psybea...@gmail.com wrote: Hi everybody I have overtaken a CakePHP application that I have to optimize now. I have installed it on my computer, but I could't get it to run properly yet. It tells me that Database table acos for model Aco was not found., but the real problem is, that it can't connect to the DB! Somehow it doesn't complain about that, but as soon as there's a table needed, it notices that there isn't any. I guess this is quite unclean, IMHO it should complain that it can't connect to the DB. Is this normal? Thanks for help Josh 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 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
Set images to the sorted column
Hello everybody, I want to know how to set images only for the column specified in passedArgs['sort'] parameter. I have got the solution which set the images on all columns according to their respective direction but I want to set it according to the passedArgs['sort'] parameter. Thanks in advance 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: Set images to the sorted column
Hi, You check on your view like this div ?php if($paginator-sortKey()=='Model.fieldName'){? ?php if($paginator-sortDir()=='asc'){? ?php echo $html-image('up.jpg',array(javascript:void(0);,'style'='float:left;'))? ?php }else if($paginator-sortDir()=='desc'){? ?php echo $html-image('down.jpg',array(javascript:void(0);,'style'='float:left;'))? ?php }? ?php }? /div Enjoy: Amit 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: ajax helper for updating a div
Hi, 1. place $this-render('your ajax view'); into controller deleteattachment() function 2. you can add your variables to url will look like array('controller' = 'linkables', 'action' = 'deleteattachment', param1,param2 and it will be available in the controller as $this-params. try to pr($this); to see all available data; On Sep 9, 3:01 pm, Tomfox Wiranata tomfox.wiran...@gmail.com wrote: hi, again, ajax is driving me nuts. shocker! :) I have a certain DIV that echoes data from a table. with each data row comes an ajax link to delete it. when a user clicks that link, a delete() function in my controller deletes that certain data and this DIV is supposed to update. I found some code for orientation, but it wont work. the View render_attachment.ctp echoes the data from my table and has the ajax link: ?php echo $javascript-link('prototype'); echo $javascript-link('scriptaculous'); ? ?php foreach ($attachments as $attachment): echo $attachment['LinkTmp']['name']; echo $ajax-link('x', array('controller' = 'linkables', 'action' = 'deleteattachment'), array('update' = 'attachment_div')); ? ?php endforeach; ? div id=attachment_div/div the render_attachment.ctp View is called after a file-upload-process to show the user what files he uploaded: function __renderattachment() { $this-set('attachments', $this-Link-LinkTmp-find('all', array('conditions' = array('LinkTmp.ed =' = $this - Session - read('Link.eyed'), 'LinkTmp.attachment' = '1'; $this-render('render_attachment','ajax'); } Now with the ajax link I try to call the deleteattachment() fnction in my controller, that acutally deletes that data from the table: function deleteattachment($name) { $this-Link-LinkTmp-deleteAll(array('LinkTmp.eyed' = $this - Session - read('Link.eyed'), 'LinkTmp.name' = $name)); } so, how do I a) tell cake to render my view render_attachment.ctp in the DIV that i defined in the link, after i called deleteattachment() ? b) how can i pass variables to deleteattachment() with my ajax link? echo $ajax-link('x', array('controller' = 'linkables', 'action' = 'deleteattachment'), array('update' = 'attachment_div')); thx :) 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
tokenize remove call
I try to explain better. I have a remove link inside my view, something like: h_ttp://myweb.com/collections/remove/12 This will remove element with id 12, and it works perfectly. If a user call this element coping and pasting it inside a browser URL field this works too, but I want that this call happen ONLY if action is fired by a link clicking. How can 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
Re: ajax helper for updating a div
thx Dmitry...i tried to implement sth, based on your proposal ok for testing purpose i created an ajax view called neat ?php echo if you see this, ajax works; ? and this is my ajax link in a view called render_attachment echo $ajax-link('x', array('controller' = 'links', 'action' = 'test'), array('update' = 'divi')); echo $ajax-div('divi'); echo $ajax-divEnd('divi'); now the test() fct in my controller looks like this function test() { $this-render('neat', 'ajax'); } but nothing happens...no if you see this, ajax works text appears from the view i tried to render with ajax.. any idea whats going wrong here? thank you :) 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: tokenize remove call
I've thinked (inside the view): 1) grab the server's date/time 2) md5 it and save in $token 3) store $token in a session variable send the token to remove function through with parameter of ajax call: echo $ajax-link('Remove', array( 'controller' = 'collections', 'action' = 'remove', $id ), array( 'update' = 'ajaxContent', 'with' = '{ token: '.$token.' }' ) ); CONTROLLER: Then inside remove() function: 1) Grab the token passed through with 2) Grab the token store in session variable 3) if two tokens are equals perform real action 4) remove token stored in session On 9 Set, 15:00, Mariano C. mariano.calan...@gmail.com wrote: I try to explain better. I have a remove link inside my view, something like: h_ttp://myweb.com/collections/remove/12 This will remove element with id 12, and it works perfectly. If a user call this element coping and pasting it inside a browser URL field this works too, but I want that this call happen ONLY if action is fired by a link clicking. How can 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
CakePHP Session on MAMP
I encounter a weird problem where I tried to search around and doesn't find the answer. Hope someone could help me over here. My problem: I set a session by calling $this-Session-write('Suppliers', $suppliers); my controller. However when I do $this-Session- read('Suppliers'); at another page, i got no data return. i tried with $this-Session-check('Suppliers');, it return false. The weird things is, this only happen in MAMP on mac. Same code i tried at WAMP, it works fine. I even upload the code to free hosting (00webhost) it work fine also. Can someone please help. Thanks. 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
cakephp folder copy wont work
hi, i am using cakes api folder to copy folders...this is my code function __copyFolder($name) { $from = ../link/tmp/.$name./; $to = ../link/.$name./; if(!copy($from, $to)) { echo error; }else{ echo copied; } } i get the errror failed to open stream. no such file or directory... i checked..there is a folder in that path...so i guess i declared sth wrong here appreciate your help :) 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: cakephp folder copy wont work
i just saw the parameter need to be an array Folder::copy( $options = array() ) Parameters: array $options (to, from, chmod, skip) how would the code lool like? thx 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: cakephp folder copy wont work
//initialize folder $this-Folder = new Folder(); //assign result of copy operation to variable (optional, but it's nice to check if operation was a success) $copied = $this-Folder-copy(array('to' = '/to/path/', 'from' = '/ from/path/, 'chmod' = '755')); //check the operation if ($copied) { //copied ok } else { //copy failed } On Sep 9, 11:21 am, Tomfox Wiranata tomfox.wiran...@gmail.com wrote: i just saw the parameter need to be an array Folder::copy ( $ options = array() ) Parameters: array $options (to, from, chmod, skip) how would the code lool like? thx 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
maintaining page information between ajax requests
hello, in my application i am using ajax for loading contents in homepage,about us,contact us..now when i refresh the page it shows the last requested page ie the home page but not the page loaded by ajax.. for example, ajax request 1: home page ajax request 2: about us page ajax request 3: contact page ajax request 4: portfolio page when i refresh the page, the home page is gets loaded but not the last requested content through ajax... i know that ajax only delivers content but not the page.. what should i take care when this situations happens... thank you 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: maintaining page information between ajax requests
You can do many things. Perhaps save the last loaded page in the session, and use that page anytime the browser is refreshed. If the session is empty, default to the homepage. On Sep 9, 9:33 am, Muthuvel Subramani jmsmuthu...@gmail.com wrote: hello, in my application i am using ajax for loading contents in homepage,about us,contact us..now when i refresh the page it shows the last requested page ie the home page but not the page loaded by ajax.. for example, ajax request 1: home page ajax request 2: about us page ajax request 3: contact page ajax request 4: portfolio page when i refresh the page, the home page is gets loaded but not the last requested content through ajax... i know that ajax only delivers content but not the page.. what should i take care when this situations happens... thank you 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: Password Protecting a Directory
Thanks for the replies guys, but neither of those solutions work. Sorry, I didn't explain myself better. This directory doesn't necessarily need to be called admin, but I had changed it to another name and that didn't fix the issue for me, so I changed it back to admin as that seemed more appropriate to me. This directory is meant to be used to run an application from, so not meant to view just single files or anything. But it needs to be password protected due to the fact that it is only meant for the administrators of the site to access. Also, the apache documentation doesn't really help as I am running this from a shared server on Dreamhost, I don't have access to changing anything in their apache configuration. On Sep 8, 6:34 am, Farah elia...@gmail.com wrote: See this documentation http://httpd.apache.org/docs/2.0/howto/auth.html On 7 set, 23:38, Arak Tai'Roth nielsen.dus...@gmail.com wrote: Can anyone help me with this problem please? On Sep 6, 11:37 pm, Arak Tai'Roth nielsen.dus...@gmail.com wrote: So, I am aware this question has been asked and answered in a variety of different ways in a variety of different places. I have already spent way too much time trying to find a solution, so I'm hoping to find a solution here by just asking myself. I am using CakePHP 1.2.5 in this case if that makes a difference. I'm hoping not, because I'm hoping to use whatever solution I get on a few different installations, all of which use different versions. Anyways, the issue is this. I have setup a directory inside /homePath/ app/webroot/, the directory is called admin, so the full path looks like /homePath/app/webroot/admin. Now getting to this directory works great. Until I password protect it using a .htaccess and .htpasswd file. After I implement the password protection, I get this error, Error: The requested address '/failed_auth.html' was not found on this server. My .htaccess file looks like this: AuthType Basic AuthUserFile /homePath/app/webroot/admin/.htpasswd AuthName Precision Laser Therapy Administrators require valid-user I am using Dreamhost and have generated this using their panel, so I am pretty positive the /homePath/ portion is correct. I have already tried the solutions onhttp://groups.google.ca/group/cake-php/browse_thread/thread/9054f372d..., andhttp://groups.google.ca/group/cake-php/browse_thread/thread/30ea77cad... I couldn't get them to work, that could be because I'm dumb and missed something that they didn't explicitly say or they just simply won't work in my case. Does someone have a solution for this issue? Assume that the only thing I have changed to a static Cake install, is the addition of the admin directory in /app/webroot, and the addition of the .htaccess and .htpasswd files inside of it. Any help is extremely appreciated. 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: cakephp folder copy wont work
i was close with my weird trials, haha... i appreaciate it j.blotus..thx On 9 Sep., 18:05, j.blotus j.blo...@gmail.com wrote: //initialize folder $this-Folder = new Folder(); //assign result of copy operation to variable (optional, but it's nice to check if operation was a success) $copied = $this-Folder-copy(array('to' = '/to/path/', 'from' = '/ from/path/, 'chmod' = '755')); //check the operation if ($copied) { //copied ok } else { //copy failed } On Sep 9, 11:21 am, Tomfox Wiranata tomfox.wiran...@gmail.com wrote: i just saw the parameter need to be an array Folder::copy ( $ options = array() ) Parameters: array $options (to, from, chmod, skip) how would the code lool like? thx 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
A cakephp powered open source social news bookmarking
Hello to everybody, i have just upload http://monkylinks.com/ its a cakephp powered open source social news bookmarking. It will great if you help me to test it loggin in and sending some news or just do some anon voting in http://monkylinks.com/links/shakeit You could see the source in http://code.google.com/p/monky/source/checkout Cheers! Any feedback will be thankfully received 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: A cakephp powered open source social news bookmarking
http://monkylinks.com/links/popular *Error: * The requested address *'/links/popular'* was not found on this server. Cheers, Mufti http://webdev5.com http://blogfreakz.com On Fri, Sep 10, 2010 at 12:54 AM, eugenioc...@hotmail.com eugenioc...@gmail.com wrote: Hello to everybody, i have just upload http://monkylinks.com/ its a cakephp powered open source social news bookmarking. It will great if you help me to test it loggin in and sending some news or just do some anon voting in http://monkylinks.com/links/shakeit You could see the source in http://code.google.com/p/monky/source/checkout Cheers! Any feedback will be thankfully received 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.comcake-php%2bunsubscr...@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
Validation translations
Hi. I have a problem with translation validation messages. seems it didn't takes from view. I have a validation rules for field, it looks like: 'looking_agegroup_to' = array( 'checkRange'=array ( 'rule' = array('range', 16, 100), 'message'= 'Please enter a number between 16 and 100', 'allowEmpty' = true ), 'checkAgeGroup' = array( 'rule' = array('_checklookingAgeGroup'), 'message'= 'Please check age in the from and to checkboxes', ) ), on my view I have displayed this field like this echo $form-input('ProfileExtend.looking_agegroup_to', array('label'= __('to:',true), 'div' = array('class' = 'shortselect2'), 'empty' = '', 'options' = $age_range, 'error' = array( 'checkRange' = __('Please enter a number between 120 and 210', true), 'checkAgeGroup' = __('Please verify data in the age fields', true) ), ) ); When error happened I see a message which is set in the validation rule, not what I set in the view. If someone knew a solution - please help me. This bug is killing me. Thanks a lot. 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: A cakephp powered open source social news bookmarking
Is it a learning project? On Thu, Sep 9, 2010 at 9:29 PM, mufti ali muftimas...@gmail.com wrote: http://monkylinks.com/links/popular *Error: * The requested address *'/links/popular'* was not found on this server. Cheers, Mufti http://webdev5.com http://blogfreakz.com On Fri, Sep 10, 2010 at 12:54 AM, eugenioc...@hotmail.com eugenioc...@gmail.com wrote: Hello to everybody, i have just upload http://monkylinks.com/ its a cakephp powered open source social news bookmarking. It will great if you help me to test it loggin in and sending some news or just do some anon voting in http://monkylinks.com/links/shakeit You could see the source in http://code.google.com/p/monky/source/checkout Cheers! Any feedback will be thankfully received 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.comcake-php%2bunsubscr...@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.comcake-php%2bunsubscr...@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
limiting auth allow('display') to just one page
I've been searching the web for an hour now trying to find out how to do this and no one seems to be talking about it. Namely, the problem is that when I set $this-Auth-allow('display') (or allowedActions or other flavors of the same thing) I get a situation where all my /pages content is available to non- authenticated users. I have a site where only the home page should be allowed. I've tried entering a complete route, array('controller' = 'pages', 'action' = 'display', 'home') to no avail. All I want is to lock down everything except the exact specific /pages content that I want to reveal. All other /pages content should be protected just like the rest of the controllers. There must be a way to do this isn't there? 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: Help with Auth Component
On Thu, Sep 9, 2010 at 12:57 AM, Chuck chivalrys...@gmail.com wrote: The only beforeFilter that I'm using is in the users_controller. I tried moving it to the app_controller but then it was't authenticating even with the correct password. Perhaps there was another problem. But some of Auth's config should be set in AppController so that, eg, it'll know where to redirect if a user tries to access a restricted controller action other than in users. The manual is not clear on that point. You can set fields, loginRedirect, and logoutRedirect in users. But loginAction should be set in AppController. I wasn't quite clear with the fact that pages/home flashes briefly. I don't see the page flash, only the URL in the address bar. OK, that makes sense. For the time being I'm removing all the auth code, but if someone can point out how to do the following, I would really appreciate it. I have a users table with an email field to be used as the ID and a password field. Eventually the system would do the following: If no user is logged in, login fields appear in the top right of the screen for pages that are viewable without being logged in. If they are viewing those pages while being logged in, they see links for account settings, etc. If a user requests a page that requires them being logged in, it redirects to the home page. That's pretty much all I want, but can't even get the login to work. I've searched for tutorials and found a few, but none have yet helped me out. Here's a really basic setup. I've put some of Auth's config in users, as you've been doing. AppController: public $components = array('Auth', 'Session'); public function beforeFilter() { parent::beforeFilter(); $this-Auth-loginAction = array( 'controller' = 'users', 'action' = 'login' ); } UsersController: public function beforeFilter() { parent::beforeFilter(); $this-Auth-fields = array( 'username' = 'email', 'password' = 'password' ); $this-Auth-loginRedirect = array( 'controller' = ..., 'action' = ... ); $this-Auth-logoutRedirect = array( 'controller' = ..., 'action' = ... ); } layout (explained below): ?php if ($this-params['action'] != 'login') echo $this-element('users/login_form'); ? views/users/login.ctp: h2login/h2 div id=login ?= $this-element('users/login_form') ? /div views/elements/users/login_form.ctp: echo $form-create('User', array('action' = 'login')); ... echo $form-end(); So, the layout includes the login form in every page, except the login page, where the form is included into the main body. If a person tries logging in--and fails--from any regular page, Auth will redirect to the login page. I'm not satisfied with the test in the layout. It really should be testing Router's URL array against Auth::loginAction. But I couldn't come up with a way to do that in the layout. So, testing the params['action'] string is a tiny cheat. 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: A cakephp powered open source social news bookmarking
Hi, the popular view hasnt been writed yet. Thanks On 9 sep, 16:06, Andrei Mita andrei.m...@gmail.com wrote: Is it a learning project? On Thu, Sep 9, 2010 at 9:29 PM, mufti ali muftimas...@gmail.com wrote: http://monkylinks.com/links/popular *Error: * The requested address *'/links/popular'* was not found on this server. Cheers, Mufti http://webdev5.com http://blogfreakz.com On Fri, Sep 10, 2010 at 12:54 AM, eugenioc...@hotmail.com eugenioc...@gmail.com wrote: Hello to everybody, i have just uploadhttp://monkylinks.com/its a cakephp powered open source social news bookmarking. It will great if you help me to test it loggin in and sending some news or just do some anon voting inhttp://monkylinks.com/links/shakeit You could see the source in http://code.google.com/p/monky/source/checkout Cheers! Any feedback will be thankfully received 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.comcake-php%2bunsubscr...@googlegroups.comFor more options, visit this group at http://groups.google.com/group/cake-php?hl=en 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.comcake-php%2bunsubscr...@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
Re: limiting auth allow('display') to just one page
On Thu, Sep 9, 2010 at 3:35 PM, cricket zijn.digi...@gmail.com wrote: Auth restricts based on actions, while what you're looking for is restriction based on request parameters. Fortunately, in your specific case, there's a simple solution: public function beforeFilter() { $this-Auth-deny('*'); if (TEST) { $this-Auth-allowedActions = array('display'); } } Where TEST has a look at $this-params to see if the requested page is the one you want to allow. I meant to add that you should consider ACL if the allowed content grows much beyond just that single 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: A cakephp powered open source social news bookmarking
Yes, i could defined as a learning project, i have take a look to the algorithms in meneame script (www.meneame.net / http://websvn.meneame.net/listing.php?repname=meneamepath=/branches/version4/ ) and rewrite them. You may use the script freely, but you cant sell it. On 9 sep, 16:06, Andrei Mita andrei.m...@gmail.com wrote: Is it a learning project? On Thu, Sep 9, 2010 at 9:29 PM, mufti ali muftimas...@gmail.com wrote: http://monkylinks.com/links/popular *Error: * The requested address *'/links/popular'* was not found on this server. Cheers, Mufti http://webdev5.com http://blogfreakz.com On Fri, Sep 10, 2010 at 12:54 AM, eugenioc...@hotmail.com eugenioc...@gmail.com wrote: Hello to everybody, i have just uploadhttp://monkylinks.com/its a cakephp powered open source social news bookmarking. It will great if you help me to test it loggin in and sending some news or just do some anon voting inhttp://monkylinks.com/links/shakeit You could see the source in http://code.google.com/p/monky/source/checkout Cheers! Any feedback will be thankfully received 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.comcake-php%2bunsubscr...@googlegroups.comFor more options, visit this group at http://groups.google.com/group/cake-php?hl=en 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.comcake-php%2bunsubscr...@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
Re: limiting auth allow('display') to just one page
On Thu, Sep 9, 2010 at 3:10 PM, calzone calz...@gmail.com wrote: I've been searching the web for an hour now trying to find out how to do this and no one seems to be talking about it. Namely, the problem is that when I set $this-Auth-allow('display') (or allowedActions or other flavors of the same thing) I get a situation where all my /pages content is available to non- authenticated users. I have a site where only the home page should be allowed. I've tried entering a complete route, array('controller' = 'pages', 'action' = 'display', 'home') to no avail. All I want is to lock down everything except the exact specific /pages content that I want to reveal. All other /pages content should be protected just like the rest of the controllers. There must be a way to do this isn't there? Auth restricts based on actions, while what you're looking for is restriction based on request parameters. Fortunately, in your specific case, there's a simple solution: public function beforeFilter() { $this-Auth-deny('*'); if (TEST) { $this-Auth-allowedActions = array('display'); } } Where TEST has a look at $this-params to see if the requested page is the one you want to allow. 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
SWFUpload, CakePHP 1.3, and DebugKit combination
Just in case someone else may encounter this problem in the future: Today I discovered that in Cake 1.3, if you use DebugKit.Toolbar, the beforeFilter method to start the session given a session ID would not work with SWFUpload. I think what happens is that DebugKit would use the Session Component before beforeFilter method is called. So, by the time you are trying to set Session-id(), the Session component was already initialized by DebugKit. To get around this problem, I added the following in my Controller function startupProcess() { if ($this-action == 'swfupload') { Configure::write('debug', 0); } parent::startupProcess(); } This would turn off DebugKit so it would not start the session. 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: limiting auth allow('display') to just one page
Thanks. I am using ACL, but not terribly comfortable with it. I'm still trying to figure out how to make it grant ownership of content that is created by one user so only he can see it, or for other content, that is created by a user belonging one department so that other departments can't see stuff that doesn't belong to them (while still allowing users from the managers group to see all the departments they oversee, and superadmins to see everything). At the same time, the concepts of departments is a separate lookup table from the actual groups table for the ACL permissions. But I digress. I thought ACL only kicked in after the user has authenticated and that before that happens, for unauthenticated guests, you are stuck with whatever Auth allows or denies. On Sep 9, 12:36 pm, cricket zijn.digi...@gmail.com wrote: On Thu, Sep 9, 2010 at 3:35 PM, cricket zijn.digi...@gmail.com wrote: Auth restricts based on actions, while what you're looking for is restriction based on request parameters. Fortunately, in your specific case, there's a simple solution: public function beforeFilter() { $this-Auth-deny('*'); if (TEST) { $this-Auth-allowedActions = array('display'); } } Where TEST has a look at $this-params to see if the requested page is the one you want to allow. I meant to add that you should consider ACL if the allowed content grows much beyond just that single 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: limiting auth allow('display') to just one page
On Thu, Sep 9, 2010 at 4:29 PM, calzone calz...@gmail.com wrote: Thanks. I am using ACL, but not terribly comfortable with it. I'm still trying to figure out how to make it grant ownership of content that is created by one user so only he can see it, or for other content, that is created by a user belonging one department so that other departments can't see stuff that doesn't belong to them (while still allowing users from the managers group to see all the departments they oversee, and superadmins to see everything). At the same time, the concepts of departments is a separate lookup table from the actual groups table for the ACL permissions. Yes, it's a huge can of worms. I thought ACL only kicked in after the user has authenticated and that before that happens, for unauthenticated guests, you are stuck with whatever Auth allows or denies. Yes, that's what I meant about actions vs parameters. But, if you need a fine-grained system to grant access to the pages, what I suggested won't work. I thought you only had 2 classes of users: those who could see all pages, and those who should only see 'home'. If you need to grant different access to some pages for already-authenticated users you'll need to either use ACL or something you roll yourself. Actually, on second thought, I suppose that the approach I suggested would still work. But you'll still need some ACL business in your display() action. 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: Session get deleted with chrome browser
Some suggestion? Plaese help! On 6 Set, 09:16, Sanza mass...@creativebrains.it wrote: Hi! I had already the security.level setted to medium and also setting to low don't work. Thank you for your suggestion but the problem persist! Massimo On 6 Set, 01:52, Kamal deol kamal.d...@gmail.com wrote: hi i read your problem my email is kamal.d...@gmail.com try the Configure::write('Security.level', 'low'); in the app/cofig/core.php first try Configure::write('Security.level', 'medium'); if prob solved then ok other wise try low On Sun, Sep 5, 2010 at 7:15 AM, Sanza mass...@creativebrains.it wrote: I have the same problem! Only with the cakephp 1.3.+ With firefox works perfectly, but with Safari, Internet Explorer and Chrome don't work and lost the session or don't store the cookie. I did a little step setting a different Session.cookie (core.php) and setting the Cookie name on a component i28n wich use the session and cookie, but I have get others misterious errors like array to string conversion on session_start() and an other error on cookie system component. The strange this is that on firefox all work perfectly! Any suggestion will be appreciated Massimo On 3 Set, 13:18, Amjed amjedonl...@gmail.com wrote: Hi, I have an application which works fine in Firefox. But when I use chrome, session gets deleted/new session is created for every page it is not the the problem of security.level or php sessions. I have check all forums. In one forum it says that chrome changes HTTP_REFERER, due to this behaviour new sessions is created. Any help in this regard will be appreciated. Thanks, Amjed 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.comcake-php%2bunsubscr...@googlegroups.c omFor 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: Session get deleted with chrome browser
Hi Amjed, do you have solved this problem? If you can please help me! Thank you On 3 Set, 13:18, Amjed amjedonl...@gmail.com wrote: Hi, I have an application which works fine in Firefox. But when I use chrome, session gets deleted/new session is created for every page it is not the the problem of security.level or php sessions. I have check all forums. In one forum it says that chrome changes HTTP_REFERER, due to this behaviour new sessions is created. Any help in this regard will be appreciated. Thanks, Amjed 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
Problem to Login with Simple Acl controlled Application tutorial cakephp 1.3 - Lost session
I have already worked with cakephp 1.2 and i have made some applications without problems about the acl but when i decided to use the new cakephp 1.3 i found this problem. Note: I have triple checked all steps of the tutorial Simple Acl controlled Application for cakephp 1.3, restart completely many times the project but i have always the same problem. The problem: when i try to log in I come always redirected to the login page WITHOUT a flash message like Login failed. Invalid username or password.. The strange thing is that with Firefox (mac, windows, linux all with default cookie settings) work perfectly, but with Safari Mac, Chrome Mac, IE 8.0.xx, Chrome Win don't work. Also changing the cookie settings to Accept all, accept always etc etc don't work. Debugging seems that the session is lost between the login page and the next page maybe caused by the cookie that is not stored... Any help or suggestions? Thanks Massimo 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: Validation translations
Hi I don't know if can help you, but to manage translation of error messages i use this system. I think is much clean and simply: I put the all declaration of validate array inside the constructor of the model: function __construct($id = false, $table = null, $ds = null){ parent::__construct($id, $table, $ds); $this-validate = array( 'name' = array( 'notempty' = array( 'rule' = array('notempty'), 'message' = __('Error message notEmpty', true), ) ) ); } BR Massimo 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
Cookie path getting set to /app/webroot--not honoring $this-path
I'm trying to fix a zillion bugs with a script a client bought (don't ask). One of the last major ones is an authentication issue. Seems that the path of the cookie is getting set to /app/webroot -- and it should be simply / according to $this-path (set in the app controller, as well as hard-coded in the cookie.php file, by default). I suspect that this might have to do with an issue with .htaccess files, but the ones I'm using are stock from a clean CakePHP download. (If it matters, the script /might/ be using Cake 1.1 libs, rather than 1.2.) In other words, I'm seeing plenty of links getting rendered with /app/webroot in the URL. This wouldn't be a huge issue if /everything/ lived under /app/webroot (if the cookie referenced that path), but sadly some links in the script don't use CakePHP's html helper--and thus, things are occasionally hard-coded. So, my problem is two-fold: a. The cookie path isn't getting set correctly. b. All of my CakePHP-generated URLs are getting /app/webroot prepended to them. If I can fix (a) to give me the base path (/) I'd be okay; I'd really prefer to solve (b), but I think it's a tougher nut to crack. Any thoughts? I'm getting near to my wits' end on this one. And yes, I've looked at the documentation, done the Google searches, and everything--nothing seems to work. --Carl 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: Password Protecting a Directory
Anyone have any other thoughts on this issue? On Sep 9, 12:43 pm, Arak Tai'Roth nielsen.dus...@gmail.com wrote: Thanks for the replies guys, but neither of those solutions work. Sorry, I didn't explain myself better. This directory doesn't necessarily need to be called admin, but I had changed it to another name and that didn't fix the issue for me, so I changed it back to admin as that seemed more appropriate to me. This directory is meant to be used to run an application from, so not meant to view just single files or anything. But it needs to be password protected due to the fact that it is only meant for the administrators of the site to access. Also, the apache documentation doesn't really help as I am running this from a shared server on Dreamhost, I don't have access to changing anything in their apache configuration. On Sep 8, 6:34 am, Farah elia...@gmail.com wrote: See this documentation http://httpd.apache.org/docs/2.0/howto/auth.html On 7 set, 23:38, Arak Tai'Roth nielsen.dus...@gmail.com wrote: Can anyone help me with this problem please? On Sep 6, 11:37 pm, Arak Tai'Roth nielsen.dus...@gmail.com wrote: So, I am aware this question has been asked and answered in a variety of different ways in a variety of different places. I have already spent way too much time trying to find a solution, so I'm hoping to find a solution here by just asking myself. I am using CakePHP 1.2.5 in this case if that makes a difference. I'm hoping not, because I'm hoping to use whatever solution I get on a few different installations, all of which use different versions. Anyways, the issue is this. I have setup a directory inside /homePath/ app/webroot/, the directory is called admin, so the full path looks like /homePath/app/webroot/admin. Now getting to this directory works great. Until I password protect it using a .htaccess and .htpasswd file. After I implement the password protection, I get this error, Error: The requested address '/failed_auth.html' was not found on this server. My .htaccess file looks like this: AuthType Basic AuthUserFile /homePath/app/webroot/admin/.htpasswd AuthName Precision Laser Therapy Administrators require valid-user I am using Dreamhost and have generated this using their panel, so I am pretty positive the /homePath/ portion is correct. I have already tried the solutions onhttp://groups.google.ca/group/cake-php/browse_thread/thread/9054f372d..., andhttp://groups.google.ca/group/cake-php/browse_thread/thread/30ea77cad... I couldn't get them to work, that could be because I'm dumb and missed something that they didn't explicitly say or they just simply won't work in my case. Does someone have a solution for this issue? Assume that the only thing I have changed to a static Cake install, is the addition of the admin directory in /app/webroot, and the addition of the .htaccess and .htpasswd files inside of it. Any help is extremely appreciated. 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: Password Protecting a Directory
This is a non-Cake application? Where does this failed_auth.html file come into the picture? It's part of this other app? If so, the problem is likely because the requested path is from root (the webroot dir) but the app is in a subdirectory. But you said that you used htpasswd to authenticate so this is a bit confusing. It appears that your application has its own authentication system. I'm thinking this has nothing to do with Cake. IMO, the best approach to this would be to set up this other app in a completely separate virtual host, put it in a subdir (important, given the error msg), configure htpasswd, etc. and then make sure that Apache's authentication works and that you can access the app. Only then, try it inside your Cake site. On Thu, Sep 9, 2010 at 7:00 PM, Arak Tai'Roth nielsen.dus...@gmail.com wrote: Anyone have any other thoughts on this issue? On Sep 9, 12:43 pm, Arak Tai'Roth nielsen.dus...@gmail.com wrote: Thanks for the replies guys, but neither of those solutions work. Sorry, I didn't explain myself better. This directory doesn't necessarily need to be called admin, but I had changed it to another name and that didn't fix the issue for me, so I changed it back to admin as that seemed more appropriate to me. This directory is meant to be used to run an application from, so not meant to view just single files or anything. But it needs to be password protected due to the fact that it is only meant for the administrators of the site to access. Also, the apache documentation doesn't really help as I am running this from a shared server on Dreamhost, I don't have access to changing anything in their apache configuration. On Sep 8, 6:34 am, Farah elia...@gmail.com wrote: See this documentation http://httpd.apache.org/docs/2.0/howto/auth.html On 7 set, 23:38, Arak Tai'Roth nielsen.dus...@gmail.com wrote: Can anyone help me with this problem please? On Sep 6, 11:37 pm, Arak Tai'Roth nielsen.dus...@gmail.com wrote: So, I am aware this question has been asked and answered in a variety of different ways in a variety of different places. I have already spent way too much time trying to find a solution, so I'm hoping to find a solution here by just asking myself. I am using CakePHP 1.2.5 in this case if that makes a difference. I'm hoping not, because I'm hoping to use whatever solution I get on a few different installations, all of which use different versions. Anyways, the issue is this. I have setup a directory inside /homePath/ app/webroot/, the directory is called admin, so the full path looks like /homePath/app/webroot/admin. Now getting to this directory works great. Until I password protect it using a .htaccess and .htpasswd file. After I implement the password protection, I get this error, Error: The requested address '/failed_auth.html' was not found on this server. My .htaccess file looks like this: AuthType Basic AuthUserFile /homePath/app/webroot/admin/.htpasswd AuthName Precision Laser Therapy Administrators require valid-user I am using Dreamhost and have generated this using their panel, so I am pretty positive the /homePath/ portion is correct. I have already tried the solutions onhttp://groups.google.ca/group/cake-php/browse_thread/thread/9054f372d..., andhttp://groups.google.ca/group/cake-php/browse_thread/thread/30ea77cad... I couldn't get them to work, that could be because I'm dumb and missed something that they didn't explicitly say or they just simply won't work in my case. Does someone have a solution for this issue? Assume that the only thing I have changed to a static Cake install, is the addition of the admin directory in /app/webroot, and the addition of the .htaccess and .htpasswd files inside of it. Any help is extremely appreciated. 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 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: Validation translations
Or you can define your invalidate() function in app_model: public function invalidate($field, $value = true) { if (is_string($value)) { return parent::invalidate($field, __($value)); } else { return parent::invalidate($field); } } Or you can try not use messages in model and keep them all in view. But do not try to mix messages both in model in view - it's endless field for mistakes. On Sep 10, 4:36 am, Sanza mass...@creativebrains.it wrote: Hi I don't know if can help you, but to manage translation of error messages i use this system. I think is much clean and simply: I put the all declaration of validate array inside the constructor of the model: function __construct($id = false, $table = null, $ds = null){ parent::__construct($id, $table, $ds); $this-validate = array( 'name' = array( 'notempty' = array( 'rule' = array('notempty'), 'message' = __('Error message notEmpty', true), ) ) ); } BR Massimo 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
Update Pagination Numbering
I know its been asked about deleting record with Ajax and getting a replacement record, so I did my own way and it deletes any record from any page your on adding to the bottom of the records with what would have been the next record inline every time so you never go back to page 1 or that foolishness. Now I need to update the count / pages but not much in the docs about how the pagination actually makes the nav. On the index page if I debug( $this-params['paging'] ); I see all the pagination info but that data is not available when I run my replacement function after I delete the record since the pagination info is in the index function Any thoughts or ideas to get me started? Dave 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
better to wait for cake2 than upgrade from 1.2 to 1.3?
I am running a few sites with cake right now, some at 1.2, some at 1.3. I have considered upgrading the 1.2 sites to 1.3 but I don't think it is worth the time to rewrite all my $html-link()'s etc etc, as it is a fairly large application. I think I am going to wait for Cake2 and then start migrating those sites, especially considering the amount of migration that appears is going to be necessary from 1.x to 2.x Anyone else have thoughts on this? 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: Cookie path getting set to /app/webroot--not honoring $this-path
It sounds like you've been living my life... As far as htaccess files go- are all of them stock(I think there are at least 3). Also, are you using the standard folder setup? On Sep 9, 4:56 pm, carl67lp ccander...@gmail.com wrote: I'm trying to fix a zillion bugs with a script a client bought (don't ask). One of the last major ones is an authentication issue. Seems that the path of the cookie is getting set to /app/webroot -- and it should be simply / according to $this-path (set in the app controller, as well as hard-coded in the cookie.php file, by default). I suspect that this might have to do with an issue with .htaccess files, but the ones I'm using are stock from a clean CakePHP download. (If it matters, the script /might/ be using Cake 1.1 libs, rather than 1.2.) In other words, I'm seeing plenty of links getting rendered with /app/webroot in the URL. This wouldn't be a huge issue if /everything/ lived under /app/webroot (if the cookie referenced that path), but sadly some links in the script don't use CakePHP's html helper--and thus, things are occasionally hard-coded. So, my problem is two-fold: a. The cookie path isn't getting set correctly. b. All of my CakePHP-generated URLs are getting /app/webroot prepended to them. If I can fix (a) to give me the base path (/) I'd be okay; I'd really prefer to solve (b), but I think it's a tougher nut to crack. Any thoughts? I'm getting near to my wits' end on this one. And yes, I've looked at the documentation, done the Google searches, and everything--nothing seems to work. --Carl 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: better to wait for cake2 than upgrade from 1.2 to 1.3?
I don't think it's such a huge task to make most of the changes required. You can do the vast bulk of it with careful find and replaces ($form- to $this-Form-, $html- to $this-Html-, etc). Rash and daring, I know. Jeremy Burns Class Outfit jeremybu...@classoutfit.com http://www.classoutfit.com On 10 Sep 2010, at 04:52, j.blotus wrote: I am running a few sites with cake right now, some at 1.2, some at 1.3. I have considered upgrading the 1.2 sites to 1.3 but I don't think it is worth the time to rewrite all my $html-link()'s etc etc, as it is a fairly large application. I think I am going to wait for Cake2 and then start migrating those sites, especially considering the amount of migration that appears is going to be necessary from 1.x to 2.x Anyone else have thoughts on this? 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 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: better to wait for cake2 than upgrade from 1.2 to 1.3?
$html-link() works just fine in 1.3. Migration to 1.3 from 1.2 is fairily painless. follow the migration guide and you'll be done within an hour. It's well worth it, the flushed out plugin system is all win. http://book.cakephp.org/view/1561/Migrating-from-CakePHP-1-2-to-1-3 Hope that helps, Nick On Sep 9, 9:52 pm, j.blotus j.blo...@gmail.com wrote: I am running a few sites with cake right now, some at 1.2, some at 1.3. I have considered upgrading the 1.2 sites to 1.3 but I don't think it is worth the time to rewrite all my $html-link()'s etc etc, as it is a fairly large application. I think I am going to wait for Cake2 and then start migrating those sites, especially considering the amount of migration that appears is going to be necessary from 1.x to 2.x Anyone else have thoughts on this? 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: better to wait for cake2 than upgrade from 1.2 to 1.3?
Right, but I have maybe a few hundred views in this application, which is in production and and I don't have tests for everything so introducing bugs is a real possibility. Not only that I have to commit and redeploy every changed view. So, not to be a dick, but it is a bit rash and daring just for the sake of upgrading to 1.3 for features I don't need when 1.2 works great and is still being supported (and I run a few 1.3 sites as well). If this were my blog I wouldn't care as much, but this is a company site that I can't afford to tinker with for the sake of an upgrade. On Sep 10, 12:38 am, Jeremy Burns | Class Outfit jeremybu...@classoutfit.com wrote: I don't think it's such a huge task to make most of the changes required. You can do the vast bulk of it with careful find and replaces ($form- to $this-Form-, $html- to $this-Html-, etc). Rash and daring, I know. Jeremy Burns Class Outfit jeremybu...@classoutfit.comhttp://www.classoutfit.com On 10 Sep 2010, at 04:52, j.blotus wrote: I am running a few sites with cake right now, some at 1.2, some at 1.3. I have considered upgrading the 1.2 sites to 1.3 but I don't think it is worth the time to rewrite all my $html-link()'s etc etc, as it is a fairly large application. I think I am going to wait for Cake2 and then start migrating those sites, especially considering the amount of migration that appears is going to be necessary from 1.x to 2.x Anyone else have thoughts on this? 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.com For 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.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
Re: better to wait for cake2 than upgrade from 1.2 to 1.3?
god i hate delayed postingdamn you google groups! On Sep 10, 12:49 am, j.blotus j.blo...@gmail.com wrote: Right, but I have maybe a few hundred views in this application, which is in production and and I don't have tests for everything so introducing bugs is a real possibility. Not only that I have to commit and redeploy every changed view. So, not to be a dick, but it is a bit rash and daring just for the sake of upgrading to 1.3 for features I don't need when 1.2 works great and is still being supported (and I run a few 1.3 sites as well). If this were my blog I wouldn't care as much, but this is a company site that I can't afford to tinker with for the sake of an upgrade. On Sep 10, 12:38 am, Jeremy Burns | Class Outfit jeremybu...@classoutfit.com wrote: I don't think it's such a huge task to make most of the changes required. You can do the vast bulk of it with careful find and replaces ($form- to $this-Form-, $html- to $this-Html-, etc). Rash and daring, I know. Jeremy Burns Class Outfit jeremybu...@classoutfit.comhttp://www.classoutfit.com On 10 Sep 2010, at 04:52, j.blotus wrote: I am running a few sites with cake right now, some at 1.2, some at 1.3. I have considered upgrading the 1.2 sites to 1.3 but I don't think it is worth the time to rewrite all my $html-link()'s etc etc, as it is a fairly large application. I think I am going to wait for Cake2 and then start migrating those sites, especially considering the amount of migration that appears is going to be necessary from 1.x to 2.x Anyone else have thoughts on this? 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 For 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.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
Re: better to wait for cake2 than upgrade from 1.2 to 1.3?
not sure if google swallowed my reply but here is the gist: $html-link() works just fine in 1.3. Not quite true, especially if like me you have a lot of calls to HtmlHelper with parameters that were removed in 1.3. HtmlHelper::meta() no longer has an $inline parameter. It has been merged with the $options array. HtmlHelper::link() no longer has an $escapeTitle parameter. Use $options['escape'] instead. HtmlHelper::para() no longer has an $escape parameter. Use $options['escape'] instead. HtmlHelper::div() no longer has an $escape parameter. Use $options['escape'] instead. HtmlHelper::tag() no longer has an $escape parameter. Use $options['escape'] instead. HtmlHelper::css() no longer has an $inline parameter. Use $options['inline'] instead. Trying to use any of those will throw errors, and it becomes much more than a simple find/replace. I don't recall those parameters being deprecated in 1.2 either otherwise I wouldn't have even used them. On Sep 10, 12:44 am, nurvzy nur...@gmail.com wrote: $html-link() works just fine in 1.3. Migration to 1.3 from 1.2 is fairily painless. follow the migration guide and you'll be done within an hour. It's well worth it, the flushed out plugin system is all win. http://book.cakephp.org/view/1561/Migrating-from-CakePHP-1-2-to-1-3 Hope that helps, Nick On Sep 9, 9:52 pm, j.blotus j.blo...@gmail.com wrote: I am running a few sites with cake right now, some at 1.2, some at 1.3. I have considered upgrading the 1.2 sites to 1.3 but I don't think it is worth the time to rewrite all my $html-link()'s etc etc, as it is a fairly large application. I think I am going to wait for Cake2 and then start migrating those sites, especially considering the amount of migration that appears is going to be necessary from 1.x to 2.x Anyone else have thoughts on this? 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
Site Wide SMTP Email?
Is there a way to force SMTP to be used for all email going through email component? In other words can I make one change and have it take effect everywhere? 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