Re: Crazy problem with special characters in the controllers

2008-11-19 Thread carlos ferrandis
? On Nov 18, 2:28 pm, carlos ferrandis [EMAIL PROTECTED] wrote: 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

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?

Re: ajax form submission - nothing happens

2008-11-08 Thread carlos ferrandis
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, 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

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. ?=$ajax-form('/PedidoMovimentos/ addajx','post',array('update'='movimentos','url'='/PedidoMovimentos/ addajx/'.$pedido['Pedido']['id']));? echo

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]

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

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

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

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: user name on default.ctp

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

Re: problem naming controller

2008-10-02 Thread carlos ferrandis
. 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't understand, please continue reading... I have a table named: items then inapp/controllers/items_controller.php I have

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 ?php class ItemsController extends AppController { var $name = 'Items'; var