Re: 3.0 - How to add a form data using its primarykey to its associated tables

2014-12-12 Thread José Lorenzo
Can you show how your UnitsTable look like? Can you also show a debug($unit) before you all save() ? On Thursday, December 11, 2014 5:08:27 PM UTC+1, Bayezid Alam wrote: Hi, i have Tables : Units hasOne costs hasOne fixed_costs i want to add data to costs and fixed_costs table using

Re: CakePHP 3 - Need File upload example

2014-12-12 Thread José Lorenzo
move_uploaded_file() should be used On Thursday, December 11, 2014 5:50:35 PM UTC+1, frocco wrote: Thanks, Do I just use PHP move_uploaded_file command or does CakePHP 3 have it's own methods? On Thursday, December 11, 2014 9:04:24 AM UTC-5, José Lorenzo wrote: Create a form with a

username routing to multiple controllers

2014-12-12 Thread rc . gojinny
Hi. I am trying to route a username to 2 controllers. I am coding for a shopping site, and what I am trying to do is this: www.xyz.com/myUsernameA would route to the Users controller www.xyz.com/myUsernameB would route to the Shops controller A client of my site can be either a Shop or a

Re: CakePHP 3.0, how to change user password?

2014-12-12 Thread frocco
I am using cakephp 3 On Thursday, December 11, 2014 6:58:02 PM UTC-5, euromark wrote: The same as in 2.x basically applies. You hash your form field and save it. If you want to send an email for password forgotten, use a token and let the user afterwards chose a new one. Don't send the

Re: 3.0 - How to add a form data using its primarykey to its associated tables

2014-12-12 Thread Md Bayezid Alam
Hello Lerenzo, Please find the UnitsTable and debug($unit) as follows: *UnitsTable:* ?php namespace App\Model\Table; use Cake\ORM\Table; class UnitsTable extends Table { public function initialize(array $config) { $this-table('units'); $this-addBehavior('Timestamp');

Re: 3.0 - How to add a form data using its primarykey to its associated tables

2014-12-12 Thread Md Bayezid Alam
Hello Lorenzo, please Ignore Previous debug($unit) find the latest debug($unit) before all save() */src/Controller/UnitsController.php* (line *59*) object(Cake\ORM\Entity) { 'new' = true, 'accessible' = [ '*' = true ], 'properties' = [

Re: Custom name for dropdown generated by formhelper

2014-12-12 Thread Sam Clauw
Is there no one who can help me out with this? ;) -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To unsubscribe from this group and stop

Re: CakePHP 3.0, how to change user password?

2014-12-12 Thread euromark
as in 2.x That means 3.x So that means you can transfer everything to 3.x And the link was also for 3.x mark Am Freitag, 12. Dezember 2014 16:12:58 UTC+1 schrieb frocco: I am using cakephp 3 On Thursday, December 11, 2014 6:58:02 PM UTC-5, euromark wrote: The same as in 2.x basically