I still have yet to find a straight forward way to do this, so ill
simply do something like this:
function update($user_id, $fields) {
if (is_array($fields)) {
App::import('Sanitize');
Sanitize::clean($fields);
$cleanFields = array();
json would be a good ideia if need pagination for example and you dont
need a view exiting before..
Regards,
--
Att,
Everton Yoshitani
www.notreve.com
+81-80-3660-6560
2008/12/18 brian :
>
> On Wed, Dec 17, 2008 at 6:29 PM, Hipnotik wrote:
>>
>> Hi
>> I would like to build 2 javascript arrays
On Wed, Dec 17, 2008 at 6:29 PM, Hipnotik wrote:
>
> Hi
> I would like to build 2 javascript arrays in the view from data loaded
> in controller.
>
> Solution 1:
> use getJSON in $(document.ready)
> ... not good for me
>
> Solution 2:
> set 2 php arrays in controller's method as available in the
I'm trying to do a simple comparison search, and for some reason its
giving me an error. I feel like I am missing something blindingly
obvious, but the only thing that suggests itself at the moment is some
sort of bug in the way that conditions are parsed.
Doing the following:
$this->data['user_
Hallo Martin,
Thank you for your constructive input! SQL seems not to be the
problem, because pages that don't require any SQL query run as slow as
pages that require some. (Also the amount of affected rows is often
not more than just a couple of)
Following your advice I did 'benchmark' the appl
Hi Vikas,
I am relatively new to CakePHP too. I learned lots by using "cake
bake" to create default Models, Views & Controllers, then reverse
engineering them to see how it's done. I would recommend this
approach, in conjunction with lots of consultation to the Manual.
Cheers Paul.
On Dec
Hi Oribium,
I have had this problem. "This field cannot be left blank" is Cake's
default response when the data you are saving does not meet your data
structure and you haven't configured a validation message for the
validation scenario.
For example: if you specify a max field length of 3 chara
Hi
I would like to build 2 javascript arrays in the view from data loaded
in controller.
Solution 1:
use getJSON in $(document.ready)
... not good for me
Solution 2:
set 2 php arrays in controller's method as available in the view:
$this->set("arr1", $arr1);
$this->set("arr2", $arr2);
and the bu
Has anyone had experience integrating the CakePHP Auth Component with
ExtJS?
I have found that when a user is not logged-in and they try to view an
ExtJS page: the page is displayed, but without any information passed
from the controller. I would expect that they would be redirected to
the login
hello everyone,
as I m new for cake php i m leaning myself cakephp...
I want help about fill the form when we edit any record from databse.
for example I have a edit() method in posts_controller as per below..:
---
Thank you for you reply, Rob.
I simplified things trying to get the troubleshooting more easy. I
created
a model, and a view with only one field, "first_name". I also created
an
add function in the controller which is supposed to validate input
rather
then saving data to the database. The problem
That's exactly what saveAll() is for...
http://teknoid.wordpress.com/2008/08/01/practical-use-of-saveall-part-1-working-with-multiple-models/
There are a few other posts regarding this topic on my blog... Also,
it is covered in the manual ;)
On Dec 17, 4:38 pm, volka wrote:
> Hi there,
> I'd li
Looks like I am going to need to use 'POP before SMTP' as that is what
my web hosts support (at least for code not running on the webserver,
such as my dev code).
Does the email component support this?
--
Fedora 9 : sulphur is good for the skin
( www.pembo13.com )
--~--~-~--~~-
Hi Eddie,
I (hopefully) described my problem a way better in this newer post:
http://groups.google.com/group/cake-php/browse_thread/thread/287a47eb678cc8a1#
(I want to store unique data from the same form. )
On 16 Dez., 16:04, Smelly_Eddie wrote:
> I'm not sure I understand.
>
> Are you attem
Hi there,
I have been googling for a cheatsheet for cakephp 1.2 with no result
but only finding some for the former versions of cakephp.
As the constants like SESSION_STRING etc, were changed with the 1.2 it
would be great to have an updated cheasheet. :-)
Kind regards, volka
--~--~-~--~-
Hi there,
I'd like to implement a form with which I want to achieve that the
parent model -objects and the child-models-objects (hasMany) are being
stored in the database by clicking on one submit button.
For example:
Parent-Model 'book' (with attributes like 'author', 'title', etc)
hasMany 'chap
Thank you so much, I completely overlooked that. My password field was
only a 30 varchar just as you stated. Thank you so much once again.
Merry xmas.
On Dec 17, 5:02 pm, gearvOsh wrote:
> Try this:http://www.milesj.me/blog/read/debugging-cakephp-auth/
>
> Or it could also be your password colum
Oh but the extra code is for extra form validation on my end. Using
invalidate() adds errors to the array that I can then loop through and
display in the view (I dislike having the error show up after the
input).
On Dec 17, 3:24 am, AD7six wrote:
> On Dec 17, 9:56 am, gearvOsh wrote:
>
> > Nope
Try this: http://www.milesj.me/blog/read/debugging-cakephp-auth/
Or it could also be your password column in your database is at like
30 varchar... you would at least need 50+ if your hashing passwords.
Its possible some of the hashed password got cut off.
On Dec 17, 11:29 am, Christian wrote:
Honestly things like that I would just manually code or even use
Wordpress just because its so simple. You could use CakePHP simply for
the practice and automation, but there are no downsides using Cake.
Perhaps just a ton of files the client wouldn't understand what
they're for.
--~--~-~-
I'm interested in starting to use CakePHP.
I currently have a really simple project, where I'm going to build a
simple blog into a user's home page and maybe give them a the ability
to update one or two bits of text on their site through a simple user
interface.
So, given I can do the above quit
jon, yeah, makes sense re: beforeFilter()
If anyone has insights into how to work this code into the router, I'd
appreciate your commentary. If not, I'll start dropping it into my
controller methods.
--~--~-~--~~~---~--~~
You received this message because you are s
This one has me completely stumped!
The validation rule I've pasted below works fine on my local machine, but
when I test a user registration on my server, it kicks the "Letters and
numbers only" error message, even if the input is valid.
Both local and server are running Cake 1.2.0.7692 RC3 an
Hi RyOnLife
> Your idea of 301ing to the correct page is better than my thought of
> 404ing.
I think you'd need a 404'er as well, as this is only for items that
exist but have mangled urls.
I'm also thinking of extending it to cover past urls, like a URL
history per item so I can 301 from an
I have what I suppose is a 3-level model relationship. I have a
vendors table that is "extended" by a commercial_vendors table. A
commercial_vendor "is-a" vendor so the commercial_vendors table's
primary key is vendor_id which is also a foreign key referencing the
vendors table's id field. Addi
Hello,
I've been trying to find an error that does not let me login.
Basically when I submit the correct username and password it says its
a wrong password. I have not yet changed the layout views and in the
default layout a table shows up with the SQL queries that were
executed, well there I not
On Wed, Dec 17, 2008 at 2:10 PM, Rob Wilkerson wrote:
> Would you mind expanding on that just a bit? How would I look at the
> error data? In my case, I'd like to echo back an error message. What
> structure do I look at to do so?
I may have spoken a little too soon. This code still returns the
Yeah, and I forgot to mention that the API docs do let you drill into
the source, so you can wade through the code if the docs aren't self-
explanatory.
The problem with the API docs, is that they are typical code generated
documentation, so it's helpful once you have an understanding of the
fram
@AD7six: Would you mind expanding on that?
--~--~-~--~~~---~--~~
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
On Dec 17, 8:06 pm, RyOnLife wrote:
> Thanks, that's actually much along the lines of what I was thinking.
> Your idea of 301ing to the correct page is better than my thought of
> 404ing. I don't like the idea of having to paste the seoCheck() into
> all of my controller methods, so could we wo
First, you can validate if you are getting the JavaScript or not by
loading up Firebug and inspecting the headers.
To include the JS, you need the full file name, so your line should
look like:
echo $javascript->link('prototype.js', false);
On Dec 16, 10:01 pm, Todd M wrote:
> I'm trying
On Wed, Dec 17, 2008 at 1:48 PM, Rob wrote:
>
> All you need to do is check that you got something back from the
> saveAll, so you wrap it like:
>
> if ($this->User->saveAll($this->data)){
> -- success
> }
> else {
> -- failure
> }
>
> Then you can look at the error data in the failure sec
All you need to do is check that you got something back from the
saveAll, so you wrap it like:
if ($this->User->saveAll($this->data)){
-- success
}
else {
-- failure
}
Then you can look at the error data in the failure section ...
On Dec 17, 10:16 am, Rob Wilkerson wrote:
> Today, I
It works fine, but in my experience it's a bit of overkill for most
things (not to mention a pain for administration).
It does give you really fine grained control if you do use it.
On Dec 17, 1:39 am, "Liebermann, Anja Carolin"
wrote:
> Hi,
>
> Just to be curious:
>
> Has anybody ever mapped s
Thanks, that's actually much along the lines of what I was thinking.
Your idea of 301ing to the correct page is better than my thought of
404ing. I don't like the idea of having to paste the seoCheck() into
all of my controller methods, so could we work this into beforeFiler
()? Something like...
Without looking at your data model, I can't say for sure, but it would
seem like you may be breaking a rule that is implied by the table.
That said, you might want to add a message to your $validate like:
'last_name' => array(
'alphaNumeric' => array(
Firstly, this references an earlier post of mine where my delete
action was failing intermittently.
http://groups.google.com/group/cake-php/browse_thread/thread/d92ab3a051409d/1e22dcd81cec0c7a
Following advice from AD7six I added some log() calls and was able to
spot that around 50% of the time
Sorry! The actual route code is:
Router::connect('/:slug/pages/*',array
('controller'=>'pages','action'=>'index'));
On Dec 17, 1:30 pm, mwcbrent wrote:
> I've found a handful of posts about this but no solutions that fit my
> problem.
>
> In my routes.php I have:
>
> Router::connect('/:slug/pa
Sorry my actual Route looks like:
Router::connect('/:slug/pages/*',array
('controller'=>'scenes','action'=>'index'));
On Dec 17, 1:30 pm, mwcbrent wrote:
> I've found a handful of posts about this but no solutions that fit my
> problem.
>
> In my routes.php I have:
>
> Router::connect('/:slug/p
I've found a handful of posts about this but no solutions that fit my
problem.
In my routes.php I have:
Router::connect('/:slug/pages/index', array('controller' => 'pages',
'action' => 'index'));
But when I use the Paginator it only gives me:
/pages/index:page2
I'd like to get:
/myslug/index
The best article I've seen on getting everything to work properly on
OS X is at
http://www.procata.com/blog/archives/2007/10/28/working-with-php-5-in-mac-os-x-105/
Since Mac OS X includes Apache and PHP (at least since 10.5), all you
need to do is enable it.
He goes through step by step
On Dec
Today, I wrote my first code to saveAll() from form input and, knowing
I probably didn't do it right the first time, I wrapped my save
attempt in a try/catch block. Imagine my surprise when everything
returned success messages, but nothing actually got saved. A look at
the source indicated that e
OK, when you say it's working, what URL are you going to ?
If it is http://localhost/todo/ then your app name is todo, so todo/
items should be using your items_controller.php to get you the
index.ctp view for your items assuming everything is baked correctly.
When you say you are getting a "Not
thanks for the modifications. I am happy it works for you too.
/Martin
On Dec 17, 5:56 pm, Matt Huggins wrote:
> Your solution worked flawlessly! I ended up making two small
> changes. First, I changed your references for 'id' to $this->primaryKey so
> that it can work with any model. Secon
Hi,
I'm writing my first Controller unit tests, having now got Model & Web
testing running :)
I can get the Controller unit test example in the cookbook running on
a simple users controller (http://book.cakephp.org/view/366/Testing-
controllers).
However once I have included the Auth component i
On Wed, Dec 17, 2008 at 11:30 AM, caminante wrote:
>
> Hello, I'm having a problem in which the Email component
This sucks so bar. For some reason I though Email wuld be a helper and
not a component.
Spent a few hours last night trying to get email to work properly,
only to find today that it h
Hello, I'm having a problem in which the Email component "parses" the
body of the message and finds a "to: " and discards it.
Here is the code:
$body = "Formulario de contacto enviado a través del website\n\n
Nombre: {$this->data['ContactForm']['nombre']}\n
Fecha de nacimiento: {$this->data['Cont
Thanks for the info...
I changed the debug parameter to 2, but I get the same error...
Also, I forgot to mention that "todo" is the name of the app, and
items the name of the controller.
Thanks again and I'll keep trying :)
On Dec 17, 2:09 am, majna wrote:
> app/core.php - turn debug to 2.
>
I struggled with the "unformatted black text on a white background" all
night last night. I had the same .htaccess problem. Once I put the
correct file into the root web folder... wahlah...
I open my email today to find that you had the same problem, finding
the same answer. We were strugglin
Hey Everyone,
Like Mark, I had been having serious issues with Cake on Media Temple
GS. So much so that I was considering going back to Rails.
It would take up to 20 seconds sometimes to load a page that hadn't
been hit in a few hours.
Here is what fixed it
1. RC3 ... Some major speed improveme
Hi,
Im my DB, i have one table called 'user' with a field called profile,
and only the profile 'admin' can add a new user. Is wrong i put one if
in the add action that execute only if the profile is 'admin'?
I am using AuthComponent.
Thanks.
--~--~-~--~~~---~--~
The joins are automatically done for you if your models have the
correct relationships defined.
You'd need to define your hasMany relationships, and their
corresponding belongsTo in your models.
In your Advert model:
// Link to signup slots and user groups ...
var $hasMany = array(
Your solution worked flawlessly! I ended up making two small
changes. First, I changed your references for 'id' to $this-
>primaryKey so that it can work with any model. Second, I put the
afterFind/_afterFind into app_model.php so that it will call the
doAfterFind of any model that implements i
> function demo($arg1, $arg2) {
> $args = func_get_args();
> $arg3 = $args[2];
>
> }
how about a method which checks the expected number of methods and
redirects to that with a 301 if you have more than the expected?
// App controller method
public function seoCheck($funcArgs=null, $allowed
Thanks for sharing, I'll definitely try this out! I really hope they
fix this before 1.2 is considered a final release. The documentation
is completely wrong otherwise.
On Dec 17, 5:36 am, "martin.westin...@gmail.com"
wrote:
> Hi Matt,
> I ended up creating a special set of functions for this.
Hi Bernhard,
I am sorry, I have no straight answer for what is slowing your site
down and can only offer suggestions of where to keep investigating.
I think you were on to something a few posts back when you stated that
XDebug reported your botstrap slow and more specifically App::import
(). In y
function demo($arg1, $arg2) {
$args = func_get_args();
$arg3 = $args[2];
}
On Dec 17, 3:44 pm, RyOnLife wrote:
> This issue has remained at the back of my mind, and I think I have a
> really simple solution. I need one question answered first:
>
> examples_controller.php has a function: demo
Smelly_Eddie wrote:
> This would probably be a question better left for the page you
> included :)
>
>
>
I've found a solution.
And included on the mentioned page ;)
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
This issue has remained at the back of my mind, and I think I have a
really simple solution. I need one question answered first:
examples_controller.php has a function: demo($arg1, $arg2) { ... }
call up this URL: /examples/demo/val1/val2/val3
Inside the controller logic for demo(), how can I re
I had the same problem. Took me forever to figure it out. You can
also turn on hidden files in your finder.
http://www.macworld.com/article/51830/2006/07/showallfinder.html
What I ended up doing is creating these commands in automator as a
plugin. Now I can just pull up my right click menu an
On 17 dic, 13:02, Adriano Varoli Piazza wrote:
>
> What about the other 285 (as of right now) open
> tickets?https://trac.cakephp.org/roadmap
Oh, they're not bugs or security issues.
--
Saludos
Adriano
--~--~-~--~~~---~--~~
You received this message because you
On 17 dic, 12:43, 703designs wrote:
> https://trac.cakephp.org/ticket/5895
>
> If not, what does? I'd like to help out in any way possible to tie up
> any loose ends to help push through to a final 1.2 release which will
> no doubt be a boost for the project.
>
> Thomas
What about the other 285
I forgot to mention ...
I used CakePHP 1.2 RC1 and RC3 => Seems to make no difference
according to the response times.
At the Moment I use 1.2 RC1 -- is RC3 the better choice? (I haven't
tested the website with RC3 enough so I kept RC1 running)
Thanks for all,
Bernhard
--~--~-~--~~
Dear Dérico,
This is in my router.php ...
Router::connect('/', array('controller' => 'contents', 'action' =>
'home'));
Router::connect('/pages/*', array('controller' => 'pages', 'action'
=> 'display'));
Router::connect(
'/:language/',
array
https://trac.cakephp.org/ticket/5895
If not, what does? I'd like to help out in any way possible to tie up
any loose ends to help push through to a final 1.2 release which will
no doubt be a boost for the project.
Thomas
--~--~-~--~~~---~--~~
You received this mes
By taxed server I meant a heavily loaded server. Sometimes on shared
servers your processes are limited and database response times can be
slow. If you are getting really slow load on entirely static pages
that could point to something else though. Perhaps limitations in
processing power or slow
WallyJ
I would guess.
Basically your main config is saying "dont let any sub directory's
htaccess files do anything, I'm the boss!"
So when mod_rewrite is inactive, there is no issue. But when you
activate mod_rewrite you create a conflict which results in the access
forbidden.
You'll need
Please don't post job offers.
Try LinkedIn or your local wanted ads. :)
On Dec 16, 11:58 am, matt wrote:
> I'm looking for a high quality Cake PHP developer for a three-month,
> full-time commitment which could very likely be extended to a
> permanent position.
>
> We are a two year-old mobile
I believe you must make the three fields individually and every input
accepts as a second parameter an array with options. You can use the
'after' option for them.
Check the manual:
http://book.cakephp.org/view/191/options-before-options-between-options-separator-a
Greetings.
On 29 oct, 02:09,
I would try your school's job posting board or a professional
networking site like LinkedIn.
I doubt you'll find help here since users prefer to keep this group
dedicated to programming issues and not job offers. (As it should be)
On Dec 16, 9:14 am, Pascal Messana wrote:
> Hi!
>
> I am a stu
This would probably be a question better left for the page you
included :)
On Dec 16, 7:11 am, Alexandru Ciobanu wrote:
> Hi,
>
> I'm trying to use jared's Wizard component with admin routing but can't
> seem to figure it
> out.http://bakery.cakephp.org/articles/view/wizard-component-1-2-1
> An
On 16 dic, 11:44, Sebastian Göttschkes wrote:
> Additionally, if I add a valid birthday, it is saved correctly. When
> editing the employee, I would like to get the birthday viewed in the
> format dd.mm.. How can I tell cake to view the birthday like this?
Ok, here's what I've done:
in the
Hey! it's me again... :-)
Date: Wed, 17 Dec 2008 12:39:41 GMT
Server: Apache/2.0.59 (Unix)
X-CMS: www.genesys-network.com
What is this X-CMS header? Are you running some sort of CMS in the
same host?
Perhaps there could be some sort of conflict of this CMS and the
CakePHP...
On Dec 16, 9:09 a
another just that just came up to my mind how are you dealing with the
l10n thing?
How did you structure the router.php? I mean... It could be a point of
failure...
On Dec 16, 9:09 am, GeneSys wrote:
> Hey Folks!
>
> So I'm using CakePHP for a couple of months now. The company I am
> working
I opened your website at firebug...
It took 3s to load /v4/...
You said you're using XDebug to profile your application... is XDebug
ever turned on?
Debugging tools may slow down a bit your application... wouldn't you
say?
On Dec 16, 9:09 am, GeneSys wrote:
> Hey Folks!
>
> So I'm using Ca
Hi Matt,
I ended up creating a special set of functions for this.
afterFind() calls _afterFind()
_afterFind() locates the data and calls doAfterFind()
This works for what I use afterFind for.
I will only have one place to edit if the data-structires change or I
find I have missed something.
It
On Dec 17, 9:56 am, gearvOsh wrote:
> Nope, still doesn't work. This seems like a lot of hassle/steps in
> between just to do something simple like update.
That's a lot of fat controller code for something as simple as that
too ;). e.g. You should almost never need to do this in a controller
"
Hi John,
You usually don't "catch" that in the way you expect. If your
controller is protected and your code in the controller executes then
the user is logged in.
But you can explicitly check. You can look for $this->Auth->user()
If there is data there then you are logged in.
For example:
$user
Hi,
I had a few suggestions, but I should state that I have at times found
this simple task of saving data a bit confusing... these are just
suggestions.
First create or not?
saveField() calls create internally. Your create should not do much
one way or the other.
See:
https://trac.cakephp.org/b
I am taking a look at cake 1.2, and I run into problems with the
validation
of form data. I took advantage of the console application to bake some
views, a model, and a controller based on an existing MySQL-database.
I
don't yet have a deep understanding of cake, and would happily welcome
hints an
Hi Bernhard (GeneSys),
I found a really interesting stuff about cakePHP
performance tuning. If you read the post you would see that it´s
mentioned something about $html->link is slowing down the scripts. If
you are about to profiling your scripts maybe you could test that in
ord
Hi Mark,
- Yes, tmp folders are world writable
- Debug is set to 0
- No, the slowdown is not a query problem
I'm not quite sure what you do mean by 'taxed server' => It is hosted
on a shared host.
What just makes me curious about is that the plain php website is
running quite fast and cakePH
app/core.php - turn debug to 2.
try localhost/items/todo instead localhost/todo/items.
On Dec 17, 12:27 am, aq wrote:
> I have been struggling with this for days, and I can't find a
> solution...
>
> CakePhp is working ok. I get the nice welcome screen with all the
> fancy colors. The connectio
Hi,
Just to be curious:
Has anybody ever mapped successfully permissions via
$this->Auth->mapActions to CRUD with Auth and ACL?
Teh idea seems to be wonderful, but in reality id didn't work out for
me.
Anja
--~--~-~--~~~---~--~~
You received this message becaus
It's not necessary that you must call create() method before inserting
record. This method is used to reset model parameters like id, validation
errors etc.,
https://trac.cakephp.org/browser/branches/1.2.x.x/cake/libs/model/model.php#L968
2008/12/17 gearvOsh
>
> I was only doing what the other
I was only doing what the other guy suggested, I usually do not have
the create() method.
--~--~-~--~~~---~--~~
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
On Wed, Dec 17, 2008 at 2:24 AM, Liebermann, Anja Carolin
wrote:
>
> Hi Arthur,
>
> Thank you for your answer. I tackled my problem now in a kind I did hope I
> didn't need.
>
> Instead of setting CRUD permissions for each controller and mapping the
> actions to the CRUD options, I give now ful
You are calling $this->User->create(); signifying that you want to
create a new field not update.
On Dec 17, 12:56 am, gearvOsh wrote:
> Nope, still doesn't work. This seems like a lot of hassle/steps in
> between just to do something simple like update.
>
> Heres a snippet of my code:
>
> if ($
Nope, still doesn't work. This seems like a lot of hassle/steps in
between just to do something simple like update.
Heres a snippet of my code:
if ($this->User->validates()) {
$userObj = $this->User->find('first', array(
'conditions' => array(
'User.username' => $this->da
Please try once again by calling *$this->User->create()* before setting id
2008/12/17 gearvOsh
>
> Tried it again that way and heres the error:
>
> Warning (512): SQL Error: 1062: Duplicate entry '' for key 2 [CORE\cake
> \libs\model\datasources\dbo_source.php, line 521]
> Query: INSERT INTO `u
I'm very new to CakePHP, but to Mac OS X, PHP or Apache Mod_Rewrite.
I had problems getting the initial CakePHP installation to show the
styled landing page; instead, I saw unstyled black-on-white text.
To install CakePHP, I downloaded the appropriate .dmg file, then
Finder-dragged the image file
Tried it again that way and heres the error:
Warning (512): SQL Error: 1062: Duplicate entry '' for key 2 [CORE\cake
\libs\model\datasources\dbo_source.php, line 521]
Query: INSERT INTO `users` (`status`) VALUES ('inactive')
It keeps inserting, even if I set the id.
--~--~-~--~~-
Hi Arthur,
Thank you for your answer. I tackled my problem now in a kind I did hope I
didn't need.
Instead of setting CRUD permissions for each controller and mapping the actions
to the CRUD options, I give now full permission to each action. That seams to
work.
I wonder if $this->Auth->map
Ive done that also, it still inserted a new row.
--~--~-~--~~~---~--~~
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 ema
You need to set user's id before running saveField() like *$this->User->id =
1*, then you need to call *$this->User->saveField('status', 'active')*. Hope
this helps
2008/12/17 gearvOsh
>
> Ok, I may be stupid... but how would I update a single field on a
> single row. Something like the follow
Ok, I may be stupid... but how would I update a single field on a
single row. Something like the following without having to write a
custom query.
UPDATE users SET status = 'active' WHERE id = 1
Ive tried doing saveField() but that inserts a new row. Ive also tried
using updateAll() but that do
96 matches
Mail list logo