# |
Aug 9th 2008, 13:54 |
Anon323 |
markstory: So form inputs I didn't specify will be discarded? (e.g. an attacker can't manually add an form input element which cake will automatically save?) |
# |
Aug 9th 2008, 13:50 |
markstory |
its done automatically in Model::deconstruct |
# |
Aug 9th 2008, 13:49 |
markstory |
cleanUpFields doesnt exist any more in 1.2 |
# |
Aug 9th 2008, 13:47 |
Anon323 |
AD7six: Thanks for the security component / whitelist hint. how does cleanUpFields() work? how does it know what to clean up? |
# |
Aug 9th 2008, 13:43 |
TonkaTruck |
In order for the prefix routing example in the book to be reverse route compatible, the wildcard needs to be set as ...:action/* Then, it works swimmingly. |
# |
Aug 9th 2008, 13:41 |
infantigniter |
it's mind boggling |
# |
Aug 9th 2008, 13:41 |
infantigniter |
another weird thing, the table that has the null fields -- it only has like 5 rows. but it's displaying like 20/30 empty records on my browse pages |
# |
Aug 9th 2008, 13:40 |
markstory |
well then I dunno. |
# |
Aug 9th 2008, 13:40 |
infantigniter |
markstory: i don't do any of those in any view. i use some requestAction, but that's all Select * stuff |
# |
Aug 9th 2008, 13:37 |
markstory |
anything that could be considered a save() / saveField() |
# |
Aug 9th 2008, 13:37 |
infantigniter |
markstory: what qualifies as modifying a model? like trying to update records, etc. from a view? |
# |
Aug 9th 2008, 13:35 |
markstory |
google analyitics is client side. |
# |
Aug 9th 2008, 13:34 |
markstory |
if you modify a model on a page that is a view action. and a 404 occurs a new record will get inserted. |
# |
Aug 9th 2008, 13:34 |
infantigniter |
markstory: i'm using google analytics if that is relevant |
# |
Aug 9th 2008, 13:34 |
markstory |
infantigniter: are you doing anything like tracking views on pages? |
# |
Aug 9th 2008, 13:33 |
infantigniter |
anybody know how this could be happening? |
# |
Aug 9th 2008, 13:33 |
infantigniter |
it doesn't make sense because (1) the entire action is password protected and (2) all the save functions have validation rules that would prevent such null records from being created |
# |
Aug 9th 2008, 13:32 |
infantigniter |
very strangely, though i use DarkAuth to protect all administrative actions (such as Add), i'm winding up with like 20 new rows in one of my tables every day about. all fields in these rows are null |
# |
Aug 9th 2008, 13:32 |
freebox |
this is the problem with cake |
# |
Aug 9th 2008, 13:32 |
freebox |
great |
# |
Aug 9th 2008, 13:31 |
AD7six |
freebox there are no bugs in the sections I told you to read. your problem is nothing to do with creating paginateCount. there is nothing complex about your pagination scenario - just use the right parameters. |
# |
Aug 9th 2008, 13:30 |
freebox |
is more easy for me understand an php code snippet that an bugged english manual |
# |
Aug 9th 2008, 13:29 |
freebox |
yep |
# |
Aug 9th 2008, 13:29 |
AD7six |
freebox I don't know. it would be a great start |
# |
Aug 9th 2008, 13:29 |
freebox |
AD7six: why i don't show me how to do it? |
# |
Aug 9th 2008, 13:28 |
AD7six |
freebox that's true but you're reading the wrong section anyway - there is nothing complex about what you're doing |
# |
Aug 9th 2008, 13:27 |
freebox |
AD7six: manual is telling me to do things in the wrong way ($sql=..) |
# |
Aug 9th 2008, 13:27 |
jaredhoyt |
k |
# |
Aug 9th 2008, 13:27 |
trueaxe |
jaredhoyt: thanks, now it works just fine |
# |
Aug 9th 2008, 13:27 |
AD7six |
freebox yes but the help is reading the manual to you, holding your hand and reading your own debug output. |
# |
Aug 9th 2008, 13:26 |
TonkaTruck |
Will reverse routing of a prefix route honor arguments? Or must a new route be created for each possible uri format passing arguments? http://bin.cakephp.org/view/1344362767 |
# |
Aug 9th 2008, 13:26 |
freebox |
btw i'm here asking help, because i dont know how to do it right |
# |
Aug 9th 2008, 13:26 |
freebox |
AD7six: two things: I really noob with cake and paginate things, i'm brazilian, sometimes is hard to understand english manuals and tutorials |
# |
Aug 9th 2008, 13:25 |
trueaxe |
or I'm working on it |
# |
Aug 9th 2008, 13:25 |
trueaxe |
jaredhoyt: ok, I'm already doing that now. |
# |
Aug 9th 2008, 13:25 |
jaredhoyt |
just let the login redirect be /users/view and do a $user_info = $this->User->find() w/ $this->Auth->user('id') |
# |
Aug 9th 2008, 13:24 |
jaredhoyt |
trueaxe: that's what i'm saying, let /users/view be their "home site" ... all adding an id does is tell the controller which user info to pull from the db... but you don't need a param since the id is already set in the session |
# |
Aug 9th 2008, 13:24 |
freebox |
but i dont know why in sql log appears categoria_id = "category slug" |
# |
Aug 9th 2008, 13:24 |
AD7six |
freebox why is it necessary for you to show blatantly wrong sql to have somone point it out to you? |
# |
Aug 9th 2008, 13:24 |
trueaxe |
I need to know the id, don't I? |
# |
Aug 9th 2008, 13:24 |
freebox |
i use this: $this->set('piadas', $this->paginate('Piada', array('Piada.categoria_id'=>$this->Categoria->id))); |