# |
Sep 13th 2009, 15:54 |
Hedz |
you already have the id in the session |
# |
Sep 13th 2009, 15:54 |
dogmatic69 |
HardPhuck: i thought you wanted to fill the form from session data |
# |
Sep 13th 2009, 15:54 |
Hedz |
HardPhuck theres no reason to have a param |
# |
Sep 13th 2009, 15:54 |
dogmatic69 |
what you want to post? |
# |
Sep 13th 2009, 15:54 |
HardPhuck |
i was just asking that :) |
# |
Sep 13th 2009, 15:54 |
dogmatic69 |
Dimatter: dont think so. |
# |
Sep 13th 2009, 15:53 |
dogmatic69 |
HardPhuck: why not in the edit not take an id as a param and get the users data from a find by $this->Session->read( 'Auth.User.id' ); |
# |
Sep 13th 2009, 15:53 |
Dimatter |
how to POST something along to a $this->redirect ? is it possible ? |
# |
Sep 13th 2009, 15:53 |
HardPhuck |
ok |
# |
Sep 13th 2009, 15:53 |
Hedz |
yes |
# |
Sep 13th 2009, 15:53 |
HardPhuck |
auth data is stored in session, right? |
# |
Sep 13th 2009, 15:53 |
Hedz |
HardPhuck yes |
# |
Sep 13th 2009, 15:52 |
savant2 |
dogmatic69: it's bigger than 1 and a hell of a lot bigger than none |
# |
Sep 13th 2009, 15:52 |
HardPhuck |
if i allow only logged in users to edit their accounts, will it be okay if i call edit with no params and get user's info from auth? |
# |
Sep 13th 2009, 15:52 |
dogmatic69 |
savant2: what is with the 2? |
# |
Sep 13th 2009, 15:52 |
dogmatic69 |
Dimatter: a bit more info? |
# |
Sep 13th 2009, 15:52 |
Dimatter |
dogmatic69: yeah , that does look prettier |
# |
Sep 13th 2009, 15:52 |
Dimatter |
how do I post the data alongside a redirect ? :) |
# |
Sep 13th 2009, 15:51 |
dogmatic69 |
that is the cake way |
# |
Sep 13th 2009, 15:51 |
dogmatic69 |
$user_record = $this->User->find_by_id( $this->User->id ); |
# |
Sep 13th 2009, 15:51 |
Dimatter |
that should work no ? |
# |
Sep 13th 2009, 15:51 |
Dimatter |
$user_record = $this->User->find_by_id($this->User->getLastInsertID()); |
# |
Sep 13th 2009, 15:51 |
dogmatic69 |
yip |
# |
Sep 13th 2009, 15:51 |
Dimatter |
dogmatic69: don't know, how about it ? does it automatically get set after an insert ?= |
# |
Sep 13th 2009, 15:50 |
dogmatic69 |
Dimatter: how about $this->Model->id |
# |
Sep 13th 2009, 15:50 |
dogmatic69 |
ionas82: custome validation check it out |
# |
Sep 13th 2009, 15:49 |
Dimatter |
cool , thanks |
# |
Sep 13th 2009, 15:47 |
savant2 |
Dimatter: err getLastInsertID() |
# |
Sep 13th 2009, 15:46 |
ionas82 |
dogmatic69, wanted to validate one single string against UUID |
# |
Sep 13th 2009, 15:46 |
Dimatter |
cool. |
# |
Sep 13th 2009, 15:46 |
savant2 |
~apilookup lastinsertid |
# |
Sep 13th 2009, 15:46 |
savant2 |
I believe so |
# |
Sep 13th 2009, 15:46 |
Dimatter |
on the model ? |
# |
Sep 13th 2009, 15:45 |
savant2 |
lastInsertId() |
# |
Sep 13th 2009, 15:45 |
Dimatter |
how to get the recently created id ? i am trying to auto–login user after he has just registered |
# |
Sep 13th 2009, 15:41 |
ionas82 |
hm |
# |
Sep 13th 2009, 15:41 |
dogmatic69 |
ionas82: $this->Model->validates(); |
# |
Sep 13th 2009, 15:39 |
Hedz |
method* |
# |
Sep 13th 2009, 15:39 |
Hedz |
ionas82 where is the methode? |
# |
Sep 13th 2009, 15:38 |
ionas82 |
how could I directly call a validation method like Validation::uuid($id) in my controller (users could manipulate URL => thats why I want that) |
# |
Sep 13th 2009, 15:37 |
dogmatic69 |
yip |