Companies using CakePHP

2015-05-31 Thread Pgbi
Hello there, I've launched not long ago a new website using cakephp 3. I was just wondering if it was possible to make it appear in the Companies using CakePHP section of cakephp.org. Is there a form / email address to apply for it? Thx! -- Like Us on FaceBook

Re: 3.0 - routing bug?

2015-03-20 Thread Pgbi
['params']) $redirect = Router::url(array_merge($url, $params)) On Thursday, March 19, 2015 at 6:32:07 PM UTC+1, Pgbi wrote: The reason i need to parse and generate again an url is in the example I gave in my first message: In my App, when a user logs in, he is redirected to $this-Auth

Re: 3.0 - routing bug?

2015-03-19 Thread Pgbi
it again to the Router. Could you explain? On Thursday, March 19, 2015 at 1:00:16 AM UTC+1, Pgbi wrote: Tell me if i'm wrong but i thought that Router::parse was the inverse of Router::url. In other words, I thought that $url == Router::url(Router::parse($url))would always be true. Just

3.0 - routing bug?

2015-03-18 Thread Pgbi
Tell me if i'm wrong but i thought that Router::parse was the inverse of Router::url. In other words, I thought that $url == Router::url(Router::parse($url))would always be true. Just found out this was not the case. If $url = /users/view/123 then Router::url(Router::parse($url)) =

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: 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

Cakephp 3 : use of $this-alias() in where conditions

2015-02-18 Thread Pgbi
Hi, To avoid the Column 'xxx' in where clause is ambiguous error when making queries involving multiple tables sharing the same name for a given column, I now systematically include $this-alias() in where conditions : $table-find()-where([$table-alias() . '.foo' = 'bar']); Is this considered

Cakephp 3: difficulties with timezones when dates submitted in a form

2015-02-12 Thread Pgbi
I've set up a form where a user can input a date + time + timezone. After submitting the form, in my controller, $this-request-data contains this: [ 'date' = [ 'year' = '2015', 'month' = '02', 'day' = '12', 'hour' = '22', 'minute' = '54',

Re: Soft delete plugin for cakephp 3

2015-02-02 Thread Pgbi
:21 UTC+1 schrieb Pgbi: Hi guys, For one of my projects, I developed a plugin to nicely handle soft deletion for some of my models. I thought I might share it with the community (hope this is the right place to do it). It can be found here = https://packagist.org/packages/pgbi/cakephp3-soft

Soft delete plugin for cakephp 3

2015-02-02 Thread Pgbi
Hi guys, For one of my projects, I developed a plugin to nicely handle soft deletion for some of my models. I thought I might share it with the community (hope this is the right place to do it). It can be found here = https://packagist.org/packages/pgbi/cakephp3-soft-delete Any remarks about