# |
Sep 13th 2009, 16:07 |
HardPhuck |
one question, which isn't technical i wanna know the php way |
# |
Sep 13th 2009, 16:07 |
HardPhuck |
ah found it |
# |
Sep 13th 2009, 16:04 |
ionas82 |
but well I will just skip that now |
# |
Sep 13th 2009, 16:04 |
ionas82 |
point is I just want to call this one on one field |
# |
Sep 13th 2009, 16:03 |
ionas82 |
dogmatic69, yeah I have my validation method for UUID in my app_model |
# |
Sep 13th 2009, 16:03 |
HardPhuck |
when i click submit |
# |
Sep 13th 2009, 16:03 |
HardPhuck |
just keeps adding the id at the end |
# |
Sep 13th 2009, 16:03 |
HardPhuck |
how do i remove the id param from the form |
# |
Sep 13th 2009, 15:57 |
dogmatic69 |
np |
# |
Sep 13th 2009, 15:57 |
HardPhuck |
thanx |
# |
Sep 13th 2009, 15:57 |
dogmatic69 |
yip |
# |
Sep 13th 2009, 15:56 |
HardPhuck |
i got all my answers then, use id from session, populate form from DB :) |
# |
Sep 13th 2009, 15:56 |
Hedz |
read the info then populate a form |
# |
Sep 13th 2009, 15:56 |
dogmatic69 |
$form->input( 'name', array( 'vale' => $session->read( 'Auth.User.name' ) ); is not cool |
# |
Sep 13th 2009, 15:56 |
Hedz |
ya |
# |
Sep 13th 2009, 15:56 |
dogmatic69 |
$form->input( 'name |
# |
Sep 13th 2009, 15:56 |
dogmatic69 |
Hedz: not talking about ids... talking about data... as in all of it |
# |
Sep 13th 2009, 15:55 |
Hedz |
the id wont change... |
# |
Sep 13th 2009, 15:55 |
dogmatic69 |
if you edit the user the details do not change in the session |
# |
Sep 13th 2009, 15:55 |
dogmatic69 |
HardPhuck: you should not do that... session data in auth is not always upto date |
# |
Sep 13th 2009, 15:54 |
HardPhuck |
dogmatic69: that too |
# |
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 ); |