Re: CakePHP 3.0 - Confusion comes from

2015-03-29 Thread Md Bayezid Alam
That was my understanding too. On Mon, Mar 30, 2015 at 1:15 AM, Dave Edwards goo...@bubbletoonz.com wrote: Why has the first method (which is the correct one) got both $this-Articles-newEntity() and $this-Articles-patchEntity() when you are saving a new record? I thought that

CakePHP 3 - foreign_key - bin/cake bake all --plugin

2015-03-29 Thread gabriel
Hi, I have these two tables: *- Articles* -- id -- title -- body -- type_id (foreign_key) *- Types* -- id -- title If i generate che scaffold code for the base application all is perfect, controller, model and view. bin/cake bake all Typesbin/cake bake all Articles The *foreign key* is

Re: CakePHP 3.0 - Confusion comes from

2015-03-29 Thread Dave Edwards
Why has the first method (which is the correct one) got both $this-Articles-newEntity() and $this-Articles-patchEntity() when you are saving a new record? I thought that newEntity was used when inserting new data, and patchEntity was for updating existing data? Is my understanding

Cakephp3.0 Authentication issue

2015-03-29 Thread nilay singh
Hey In blog authentication there is admin and author based role can anyone suggest me how can I check in login action if user is admin if yes then redirect to admin controller and if it is author it go to author controller -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on

Error linking forum titles to individual posts.

2015-03-29 Thread Odedere Ayokunle
Greetings everyone here. I am combining one Andrew Perkin video tutorial (which explains cakephp in a step by step manner but quite stale) with the official cake forum example (more current but less explanatory) in learning cakePHP. The first thing I learnt how to do was to view all posts on