Re: Getting CakePhp to talk to Android devices
Thank you for all the helpful answers. Are there ready samples of web services to enable a CakePHP app to allow Android apps to retrieve and update data from MySql? It is hard for a newbie like me to be able to start work based on API documentation. Thank you. On Friday, July 27, 2012 11:34:43 AM UTC+8, Dr. Tarique Sani wrote: Create a REST api and let your Android device consume it http://book.cakephp.org/2.0/en/development/rest.html and http://book.cakephp.org/2.0/en/views/json-and-xml-views.html HTH Tarique On Thu, Jul 26, 2012 at 4:01 PM, Lightee lightai...@gmail.com wrote: Dear CakePHP experts, I am thinking of creating an Android app to talk to CakePHP server app. Sorry for my amateur questions because I am still a newbie. Is there anything extra I need to do on the CakePHP side? Are web services the way to go? Can the Android talk to MySql database directly and pull out data? Thank you. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php -- = PHP for E-Biz: http://sanisoft.com = -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: Getting CakePhp to talk to Android devices
You are doing the Cake part or the Android part? There is nothing more than the links given for the Cake part HTH Tarique On Fri, Jul 27, 2012 at 12:23 PM, Lightee lightai...@gmail.com wrote: Thank you for all the helpful answers. Are there ready samples of web services to enable a CakePHP app to allow Android apps to retrieve and update data from MySql? It is hard for a newbie like me to be able to start work based on API documentation. Thank you. On Friday, July 27, 2012 11:34:43 AM UTC+8, Dr. Tarique Sani wrote: Create a REST api and let your Android device consume it http://book.cakephp.org/2.0/en/development/rest.html and http://book.cakephp.org/2.0/en/views/json-and-xml-views.html HTH Tarique On Thu, Jul 26, 2012 at 4:01 PM, Lightee lightai...@gmail.com wrote: Dear CakePHP experts, I am thinking of creating an Android app to talk to CakePHP server app. Sorry for my amateur questions because I am still a newbie. Is there anything extra I need to do on the CakePHP side? Are web services the way to go? Can the Android talk to MySql database directly and pull out data? Thank you. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php -- = PHP for E-Biz: http://sanisoft.com = -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php -- = PHP for E-Biz: http://sanisoft.com = -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: Error: The requested address was not found on this server.
Hi scs, my answers go below. On Thursday, 26 July 2012 17:57:42 UTC+2, scs wrote: Ok I'm not sure what the difference in the links you posted are as both look like the same address. They are different addresses, one for the legacy app and the other for a new app I created. As for the Error: UsersController could not be found. this error is correct if you don't have the UsersController.php with an add function. Make sure you have the controller created. This error is what I expected. I'm just trying to test the addresses in another application, and there it works. Thank you. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: Getting CakePhp to talk to Android devices
Thank you. I am a newbie. I don't even see the answer when it is presented to me. On careful reading, I think the links already provided the tips on how to add CRUD web services. On Friday, July 27, 2012 3:03:14 PM UTC+8, Dr. Tarique Sani wrote: You are doing the Cake part or the Android part? There is nothing more than the links given for the Cake part HTH Tarique On Fri, Jul 27, 2012 at 12:23 PM, Lightee lightai...@gmail.com wrote: Thank you for all the helpful answers. Are there ready samples of web services to enable a CakePHP app to allow Android apps to retrieve and update data from MySql? It is hard for a newbie like me to be able to start work based on API documentation. Thank you. On Friday, July 27, 2012 11:34:43 AM UTC+8, Dr. Tarique Sani wrote: Create a REST api and let your Android device consume it http://book.cakephp.org/2.0/en/development/rest.html and http://book.cakephp.org/2.0/en/views/json-and-xml-views.html HTH Tarique On Thu, Jul 26, 2012 at 4:01 PM, Lightee lightai...@gmail.com wrote: Dear CakePHP experts, I am thinking of creating an Android app to talk to CakePHP server app. Sorry for my amateur questions because I am still a newbie. Is there anything extra I need to do on the CakePHP side? Are web services the way to go? Can the Android talk to MySql database directly and pull out data? Thank you. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php -- = PHP for E-Biz: http://sanisoft.com = -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php -- = PHP for E-Biz: http://sanisoft.com = -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
NoSQL database and datasources
Hi, I am past few days to set up CouchDB and Cake but without success. I used all available datasource for CouchDB and nothig is happening. I am using Cake 2.1, some of data sources aren't implemented for 2.0+ so my question is, is there any working datasource for any NoSQL database? -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
How can I get the ID of a Post as its saved for the first time?
Is it possible within a Add() function to find the ID of a post just as its written to the DB? Basically I'm trying to create a ACO for the post when its saved by doing something like this: $aco = $this-Acl-Aco-create(Array('model'=Post, foreign_key='')); Where is the ID of the post that's just been saved within the same function. Thanks in advance -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: How can I get the ID of a Post as its saved for the first time?
$this-Post-getLastInsertID(); -- Lep pozdrav, Tilen Majerle http://majerle.eu 2012/7/27 bigjimmi james.jac...@eclipselegal.co.uk Is it possible within a Add() function to find the ID of a post just as its written to the DB? Basically I'm trying to create a ACO for the post when its saved by doing something like this: $aco = $this-Acl-Aco-create(Array('model'=Post, foreign_key='')); Where is the ID of the post that's just been saved within the same function. Thanks in advance -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: How can I get the ID of a Post as its saved for the first time?
If I'm not mistaken the id of the latest saved record is $this-model-id Value of the primary key ID of the record that this model is currently pointing to. Automatically set after database insertions. http://api20.cakephp.org/class/model There's also the two functions getInsertID ( http://api20.cakephp.org/class/model#method-ModelgetInsertID ) and getLastInsertID ( http://api20.cakephp.org/class/model#method-ModelgetLastInsertID ) though I cannot tell you the difference between those two. Hope that helps :) Am Freitag, 27. Juli 2012 11:43:52 UTC+2 schrieb bigjimmi: Is it possible within a Add() function to find the ID of a post just as its written to the DB? Basically I'm trying to create a ACO for the post when its saved by doing something like this: $aco = $this-Acl-Aco-create(Array('model'=Post, foreign_key='')); Where is the ID of the post that's just been saved within the same function. Thanks in advance -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: How can I get the ID of a Post as its saved for the first time?
Thanks for the helkp guys - this worked a treat : $this-Post-getInsertID(); On Friday, 27 July 2012 10:43:52 UTC+1, bigjimmi wrote: Is it possible within a Add() function to find the ID of a post just as its written to the DB? Basically I'm trying to create a ACO for the post when its saved by doing something like this: $aco = $this-Acl-Aco-create(Array('model'=Post, foreign_key='')); Where is the ID of the post that's just been saved within the same function. Thanks in advance -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
set::sort question
Hi, I have this array: Array ( [240] = Array ( [Member] = Array ( [id] = 112 ) [Payment] = Array ( [date] = 0712 ) ) I want to use the set::sort function to sort first for Member.id ASC and then for Payment.ASC Can please someone explain me how I need to write the set::sort syntax? I never used it before and quite unsure how it has to be done. Thanks!! -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
ACL - how to set user permissions along with group permission
Hi, I've followed the cake acl tutorials and have a working example. However the tutorial is purely based around groups (it tells you to add some code that disregards users and just looks at group permissions). How can I keep the groups working but also override things for individual users? Thanks in advance -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: ACL - how to set user permissions along with group permission
There is nothing stopping you from treating a single person as a group. IOW the person becomes the ARO you may have to write some additional code with if group || username kind of conditions OTOH are you looking for row level permissions? That is a different game altogether HTH Tarique P.S. OMG too many TLAs ;-) On Fri, Jul 27, 2012 at 4:51 PM, bigjimmi james.jac...@eclipselegal.co.uk wrote: Hi, I've followed the cake acl tutorials and have a working example. However the tutorial is purely based around groups (it tells you to add some code that disregards users and just looks at group permissions). How can I keep the groups working but also override things for individual users? Thanks in advance -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php -- = PHP for E-Biz: http://sanisoft.com = -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: Cake PHP User Management Plugin Eagle
Sorry but comments made by you along the lines of If login fails the first time, log in again and it will work means buggy in my experience. On 26/07/12 16:14, Steve wrote: @ Ratty I have tested it and its not a buggy Plugin and I am not trying to sell. Its just we brought this out and wanted to inform all of you about this. Please don't get it wrong. We have really worked hard for this and it deserves Respect. And even if you are going to write it, it will take a lot of weeks to do so. Thanks. On Thursday, July 26, 2012 5:06:27 PM UTC+5:30, Ratty wrote: On 15/07/12 15:51, Steve wrote: hi guys, we have launched an amazing Plugin Eagle for Cake PHP. It is user management Plugin which has 56 features. It also gives you Login with FB, Twitter, LinkedIn, Foursquare, Google and Yahoo. You can read all its features here: http://developers.getyourplugin.com/features.html http://developers.getyourplugin.com/features.html and you can check the Plugin here: http://www.eagle.getyourplugin.com http://www.eagle.getyourplugin.com , you can test the Plugin on this link: http://www.eagle.getyourplugin.com/login http://www.eagle.getyourplugin.com/login , default username and password is 123456, check it and tell us the feedback. Regards, Steve -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com mailto:cake-php%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php http://groups.google.com/group/cake-php Let me get this straight... You are trying to sell me a buggy plugin that I could write myself ( or use CakeDC's free one ) and I test it for you for free ? -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: Cake PHP User Management Plugin Eagle
Thanks for bringing out the issue. I have resolved it. You don't need to Re-Login. Login once and you will be all done. And I will bring out a Free Plugin soon for download. Cheers !! Regards, Steve. On Friday, July 27, 2012 6:00:15 PM UTC+5:30, Ratty wrote: Sorry but comments made by you along the lines of If login fails the first time, log in again and it will work means buggy in my experience. On 26/07/12 16:14, Steve wrote: @ Ratty I have tested it and its not a buggy Plugin and I am not trying to sell. Its just we brought this out and wanted to inform all of you about this. Please don't get it wrong. We have really worked hard for this and it deserves Respect. And even if you are going to write it, it will take a lot of weeks to do so. Thanks. On Thursday, July 26, 2012 5:06:27 PM UTC+5:30, Ratty wrote: On 15/07/12 15:51, Steve wrote: hi guys, we have launched an amazing Plugin Eagle for Cake PHP. It is user management Plugin which has 56 features. It also gives you Login with FB, Twitter, LinkedIn, Foursquare, Google and Yahoo. You can read all its features here: http://developers.getyourplugin.com/features.html and you can check the Plugin here: http://www.eagle.getyourplugin.com , you can test the Plugin on this link: http://www.eagle.getyourplugin.com/login , default username and password is 123456, check it and tell us the feedback. Regards, Steve -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php Let me get this straight... You are trying to sell me a buggy plugin that I could write myself ( or use CakeDC's free one ) and I test it for you for free ? -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: ACL - how to set user permissions along with group permission
Hi, thanks for the reply. Basically I'm wanting to add access control permissions to individual db rows? but I guess that would be the same as allow access to /modelname/view/1? Struggling to find any info on this. Thanks in advance On Friday, 27 July 2012 12:21:01 UTC+1, bigjimmi wrote: Hi, I've followed the cake acl tutorials and have a working example. However the tutorial is purely based around groups (it tells you to add some code that disregards users and just looks at group permissions). How can I keep the groups working but also override things for individual users? Thanks in advance -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: ACL - how to set user permissions along with group permission
On Friday, July 27, 2012 8:39:01 PM UTC+7, bigjimmi wrote: Hi, thanks for the reply. Basically I'm wanting to add access control permissions to individual db rows? but I guess that would be the same as allow access to /modelname/view/1? Struggling to find any info on this. Checkout ceeram's Authorize plugin in github. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: Cake PHP User Management Plugin Eagle
Hi Guys... I have purchased User Management Plugin from http://umpremium.ektasoftwares.com/ site. I went through the demo version of so called eagle plugin on http://www.eagle.getyourplugin.com/login. I found that it has been copied from original plugin which is available at http://umpremium.ektasoftwares.com. The original plugin has been launched on 16th April, 2012. So guys before buying this plugin from http://www.eagle.getyourplugin.com/ please go through http://umpremium.ektasoftwares.com/ and you can easily find out that eagle plugin is pirated version of original plugin. Regards, Ivan On Sunday, July 15, 2012 8:21:27 PM UTC+5:30, Steve wrote: hi guys, we have launched an amazing Plugin Eagle for Cake PHP. It is user management Plugin which has 56 features. It also gives you Login with FB, Twitter, LinkedIn, Foursquare, Google and Yahoo. You can read all its features here: http://developers.getyourplugin.com/features.html and you can check the Plugin here: http://www.eagle.getyourplugin.com , you can test the Plugin on this link: http://www.eagle.getyourplugin.com/login , default username and password is 123456, check it and tell us the feedback. Regards, Steve -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
CakePHP REST service does not recognize POST
Hi all, I'm trying to get my REST services up and running, the routing works, but when i do a POST to my service, the RequestHandler-isPost() function returns false. Could somebody help me out what I'm doing wrong??? *Routes.php* Router::connect( '/authenticate', array( 'controller' = 'users', 'action' = 'login', '[method]' = 'POST') ); Router::parseExtensions('json'); * Login function in UsersController.php (for demo purpose i just return if it detects a post or not)* if( $this-RequestHandler-isPost() ) { $this-set('loginResult', 'post'); $this-set('_serialize', array('loginResult')); }else{ $this-set('loginResult', 'no post'); $this-set('_serialize', array('loginResult')); } Now I use* REST Console* extension in Chrome to do a call to my REST service (http://path_to_localhost_website/authenticate) This is the result returned: *Request Headers* 1. Accept: application/json 2. Content-Type: application/json 3. Connection: keep-alive 4. Origin: chrome-extension: //rest-console-id 5. User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_0) AppleWebKit /536.11 (KHTML, like Gecko) Chrome/20.0.1132.57 Safari/536.11 *Request Body* 1. Request Url: http://localhost/ris/winsol/winsol_admin/authenticate 2. Request Method: POST 3. Status Code: 200 4. Params: { 5. email: frede...@the-nerd.be, 6. password: fd12d90f5670211f5bd4f2816baa7299eb256e1f 7. } *Response Headers* 1. Status Code: 200 2. Date: Thu, 26 Jul 2012 20:25:41 GMT 3. X-Powered-By: PHP/5.3.6 4. Connection: Keep-Alive 5. Content-Length: 25 6. Server: Apache 7. Content-Type: application/json 8. Keep-Alive: timeout=5, max=99 *Response Body:* { loginResult: no post } I hope somebody can help me out, because it is driving me mad :-) -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: Bake Console
I have problem with cake bake to, I use cake 2.1.xx When I ran cake bake all from terminal I can't get view, But it generate model and controller. I have to run cake bake view all to get all generated model and controller. vise versa I can't get model and controller when run cake bake model all or cake bake model all Any idea? thanks On 07/27/2012 12:25 PM, Dr. Tarique Sani wrote: And your problem is? T On Fri, Jul 27, 2012 at 10:33 AM, Mr. Manager lyda...@gmail.com wrote: Dear All, I used to bake console for cakephp 1.3 it work properly; however, I have problem with baking console with cakephp 2.1 I hope that anyone will know this solution. This is in hurry! Sincerely Your, Ly Dara, -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: Large core.* files being generated in app/webroot
Howw do i stop this? The large files would take up my space if not cleared regularly. On Wednesday, 30 June 2010 07:13:49 UTC+8, mofahead wrote: Cake appears to be generating alot of very large files (~50MB each)in the app/webroot/ directory. They look like this: core.5356 core.11367 ... Why is this happening and how can I stop it? -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Using CacheHelper to cache JSON views
I cannot get this to work in 2.2. This is what I have tried: First I just followed the book to create JSON views ( http://book.cakephp.org/2.0/en/views/json-and-xml-views.html). Works great. I get JSON data back. Then I followed the CacheHelper instructions ( http://book.cakephp.org/2.0/en/core-libraries/helpers/cache.html). I un-commented Cache.check in core.php, added the CacheHelper in my Controller and defined $cacheAction. This works great for HTML Views. But, for JSON views nothing gets cached unfortunately. I found this post: http://lars-schenk.com/cached-json-or-xml-view-with-cakephp/523 that ran into a similar issue (albeit in an earlier version of Cake that didn't have JsonView yet). So I tried to use his method, and apply it to 2.2. I took Router::parseExtensions( 'json' ) out, took the RequestHandler out, created a json.ctp layout file. !--nocache--?php configure::write('debug',0); // surpress all debug output on json views header('Content-type: text/x-json');?!--nocache--?php echo $this-fetch('content'); ? a feed.ctp view file ?php echo json_encode( $data ); ? and changed my controller action to just set the layout and data $this-layout = 'json';$this-view = 'feed';$this-set( 'data', $data ); This works somewhat. I get the JSON file the first time, but when I request that action again, the response contains !--nocache:001--!--nocache:002-- before the actual JSON data, so it won't work for my client app. I can see that chunk of text in the actual cache file as well, which I think is the problem. So I am not quite sure how to proceed. Am I just missing something painfully obvious? Any help would be greatly appreciated. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Be Aware of Pirated Copy of CakePhp 2.x User Management Plugin
Hi All, I found the *original website* for CakePhp 2.x User Management Plugin and I would like to share it with you all because I found some *pirated sites*which are selling this plugin. I believe, the real developer of the plugin should get the appreciation and profits for his plugin.. Don’t you feel that ??? The original website is http://umpremium.ektasoftwares.com. Go through this website once, you will feel that this is the actual website. On this site, you can see *Google Ads* , it means Google has validated this site so it is neither fake nor pirated, it is original site. Even the developer of the plugin has mentioned his contact details (Email id, Phone no etc) and he is available for 24x7 to help you if you have any issue regarding this plugin. I have purchaged this plugin from this site and I really appreciate the developer and I am really happy with 24x7 support. I really love his way to solve my problems on time. You can get the User Management Plugin Version 1.0 for free on http://usermgmt.ektasoftwares.com/ and User Management Plugin Version 2.0 for a very low cost on http://www.ektasoftwares.com/productshttp://www.ektasoftwares.com/products . Please guys be aware of pirated copy of the CakePhp 2.x User Management Plugin and purchase the original plugin from original website. Thanks, Ivan -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
How do I / Do I use parameters to limit the number of returned records?
Hello -- and thank you for being willing to help. I'm new to PHP and CakePHP, but making progress. I have MVC setup for a table called topics. In the controller for public function index I have: $this-set('topics', $this-paginate()); That returns 15,000 records! I just want to see those of a certain type (in my case the sql would be WHERE type = 'BK'). What would I do next? I assume this has something to do with learning about parameters. Would I pass a parameter to the index page by doing something like: http://myapp/topics/index/type:PR -- where my type of topic is identified by 'BK' (i.e., type equals book)? If so, then what would this change the appearance of $this-set('topics', $this-paginate());? Thank you -- for either showing me how or telling me where to go in the documentation. Kevin -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: How do I / Do I use parameters to limit the number of returned records?
PS: I guess I should start by learning how to do this with find() rather than paginate(). I have working ... public function index() { $this-Topic-recursive = 0; $conditions = array(Topic.type = 'Bk'); debugger::dump($this-Topic-find('all', array('conditions' = $conditions))); die; } So, my question becomes: how do I pass a value the value 'Bk' to $conditions? ... and, how would this be different using paginate() instead of find(). Thank you! Kevin -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: How do I / Do I use parameters to limit the number of returned records?
to use conditions in paginate use something like this: public function index() { $this-Topic-recursive = 0; $conditions = array('type' = $this-request-data['Topic']['type']); $this-paginate(' Topic ', array($conditions)); } $this-request-data['Topic']['type'] is data coming from a form in your view. On Friday, July 27, 2012 3:46:01 PM UTC-4, Kevin Mitchell wrote: PS: I guess I should start by learning how to do this with find() rather than paginate(). I have working ... public function index() { $this-Topic-recursive = 0; $conditions = array(Topic.type = 'Bk'); debugger::dump($this-Topic-find('all', array('conditions' = $conditions))); die; } So, my question becomes: how do I pass a value the value 'Bk' to $conditions? ... and, how would this be different using paginate() instead of find(). Thank you! Kevin -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: How do I / Do I use parameters to limit the number of returned records?
scs: Thank you! So. with your help, I now have working, using request-params and a url of /topics/index/Bk or /topics/index/PR, etc. ... public function index() { $this-Topic-recursive = 0; $type = $this-request-params['pass'][0]; $conditions = array(Topic.type = $type); $this-set('topics', $this-paginate('Topic', array($conditions))); } ... but you're suggesting, much better, that I have a form rather than a url to pass my type value. That feels so good when something works! Thank you, again, scs. I do appreciate. Kevin -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
loading fixtures to a different test datasource
Hi, I have 2 datasources defined $test and $test_new in my database.php file. In my fixture files I need the table 'x_new' to be loaded in $test_new datasource, to accomplish this, with in the fixture file of the table 'x_new' I specified var $useDbConfig = 'new'; (since cakePHP automatically substitues 'test_' as a prefix) But, when I run the test case, this table is always created in the datasource defined for $test I tried cakephp manual to search for answers, but did not find any. I am using cakePHP 1.3 Could somebody point out what is the step I am missing here or is there an error in what I am doing? Please reply. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: Cake PHP User Management Plugin Eagle
This Plugin is the real Plugin. Rest all sites which are proclaiming it to be a copy has copied my Plugin. Actually some Indian guy bought my Plugin and he re-launched it with his own version and now he is selling my Plugin under his name. If any body has an issue, he can mail me. I will give him my client list and you can directly mail my clients who have purchased my Plugin and ask them who is genuine and who is Fake. This Plugin was launched much before. It was only that I started posting lately. Reagrds, Steve (The Original Developer) On Friday, July 27, 2012 6:49:20 PM UTC+5:30, Steve wrote: Thanks for bringing out the issue. I have resolved it. You don't need to Re-Login. Login once and you will be all done. And I will bring out a Free Plugin soon for download. Cheers !! Regards, Steve. On Friday, July 27, 2012 6:00:15 PM UTC+5:30, Ratty wrote: Sorry but comments made by you along the lines of If login fails the first time, log in again and it will work means buggy in my experience. On 26/07/12 16:14, Steve wrote: @ Ratty I have tested it and its not a buggy Plugin and I am not trying to sell. Its just we brought this out and wanted to inform all of you about this. Please don't get it wrong. We have really worked hard for this and it deserves Respect. And even if you are going to write it, it will take a lot of weeks to do so. Thanks. On Thursday, July 26, 2012 5:06:27 PM UTC+5:30, Ratty wrote: On 15/07/12 15:51, Steve wrote: hi guys, we have launched an amazing Plugin Eagle for Cake PHP. It is user management Plugin which has 56 features. It also gives you Login with FB, Twitter, LinkedIn, Foursquare, Google and Yahoo. You can read all its features here: http://developers.getyourplugin.com/features.html and you can check the Plugin here: http://www.eagle.getyourplugin.com , you can test the Plugin on this link: http://www.eagle.getyourplugin.com/login , default username and password is 123456, check it and tell us the feedback. Regards, Steve -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php Let me get this straight... You are trying to sell me a buggy plugin that I could write myself ( or use CakeDC's free one ) and I test it for you for free ? -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: How to remove CakePHP default header/banner
This method worked for me! Thank you. On Monday, October 2, 2006 7:01:47 AM UTC-7, sylver wrote: Hi there phunkster, Thanks for the quick reply. Previously, my views/layout folder is empty. I think that's why cake replace it with it's own default template. I followed this simple tutorial @ http://grahambird.co.uk/cake/tutorials/ajax.php and everything is working as the author prescribed. I've tried putting a default.thtml file in my views/layout folder, with this simple code: html head meta http-equiv=Content-Type content=text/html; charset=iso-8859-1 titleCustom page/title /head body img src=img_url /body /html and load the same page, but only the image are shown. The items from the tutorial is gone. Do I have to declare any specific div or frame to show the content of the tutorial? Regards, sylver -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: How to remove CakePHP default header/banner
This method worked for me. Thank you! On Monday, October 2, 2006 7:01:47 AM UTC-7, sylver wrote: Hi there phunkster, Thanks for the quick reply. Previously, my views/layout folder is empty. I think that's why cake replace it with it's own default template. I followed this simple tutorial @ http://grahambird.co.uk/cake/tutorials/ajax.php and everything is working as the author prescribed. I've tried putting a default.thtml file in my views/layout folder, with this simple code: html head meta http-equiv=Content-Type content=text/html; charset=iso-8859-1 titleCustom page/title /head body img src=img_url /body /html and load the same page, but only the image are shown. The items from the tutorial is gone. Do I have to declare any specific div or frame to show the content of the tutorial? Regards, sylver -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: How do I / Do I use parameters to limit the number of returned records?
Hi Kevin You can do like this $this-paginate = array('limit' = 10, 'conditions'=array('Topic.type'='BK')); $topics= $this-paginate('Topic'); On Saturday, 28 July 2012 01:16:01 UTC+5:30, Kevin Mitchell wrote: PS: I guess I should start by learning how to do this with find() rather than paginate(). I have working ... public function index() { $this-Topic-recursive = 0; $conditions = array(Topic.type = 'Bk'); debugger::dump($this-Topic-find('all', array('conditions' = $conditions))); die; } So, my question becomes: how do I pass a value the value 'Bk' to $conditions? ... and, how would this be different using paginate() instead of find(). Thank you! Kevin -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
problem with login
Hello, I installed an script created with cakephp. The install was successful but when i go to login with the information giving during setup...it gives me an error of wrong username password. the creater spent 2 hr with no answer but seams to think that it's because i am running php 5.2.13 instead of 5.2.8. If there any one who can assist me with this problem. Thanks in advance the site is clientengage.lmdesignagency.com -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: How do I / Do I use parameters to limit the number of returned records?
Thank you, Chetan: That was helpful; I just had fun with it. What you shared led me to investigate the Pagination page and I see I can use in the first array, in addition to limit and conditions, other keys like: fields, order, page, contain, joins, recursive -- similar to find(). Again, I do appreciate. Kevin -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: How do I / Do I use parameters to limit the number of returned records?
actually: paginate uses Model::find('all', $yourconditions); in $yourconditions you can pass all things like fields, conditions, limit, group, etc... -- Lep pozdrav, Tilen Majerle http://majerle.eu 2012/7/28 Mitchell, Kevin ke...@ncbible.com Thank you, Chetan: That was helpful; I just had fun with it. What you shared led me to investigate the Pagination page and I see I can use in the first array, in addition to limit and conditions, other keys like: fields, order, page, contain, joins, recursive -- similar to find(). Again, I do appreciate. Kevin -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: Be Aware of Pirated Copy of CakePhp 2.x User Management Plugin
is google groups really becoming the new marketplace for software? really? there have been quite a few posts now regarding ads to non-free products Am Freitag, 27. Juli 2012 20:56:54 UTC+2 schrieb Ivan Suzen: Hi All, I found the *original website* for CakePhp 2.x User Management Plugin and I would like to share it with you all because I found some *pirated sites*which are selling this plugin. I believe, the real developer of the plugin should get the appreciation and profits for his plugin.. Don’t you feel that ??? The original website is http://umpremium.ektasoftwares.com. Go through this website once, you will feel that this is the actual website. On this site, you can see *Google Ads* , it means Google has validated this site so it is neither fake nor pirated, it is original site. Even the developer of the plugin has mentioned his contact details (Email id, Phone no etc) and he is available for 24x7 to help you if you have any issue regarding this plugin. I have purchaged this plugin from this site and I really appreciate the developer and I am really happy with 24x7 support. I really love his way to solve my problems on time. You can get the User Management Plugin Version 1.0 for free on http://usermgmt.ektasoftwares.com/ and User Management Plugin Version 2.0 for a very low cost on http://www.ektasoftwares.com/productshttp://www.ektasoftwares.com/products . Please guys be aware of pirated copy of the CakePhp 2.x User Management Plugin and purchase the original plugin from original website. Thanks, Ivan -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php