removing in Form->end closing, in cakephp 1.3

2013-05-09 Thread Chris
hi guys,... how can I removing in Form->end closing, in cakephp 1.3 ? it works with 'div' => false on input and select fields but not on Form->end Form->create('User', array('url' => 'find', 'div' => false)); ?> Form->input('User.username', array('type'=>'text', 'label'=> 'username', 'div'

Re: Pagination

2013-05-09 Thread albertus putra tan
this documentation not help: http://book.cakephp.org/2.0/en/core-libraries/helpers/paginator.html#PaginatorHelper u can play with before, after, and tag for options parameters -- View this message in context: http://cakephp.1045679.n5.nabble.com/Pagination-tp5714793p5714855.html Sent from the

Re: Please help!!! migration of user database from cakephp to core php

2013-05-09 Thread Kento Furui
Not sure I understand your question. Is core php another PHP framework or something? Do you want to migrate to another framework? Is that what it is? -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you

Re: Pagination

2013-05-09 Thread Kento Furui
in your .ctp file echo $this->Paginator->prev(' << ' . __('prev'), array(), null, array('class' => 'prev disabled'));echo $this->Paginator->numbers();echo $this->Paginator->next(' >> ' . __('next'), array(), null, array('class' => 'next disabled')); -- Like Us on FaceBook https://www.facebook

RE: POST form changes to PUT

2013-05-09 Thread Advantage+
I also did read that in the book. But in this case I went thru the site last night and found 10 forms that will all update an existing record. Basically user goes to a page (edit profile) and all the info is populated in the form / ajax submit saved alert. Pretty basic. All the forms subm

Re: TreeBehavoir cannot manage CHAR(36) for columns

2013-05-09 Thread Ciul
Ah got it. Thank you a lot André. On Thursday, May 9, 2013 1:33:08 PM UTC-5, André Luis wrote: > > It´s because the lft and rght are the position of the row, and have no > relationship with ID´s... > > Em quinta-feira, 9 de maio de 2013 15h24min00s UTC-3, Ciul escreveu: >> >> >>

Re: TreeBehavoir cannot manage CHAR(36) for columns

2013-05-09 Thread André Luis
It´s because the lft and rght are the position of the row, and have no relationship with ID´s... Em quinta-feira, 9 de maio de 2013 15h24min00s UTC-3, Ciul escreveu: > > > > A screenshot

Re: TreeBehavoir cannot manage CHAR(36) for columns

2013-05-09 Thread Ciul
A screenshot of aros table. -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subsc

Re: TreeBehavoir cannot manage CHAR(36) for columns

2013-05-09 Thread Ciul
Hi André, yes, it seems to work but I find lft and rght columns values not to behave as expected, or at least as I expect. I mean, pointing to id of nodes in the same tree. Why I say this? Becaue they have numerical values instead of having large strings as a char(36) column should be. Any gui

Re: TreeBehavoir cannot manage CHAR(36) for columns

2013-05-09 Thread André Luis
Yes, it supports very well... At least in CakePHP version 2.2.something or above i never had a problem Em quinta-feira, 9 de maio de 2013 12h16min23s UTC-3, Ciul escreveu: > > Hi there, > > I just wanted to make you notice that TreeBehavior is not supporting using > of CHAR(36) instead of INT fo

TreeBehavoir cannot manage CHAR(36) for columns

2013-05-09 Thread Ciul
Hi there, I just wanted to make you notice that TreeBehavior is not supporting using of CHAR(36) instead of INT for it's columns. Regards -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscr

Re: POST form changes to PUT

2013-05-09 Thread Irvin Huang
and how about "POST vs PUT". I think there is a good answer on this page http://stackoverflow.com/questions/630453/put-vs-post-in-rest Irvin Huang 於 2013/5/9 下午9:43 寫道: > According to CakePHP > lib > Cake > View > Helper > FormHelper.php > > Look up to this function > public function create(

Re: POST form changes to PUT

2013-05-09 Thread Irvin Huang
According to CakePHP > lib > Cake > View > Helper > FormHelper.php Look up to this function public function create($model = null, $options = array()) and the following is the conditions the FormHelper will change PUT to POST: 1. Either $this->request->data[ the model name same as you specified

searching users table with token = NULL

2013-05-09 Thread Chris
hi guys,... can anyone help please,... I trying to search users table werther's user token IS NULL or NOT (what it means is user activated, confirmed or not) having some problem with coding,... $this->paginate = array('User' => array('conditions' => array('User.token LIKE'=>'IS'.($th