Re: Still having trouble with saving BelongsToMany data

2015-03-13 Thread Joe T.
UPDATE i worked with my form inputs and the Controller a bit, and i DO have functioning saves working again (for the next ten minutes until it breaks again). i'll describe what i had to do, and why i don't like it. Form inputs: Basically, i have to scrap the idea of the ORM carrying data to the

Re: Still having trouble with saving BelongsToMany data

2015-03-13 Thread Joe T.
i tinkered with ->link() a bit last night, but must have set up something wrong, as it tried to insert more than 1 link record for the same Listing ID / Attribute ID pair, violating the unique key. There was a guy on #cakephp IRC last night having the exact same problem i'm having, and markstor

Re: Still having trouble with saving BelongsToMany data

2015-03-13 Thread heavyKevy
I believe that is your answer you were looking for... I missed it too. Thanks Jose for pointing that one out. -- 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 "Ca

Re: 3.0 - Router::prefix() -> why no params parameter?

2015-03-13 Thread Pgbi
After looking at the code, I found how to do: Router::prefix('admin', callback) is actually equivalent to Router::scope('/admin', ['prefix' => 'admin'], callback) so one can use Router::scope() to add routing defaults to prefixed routes. Le vendredi 13 mars 2015 09:40:18 UTC-7, Pgbi a écrit :

3.0 - Router::prefix() -> why no params parameter?

2015-03-13 Thread Pgbi
Hi cakephp world ! With Router::connect() and Router::scope() one can pass a params parameter which represents "An array of routing defaults to add to each connected route". I was expecting Router::prefix() to be able to also handle a params parameter. But that's not the case. Is there any re

Re: CakePHP 3-tier

2015-03-13 Thread Matt Myers
The added security is in that the Presentation layer is what is exposed to the world and is more vulnerable. In the event that the Presentation layer is hacked, it would not have access to the Database layer. There is added security in front of the Application layer (which has access to the Dat