Re: R: Auditing

2007-08-21 Thread zipman
The problem although is that still I do not have access to the new row,namely I don't know what field was updated. Is there any way to do this without triggers? On Aug 21, 4:19 pm, zipman <[EMAIL PROTECTED]> wrote: > Thanks a lot guys. I am using postgres and cakephp 1.1 > and I

Re: R: Auditing

2007-08-21 Thread zipman
Thanks a lot guys. I am using postgres and cakephp 1.1 and I think I'd rather first try the approach m.sbragi suggested. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send

Auditing

2007-08-20 Thread zipman
Hello, I have finished a project and now I want to add auditing support, as to know when an update or delete occured and with what parameters. I guess the solution to my problem is the afterSave callback which I'll have to put in the app_model.php. The problem is I don't know how to access the pa

Re: Problem with controller and delay

2007-07-10 Thread zipman
I followed the tutorial http://bakery.cakephp.org/articles/view/calling-controller-actions-from-cron-and-the-command-line and now I have no problem. Thanks On Jul 11, 2:43 am, zipman <[EMAIL PROTECTED]> wrote: > OK. > The question is why a method (action) inside a controller affects

Re: Problem with controller and delay

2007-07-10 Thread zipman
action even from another controller until this particular ends. Is that supposed to happen? On Jul 11, 2:05 am, "John David Anderson (_psychic_)" <[EMAIL PROTECTED]> wrote: > On Jul 9, 2007, at 11:45 AM, zipman wrote: > > > > > > > I have a controller th

Re: Problem with controller and delay

2007-07-10 Thread zipman
Anyone? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more opti

Problem with controller and delay

2007-07-09 Thread zipman
I have a controller that inside I have placed actions that are called through cron by using curl ( or lynx) and the full url to the action. The problem is that some of these actions may take sometime to complete, eg. I contact a remote sms gateway to send an sms and if no connection is made I use

Re: Pass an array as a parameter

2007-03-02 Thread zipman
No, that's not what I mean. I don't want to get the arguments in the function body. My problem is how to call the function. If the argument was just a string I could write http://localhost/cake/tests/foo/ some_string','main')> Click me (update_div is a javascript function to change innerHt

Pass an array as a parameter

2007-03-02 Thread zipman
Hello, is there any way that I can call a function through url and pass an array as a parameter? For example if I have a function in my test controller function lala($id) { } I can call it through /tests/lala/id but if function foo($array) { } where $array is an array how can I call a contr

Re: Transactions support

2007-01-27 Thread zipman
Is there any workaround that I can do in any lower level, in order to get transactions? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.

Re: Transactions support

2007-01-25 Thread zipman
Anyone? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more optio

Transactions support

