Re: how to use transactions in cakephp

2010-12-24 Thread Zeu5
Hi all, it did not work. I have tried This is for a Merchant Model; $datasource = $this-getDataSource(); $datasource-begin($this); $result = $this-saveAll($data); if (!$result) { $datasource-rollback($this); return false; } /** * do something to form a $domainData array **/ $result =

Re: A Deeper Insights to Database Config Settings

2010-12-24 Thread AD7six
On Dec 24, 1:15 am, euromark dereurom...@googlemail.com wrote: @AD the database.php is never included in any rep it is the same for all environments so you can just drag and drop it of COURSE this should be handled differently for ONLINE testing enviroments, i agree Why make any excpetion

Re: A Deeper Insights to Database Config Settings

2010-12-24 Thread AD7six
PS I don't understand this you can also see that i use a special prefix for testing .. but obviously you've already managed to mix your environment's data - so surely you recognise the weakness in the technique. AD Check out the new CakePHP Questions site http://cakeqs.org and help others with

Re: how to use transactions in cakephp

2010-12-24 Thread Amit Badkas
Hi, I didn't know that you need to use saveAll() inside transaction. By default, saveAll() starts new transaction. So change your saveAll() call from $result = $this-saveAll($data); to $result = $this-saveAll($data, array('atomic' = false)); Hope this helps. Amit Badkas PHP Applications for

Re: how to use transactions in cakephp

2010-12-24 Thread Zeu5
Thanks for the tip Amit. I shall go try that. Any idea why i cannot subscribe to this particular thread via my gmail? On Dec 24, 4:31 pm, Amit Badkas amit.sanis...@gmail.com wrote: Hi, I didn't know that you need to use saveAll() inside transaction. By default, saveAll() starts new

Re: To use App Controller or not to use

2010-12-24 Thread Stephen
The AppController is related to every controller you create, this means every controller will inherit the functions and settings from the AppController. Anything you do in the app_controller or the app_model will be executed in the controllers and models which extend it, unless you override a

Re: Comments Plugin for CakePHP

2010-12-24 Thread Stephen
A slug (sometimes aka a URI) is for pretty-urls /users/view/stephen Stephen would be the slug (it isn't an ID) /members/stephen-22-years-old Stephen-22-years-old could also be a slug. It's to do with Routing strings On 24 December 2010 03:20, georgeman confidentia...@gmail.com wrote: I am

Re: how to use transactions in cakephp

2010-12-24 Thread Zeu5
Hi Amit, it worked. Thank you very much. Saw your website. Interesting. Apparently i had previously added you to my watchlist for providers who appear to be experienced in cakephp. Perhaps next time when i seek major help in cakephp, i will consider your company more. :) Have a good weekend.

Re: A Deeper Insights to Database Config Settings

2010-12-24 Thread euromark
but obviously you've already managed to mix your environment's data that was before I wrote my little addons :) wrong! i do have different salts. i just use a specific config_private (as explained somewhere in this article) which overrides the defaults. this is the only file that is actually

Re: A Deeper Insights to Database Config Settings

2010-12-24 Thread AD7six
On Dec 24, 2:19 pm, euromark dereurom...@googlemail.com wrote: but obviously you've already managed to mix your environment's data that was before I wrote my little addons :) wrong! i do have different salts. i just use a specific config_private (as explained somewhere in this article)

Re: To use App Controller or not to use

2010-12-24 Thread John Maxim
Thanks Stephen, I may get to test that later in my App. On Dec 24, 7:01 pm, Stephen step...@ninjacodermonkey.co.uk wrote: The AppController is related to every controller you create, this means every controller will inherit the functions and settings from the AppController. Anything you do

Re: A Deeper Insights to Database Config Settings

2010-12-24 Thread John Maxim
Hi AD, Thanks for commenting. It makes it clearer that now your suggestion seems to be same as Stephen's. I don't have to fret which other methods are better. But thanks too euromark, I'm just not good at hacking. check the book re useDbConfig; follow a tutorial demonstrating how to use the test

allow access to DB from remote server

2010-12-24 Thread cricket
using 1.2.9 (I'll be updating this site to 1.3.x soon) I need to allow a third party to access the database of an app from within their own online system. For the time being, this will only involve a request from them, the response being a subset of the members table data. I considered simply

Please some explanations on persistModel attribute and perfomance issues

2010-12-24 Thread huoxito
I am trying to make cake not generate the kinds of queries below every minute or so. Reading the book I found the controller attribute persistModel. I set it true in one of my controllers but these show full columns queries still shows up every minute. 1SHOW FULL COLUMNS FROM `drg_aros`

how to use ssl to secure subdomains of a cakephp app

2010-12-24 Thread Zeu5
Hi there, my cakephp app allows users to create subdomains. for eg, user1 creates subdomain1.example.com and user2 creates subdomain2.example.com and so on... all subdomains are pointing to the same app folder. if a new subdomain is created, i merely keep track of it by inserting new record

Re: how to use ssl to secure subdomains of a cakephp app

2010-12-24 Thread Matt Murphy
In order to get to user1.domain.com, your user would have to log in. Am I right in thinking that is on the list of encrypted events? And certainly there must be a few others like user management functions? Ok, shutting up now. Unless you have a wildcart cert, you'll have to use method a.

Re: how to use ssl to secure subdomains of a cakephp app

2010-12-24 Thread Zeu5
Thanks Matt. I spoke to poLK in #cakephp quite some time after my posting. She (i think) mentioned the same idea about using wildcard cert. Thanks for the tip. On Dec 25, 9:17 am, Matt Murphy mattyh...@gmail.com wrote: In order to get to user1.domain.com, your user would have to log in.  Am

Re: A Deeper Insights to Database Config Settings

2010-12-24 Thread euromark
@john its not a hack - not even closely its a valid and in my opinion very well working strategy which worked for several years and several apps which repeatedly need updates and stuff. in the end its sth you need to decide for yourself it also depends on the way you are deploying your apps. in