Re: Using & in URL as unnamed param

2010-08-03 Thread Norman Paniagua
With the js function escape I get %26 Try in firebug or other javascript console to execute escape('&') --- Norman Paniagua 2010/8/3 Rodrigo Mourão > Hello, > > I trying to use url: http://localhost/appname/pages/Black&White , but > the CakePHP try to load

Re: individual ID's for user profiles

2010-08-03 Thread Norman Paniagua
r like class UsersController extends AppController { function profile($id = null) { // your code } } The parameter id will be, in this case, 34nnm234n2412234d Regards --- Norman Paniagua 2010/8/3 Tomfox Wiranata > hi, > > thats, what keeps me busy at the moment. if

Re: Validation errors not shown in a form

2010-07-30 Thread Norman Paniagua
Can you add a filter in your gmail account I add the filter for the sender ( cake-php@googlegroups.com) and all the mails that I receive from this email have the gmail label cakephp. Try it, its very helpful --- Norman Paniagua 2010/7/29 John > Hi Guys, sorry for the wrong topic, but i&#x

Re: saveAll does'nt work

2010-07-29 Thread Norman Paniagua
Can you put the model code? --- Norman Paniagua 2010/7/30 Jeremy > today, I find function saveAll can not work ,when save data into two > relations tables, blew is the data, > > Array > ( >[User] => Array >( >[username] =>

Re: Validation errors not shown in a form

2010-07-29 Thread Norman Paniagua
Can you show your code? --- Norman Paniagua 2010/7/29 Roland Pish > Hi. > > Suddenly a form stopped showing the error messages with the class="error-message"> beside input fields with validation. > When a validation error occurs. If I debug($this->Themodel- >

Re: Bug getLastInsertID( )

2010-07-28 Thread Norman Paniagua
when you save a record the id is stored in the model.. like $this->Model->save() $this->Model->id() // Get the current ID of the inserted record --- Norman Paniagua 2010/7/28 Davor Ilic > i can´t use getLastInsertID( )<#12a1bce91255532a_method-ModelgetLastInsertID> >

Re: CakePHP 1.3 Form customize first Legend field created

2010-07-28 Thread Norman Paniagua
http://book.cakephp.org/view/196/options-label --- Norman Paniagua 2010/7/28 spheroid > Using echo $this->Form->create successfully followed by echo $this- > >Form->inputs to create quicker forms. > > How do I customize/remove the first Legend created? I don't

Re: problem select menu with "optgroups"

2010-07-28 Thread Norman Paniagua
Try, in the controller $this->set('selectOptions', $arrayWithOptions); In the view $form->input('select_option'); For more information see http://book.cakephp.org/view/1390/Automagic-Form-Elements --- Norman Paniagua 2010/7/28 hoss7 > cricket how can i

Re: problem select menu with "optgroups"

2010-07-27 Thread Norman Paniagua
Try with $form->input('FieldName'); or $form->input('FieldName', array('options'=>$arrayValues)); --- Norman Paniagua 2010/7/27 hoss7 > i have this array: > > Array > ( >[0] => Array >( >[

Re: Add user form has password field filled in by Authenticated user...

2010-07-27 Thread Norman Paniagua
I think it's your browser that fills your field, try to see the html code that it generate and if the value is empty it's your browser, otherwise it's cake --- Norman Paniagua 2010/7/27 avairet > Hi, > > I'm using CakePHP 1.3.3 and Firefox 3.6.6 under WinXP. >

Re: HABTM Saving

2010-07-26 Thread Norman Paniagua
;]['id']; endforeach; $this->User->save($data); $this->User-->Profile->saveAll($data); I dont know if doing $this->User->saveAll($data) will save the User and Profile data --- Norman Paniagua 2010/7/26 sanedevil > For my problem, a User HABTM Profiles > &

Re: how to paginate results using ajax

2010-07-26 Thread Norman Paniagua
Its the same if you paginate a normal web only that you use a javascript function (i recommend jquery.ajax) and in the controller change the layout to render the result. --- Norman Paniagua 2010/7/26 Vinicius Núñez > I'd like to know how to paginate results using ajax, e.g., to

Re: Notice (8): Undefined index: firstname [APP\controllers\users_controller.php, line 45]

2010-07-25 Thread Norman Paniagua
1', $field_1); $this->YourTable->set('field_2', $field_2); I hope its help you --- Norman Paniagua 2010/7/25 Tomfox Wiranata > hi, > > this error occurs when i enter the firstname and lastname in a form > and try to update my profile. it is supposed to write this i

Re: adding additional jquery functionality on cake 1.3

2010-07-23 Thread Norman Paniagua
--- Norman Paniagua 2010/7/23 Jon Chin > I followed the tutorial for getting Jquery set up on Cake 1.3, but now I'm > having trouble getting Jquery plugins to work. I haven't been able to find > any webpages or tutorials for this, so I'm asking here. I think what I need &g

Re: CakePHP not getting my CSS background ( body { } ) tags from css file but getting everything else

2010-07-22 Thread Norman Paniagua
Try to inspect the body in yout browser with a debuggin/inspector tool like Ffirebug (in firefox) or similar in other browsers, I think this is more css problem than cakephp --- Norman Paniagua 2010/7/22 Rick Dane > This one is just really starting to get at me.. I cannot figure out >

Re: disable combo box. after clicking the button.

2010-07-22 Thread Norman Paniagua
That's true.. try to google it with "html javascript select disable" or something similar --- Norman Paniagua 2010/7/22 cricket > On Thu, Jul 22, 2010 at 6:50 AM, Master Ram wrote: > > Hi.. > > > > i am having problem. disabling the combo box.with a b

Re: use php date function inside a Model

2010-07-22 Thread Norman Paniagua
->actual_year = date('Y'); } --- Norman Paniagua 2010/7/22 ohcibi > Read about overriding inherited methods, especially the constructor > (e.g. in almost every case you have to call the parents constructor, > to initialize the object correctly)... Theres a special node in

Re: Javascript include error

2010-07-22 Thread Norman Paniagua
Use this script('jquery-1.3.2.min.js'); ?> --- Norman Paniagua Desarrollo / WSDcamp + 595 981 184 430 www.webcamp.com Este correo contiene información confidencial y NO debe ser reenviada a otro destinatario sin la autorización del remitente. Si Ud. recibe este correo por error

Re: Login

2010-07-22 Thread Norman Paniagua
I think you want to access the login something like http://localhost/login(if cake is in your webroot folder) then you need to add a rule in the config/routes.php Router::connect('/login', array('controller'=>'users', 'action'=>'login'));