2007-01-24 Thread zipman
Hello, I am using postgres as a database which supports transactions. Is there any update on how I can use transactions in cakephp? Somewhere i have seen the following piece of code: 1- $this->model->begin(); 2- $result = $this->model->save(); 3- $sql = 'some query'; 4- $this->model->execute( $s

Re: Postgres problem

2006-10-05 Thread zipman
Anyone? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more optio

Postgres problem

2006-10-04 Thread zipman
I was using mysql as database up to now and had no problem. The problem is that now I have to move to postgresql and cakephp doesn't seem to cooperate. I changed the settings in database.php and I get Your database configuration file is present. Cake is able to connect to the database. in the m

Re: Problem with urls

2006-10-04 Thread zipman
Actually now I am using postgres whereas before I was using mysql. The problem I get is Warning: pg_query(): Query failed: ERROR: Namespace "information_schema" does not exist . in /home/mgovadmin/cake/libs/model/dbo/dbo_postgres.php on line 111 What more do I have to do in postgres than mysql so

Problem with urls

2006-10-04 Thread zipman
I have tried the default configuration of files in my home and it works fine. I just use the .tar.gz and place my files in folder app. For example I have a table admins i create the appropriate model,controller and view. And then I access it through /something/cake/admins. I uploaded to another s

Session problem only with php v 4.x.x

2006-09-15 Thread zipman
I am on a project and all this time I was developing using php 5.1.4. I haven't used any php 4.x.x incompatible code. The problem is that I recently learned that the hosted enviroment provided only php 4.x.x and I tried to switch ,as I know cakephp is compatible with both php 4 and 5. The problem

Re: Save function executes before it should

2006-09-15 Thread zipman
Do you see any problem? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED

Re: Save function executes before it should

2006-09-14 Thread zipman
AD7six war right. What i get in the log is 06-09-14 14:32:47 Error: Package_credits: 1 06-09-14 14:32:47 Error: Old_credits: 0 06-09-14 14:32:47 Error: New_credits: 1 06-09-14 14:32:48 Error: Package_credits: 1 06-09-14 14:32:48 Error: Old_credits: 1 06-09-14 14:32:48 Error: New_credits: 2 for j

Re: Save function executes before it should

2006-09-13 Thread zipman
The queries executed are the below 1 SELECT `CreditPackage`.`credits` FROM `credit_packages` AS `CreditPackage` WHERE id=1 LIMIT 1 1 1 0 2 SELECT `Customer`.`credits`, `Customer`.`firm` FROM `customers` AS `Customer` WHERE id=1 LIMIT 1 1 1

Re: Save function executes before it should

2006-09-12 Thread zipman
Anyone? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more optio

Re: Problem:data retrieved from database are cached

2006-09-12 Thread zipman
AD7six wrote: > do you have 2 find calls in the same method? > > i.e do you have > > $Model->find > .. do something and maybe save > $Model->find > > ? > > If you do - set cacheQueries = false on the model at the beginning of > your action (or anywhere else appropriate) so that it doesn´t take th

Re: Problem:data retrieved from database are cached

2006-09-11 Thread zipman
Yes,that's the case. I get different results when i access a link than when i press F5. When i set /app/tmp/cache/models folder not to be writeable i have no problem. But even my browser( firefox) is the problem(I'm using a plugin through which I disable cache) how can i surpass this ,so that no c

Save function executes before it should

2006-09-11 Thread zipman
I have CustomersController and i have in it var $uses = array('Customer','CreditPackage'); so that it uses CreditPackage Model too. I have the following function function giveCredits($customer_id,$credit_package_id) { $credits=$this->CreditPackage->find("id=".$credit_package_id,array('credits'

Re: Problem:data retrieved from database are cached

2006-09-11 Thread zipman
Thanks for the reply. But what if I am in production level? (for me it doesn't work even when debug=1). Should i change the permissions for the folder models so that it is not writeable?(That works) Isn't there any property in any file, that doesn't allow cache for models? --~--~-~--~---

Problem:data retrieved from database are cached

2006-09-11 Thread zipman
I have a model and I save some data through a form in the according table. The problem is that when I go to the link that regards the function that retrieves the data from the database and just presents them, the new data are not shown, even though they exist in the database. Only when i refresh t

Re: cake & dojo (generally external libraries)

2006-07-30 Thread zipman
Thanx for the reply... I have tried all the above and the problem remains. The new rendered view ignores dojoType="Checkbox". I wonder if the problem has to do with dojo. Has anyone worked with dojo and cakephp using ajax requests that has the above working? I don't know if I have to quit dojo or

Re: cake & dojo (generally external libraries)

2006-07-30 Thread zipman
So there is no way to solve the problem? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to

Re: cake & dojo (generally external libraries)

2006-07-30 Thread zipman
But in the above example ajax is my default layout. As you can see function view($id) { if($id=="test"){ $this->render('test', 'ajax'); } } The first time is rendered properly, but when I click on the link to itself through ajax->link I have the same problem even when I load all the external libr

Re: cake & dojo (generally external libraries)

2006-07-29 Thread zipman
nate wrote: > Because of the way Ajax (well, Prototype) works, you can't dynamically > load external JavaScript libraries in Ajax calls. So putting > $javascript->link( ) calls in your Ajax layout won't do anything for > you. Any external libraries you use in a page must be loaded on the > init

Re: Switching Layouts

2006-07-29 Thread zipman
kdbdallas wrote: > I figured it out. > > Thanks all > > > $this->render(view, layout); if you want to use the same layout for all the views of the controller you can also use ar $layout = layout; --~--~-~--~~~---~--~~ You received this message because you are su

cake & dojo (generally external libraries)

2006-07-29 Thread zipman
I have some problems with cakephp and dojo. The problem is that when I access a web page I have no problem seeing dojo libraries but when I access it through $ajax->link some modules are not loaded or not functioning properly. I guess there must be a problem with rendering and layout. For example