Re: Very basic question about the 'CakePHP Project Files'

2015-04-01 Thread rogerdweichert
Hi Farid, Thanks for your reply. Yes, Dave also suggested that the maps issue was unrelated to cakephp, but that a number of other problems were related. I agree that the radio button needs a default setting, but once selected ... should remain where set until that search session is over

Re: CakePHP 2 v CakePHP 3 SQL

2015-04-01 Thread Dave Edwards
Well that's good news, much is made of the new ORM, but it seems as though bread and butter (not cake :) queries can be constructed in the same way that they could before (CakePHP 2) using contain? Having watched your recent video release - 'Faster application development with CakePHP 3.0' I

Re: CakePHP 3.0 - Confusion comes from

2015-04-01 Thread Dave Edwards
I disagree that that the manual is fine. If Euromark is correct (and he usually is) then it is misleading. None of the examples use both. Even the section further down entitled 'Saving Entities' does not use patchEntity as well as newEntity. Dave On Tuesday, 31 March 2015 13:49:05 UTC+1,

cakephp 3 multi tenant db schema, fail to save associated data

2015-04-01 Thread Farid Aditya
Help, i have this schema. it work fine with find methode, but it fail whene it try to saving data with associated data. it just save main model not associated model https://lh3.googleusercontent.com/-DCftkP_hpPw/VRzNieReGFI/BSY/hkrDj-hn1lI/s1600/myDesainArtRgnProject.png here sample of

Re: CakePHP 3.0 - Confusion comes from

2015-04-01 Thread Farid Aditya
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

Re: Cakephp3.0 Authentication issue

2015-04-01 Thread Farid Aditya
Try this hopely it can help public function login() { if ($this-request-is('post')) { $user = $this-Auth-identify(); if ($user) { $this-Auth-setUser($user); * $userrole = $this-request-session()* *

CakePHP 3 session usage in a custom class

2015-04-01 Thread Subi
Which is the best way for using session in a custom class where $this-request isn't available? I simple used $session = new Session; and it works perfectly, but I'm not sure it is the right way. -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter

Re: CakePHP 3 session usage in a custom class

2015-04-01 Thread José Lorenzo
I would pass the session object to the place where you need it. On Wednesday, April 1, 2015 at 10:54:19 PM UTC+2, Subi wrote: Which is the best way for using session in a custom class where $this-request isn't available? I simple used $session = new Session; and it works perfectly, but I'm