Re: Crazy problem with special characters in the controllers

2008-11-19 Thread carlos ferrandis
thanks Carlos On 19 nov, 01:26, thatsgreat2345 <[EMAIL PROTECTED]> wrote: > Are both views UTF-8 ? > On Nov 18, 2:28 pm, carlos ferrandis <[EMAIL PROTECTED]> wrote: > > > Hello > > > I have 2 controllers getting info through find('list") from within

Crazy problem with special characters in the controllers

2008-11-18 Thread carlos ferrandis
Hello I have 2 controllers getting info through find('list") from within the same table which has special characters from Portuguese, the crazy thing is one controller is able to show the right characters, the other show weird characters. How could that be possible? any idea what I can try? tha

How to clean the html fields using ajax

2008-11-08 Thread carlos ferrandis
hello everybody I am trying to see how to clean my entry html fields, I have a ajax form, please look at my 4 lines bellow. form('/PedidoMovimentos/ addajx','post',array('update'=>'movimentos','url'=>'/PedidoMovimentos/ addajx/'.$pedido['Pedido']['id']));?> echo $form->select('item_id',$items2,

Re: ajax form submission - nothing happens

2008-11-08 Thread carlos ferrandis
hp but i can´t find the other two errors > you mention, could you tell me please where are they. > > Thank You > > On 2 nov, 14:45, carlos ferrandis <[EMAIL PROTECTED]> wrote: > > > Hi. Are you following the exercise in the book: Implementing Ajax > > Features, chapt

Re: ajax form submission - nothing happens

2008-11-02 Thread carlos ferrandis
Hi. Are you following the exercise in the book: Implementing Ajax Features, chapter 8? if so I might me able to tell you that I found 3 errors on it. Reading your code I fix the last one. let me know then I can drop you the code corrected. carlos On 31 out, 15:13, Kieron <[EMAIL PROTECTED]> wrot

Help understanding magic on view field id and populating another field through that

2008-11-01 Thread carlos ferrandis
Hello everybody I keep my struggle to learn the cake "way" (not carlitos' way). Please suppose I have the following in my add view ORDERS echo $form->input('item_id'); which returns the field name in a select due to the association, and is working fine, where item_id is my foreign key. bellow

Re: question about relationship

2008-10-27 Thread carlos ferrandis
I have posted another item using a diferent approach to the same problem. it is in http://groups.google.com/group/cake-php/browse_thread/thread/162e7b5d1daf8287# carlos --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Group

where can I find the code that makes select pulling the name field from another table in a relationship

2008-10-27 Thread carlos ferrandis
I've been try hard to understand and fix a problem on my project. Then I decided to create another project based on the same DB and it worked. When Cake sees a relationship it takes the field named "name" and show it on the view instead of the field ID, correct? i.e: table stocks field

Re: user name on default.ctp

2008-10-26 Thread carlos ferrandis
btw, I've done that on my appcontroller echo ""; echo $this->Auth->user('name'); echo ""; and it works. But, I don't know why I don't think is the correct approach. thanks for any help carlos --~--~-~--~~~---~--~~ You received this message becaus

user name on default.ctp

2008-10-26 Thread carlos ferrandis
Haya everybody. I am kind of new on cake. I managed to put auth. to work on my project but now I am trying to show the user name in the default.ctp. I created a variable like this $nomeUsuarioLogado = $this->Auth- >user('name'); in my appController but I cannot see the variable in my default.ctp.

Re: problem naming controller

2008-10-02 Thread carlos ferrandis
me: plural, underscored > Database Table Name: plural, underscored > > > Cheers. > > > > On Oct 2, 2:44 am, carlos ferrandis <[EMAIL PROTECTED]> wrote: > > I thought it was a problem because I was not used to the naming rules > > for cake but now I don'

problem naming controller

2008-10-01 Thread carlos ferrandis
I thought it was a problem because I was not used to the naming rules for cake but now I don't understand, please continue reading... I have a table named: items then inapp/controllers/items_controller.php I have the code above troughs the following error: Error: ItemController could n