Thursday, April 16, 2015

Re: CakePHP 3.0 - Confusion comes from

As this process has been deprecated during the RC, so hoping soon to update the docs otherwise it will make a huge confusions among the readers. :)

On Thu, Apr 2, 2015 at 7:31 PM, Dave Edwards <google@bubbletoonz.com> wrote:
Hi  Farid,

I'm not decrying the value or usefulness of the documentation, or the huge amount of work that has gone into creating it.

As this is new functionality (ORM), it needs to be put right asap, particularly as there will be few examples of this anywhere else to refer to. I could go in fix it myself, the only problem is I don't know the correct answer because the manual is not clear :)


On Thursday, 2 April 2015 05:46:52 UTC+1, Farid Aditya wrote:
Hi dave
I agree with you, but I also disagree
cakephp manual book may not be perfect, but it is quite complete and very helpful to understand the cakephp. deficiencies in the manual may be updated in the next update. And that is not in the manual book, we can ask each other in this group.

On Friday, March 27, 2015 at 9:37:26 PM UTC+7, Bayezid Alam wrote:
Hi,

A confusion comes on my mind regarding the adding something on CakePHP 3.0

As example given on below link's in the add function.

public function add()      {          $article = $this->Articles->newEntity(); // A blank newEnttity added stored in $article variable          if ($this->request->is('post')) {              $article = $this->Articles->patchEntity($article, $this->request->data); // A patchEntity added here & passed the request data here              if ($this->Articles->save($article)) {                  $this->Flash->success(__('Your article has been saved.'));                  return $this->redirect(['action' => 'index']);              }              $this->Flash->error(__('Unable to add your article.'));          }          $this->set('article', $article);      }


But i found a different things on below link

public function add()      {          $user = $this->Users->newEntity($this->request->data); // request data passing through newEntity here          if ($this->request->is('post')) {              if ($this->Users->save($user)) {                  $this->Flash->success(__('The user has been saved.'));                  return $this->redirect(['action' => 'add']);              }              $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 receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.

--
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 receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.

No comments: