That was my understanding too.
On Mon, Mar 30, 2015 at 1:15 AM, Dave Edwards
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 newEntity was u
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 the
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 Twit
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 incor
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 p