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
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
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
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
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
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
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
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
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
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.
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
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
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
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
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
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
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
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
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
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
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
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
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
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'
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?
--~--~-~--~---
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
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
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
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
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
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
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
32 matches
Mail list logo