TestSuite in CakePHP3

2014-08-05 Thread Anthony GRASSIOT
Dear guys, as the test suite as been removed from Cake 3.X, is there a reason why we are keeping those files around ? /webroot/images/test.error-icon.png /webroot/images/test.fail-icon.png /webroot/images/test.pass-icon.png /webroot/images/test.skip-icon.png Moreover I think we could get rid of

Re: Cake warning Cannot modify header information and CORE/Cake/Network/CakeResponse.php, line 398

2014-09-14 Thread Anthony GRASSIOT
HK, it has been fixed yesterday in 3.x The view is now rendered and a warning is displayed in debugKit's request panel. -- 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 G

Re: The (bad) perception and image of CakePHP in the public

2014-10-02 Thread Anthony GRASSIOT
- easy to start with. - fast to build maintanable apps. - reactive and friendly community and team. -- 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" grou

Time Class

2014-10-12 Thread Anthony GRASSIOT
You probably need to update your cake version. -- 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

How to create a provider of validation

2014-12-01 Thread Anthony GRASSIOT
well, i would say that at least you need to include your class by replacing use Cake\Validation\Validate by use Maitrepylos\Validation. then maybe you need to bind a provider as explained in the doc http://book.cakephp.org/3.0/en/core-libraries/validation.html#adding-validation-providers but I d

Re: CakePHP 3.0.0-beta3 released

2015-01-01 Thread Anthony GRASSIOT
you must enable intl php extension. Le 2 janv. 2015 05:53, "Lorne Dudley" a écrit : > Hello Mark ! > > I have made a number of attempts at getting different cakephp 3.0.0-beta3 > applications to run without success. In all cases I get to this message. > *Fatal error*: Class 'Locale' not found i

Re: namespaces in cakePHP 3?

2015-01-23 Thread Anthony GRASSIOT
it's defined here : https://github.com/cakephp/cakephp/blob/3.0/composer.json#L35 and corespond to the src folder. Le 23 janv. 2015 21:17, "McScreech" a écrit : > sorry, i meant to ask about the 'Cake' namespace specifically. thanx again. > > On Friday, 23 January 2015 15:07:25 UTC-5, McScreech w

Re: 3.x: SessionHelper deprecated, what's the new version of this?

2015-04-21 Thread Anthony GRASSIOT
http://book.cakephp.org/3.0/en/views/helpers/flash.html Le 22 avr. 2015 06:17, "Andras Kende" a écrit : > Try: > Flash->render(); ?> > > https://github.com/cakephp/app/blob/master/src/Template/Layout/default.ctp#L49 > > Andras Kende > > > On Apr 21, 2015, at 8:56 PM, Joe T. wrote: > > Looks like

Re: Is there a working Localized plugin for CakePHP 3.0?

2015-06-13 Thread Anthony GRASSIOT
he's refering to this: http://book.cakephp.org/3.0/en/core-libraries/validation.html#adding-validation-providers Le 13 juin 2015 16:49, "Paulo Terra" a écrit : > Thank you José for your reply. > > I need to validate brazilian ID´s CPF and CNPJ, brazilian ZIP Code and > phones. > > When you say c

Re: Is there a working Localized plugin for CakePHP 3.0?

2015-06-13 Thread Anthony GRASSIOT
advance. > > 2015-06-13 12:27 GMT-03:00 Paulo Terra : > >> This is exactly what I was reading at the moment. Thanks José. >> Em 13/06/2015 12:10, "Anthony GRASSIOT" >> escreveu: >> >>> he's refering to this: >>> >>> http://

Re: Is there a working Localized plugin for CakePHP 3.0?

2015-06-13 Thread Anthony GRASSIOT
I can show you the real example tomorrow if you didn't found a solution Le 13 juin 2015 19:03, "Anthony GRASSIOT" a écrit : > well it can be anywhere. Personally I baked a plugin and put my class > under src/Model/Validation/FrenchValidation.php under the > App/Model/

Re: Is there a working Localized plugin for CakePHP 3.0?

2015-06-14 Thread Anthony GRASSIOT
Paulo, this is what I'm doing with french phone number. I've cut the example to the minimum : file src/Model/Validation/ provider('french', 'App\Model\Validation\FrValidationRule'); $validator ->add('phone', 'phone', [ 'rule' => 'phone', 'provider' => 'frenc

Re: Compare 2 date in cake3

2015-08-31 Thread Anthony GRASSIOT
Maybe something like: 'compare' => [ 'rule' => function ($value, $context) { return $value->gte($context['data']['start_date']); } Le 31 août 2015 18:24, "lorenzoshake" a écrit : > I've been tried with: > > $

Re: Compare 2 date in cake3

2015-09-01 Thread Anthony GRASSIOT
lorenzoshake ha scritto: > > > > Il giorno lunedì 31 agosto 2015 18:34:37 UTC+2, Anthony GRASSIOT ha > scritto: >> >> Maybe something like: >> >> 'compare' => [ >> '

Re: Compare 2 date in cake3

2015-09-02 Thread Anthony GRASSIOT
gt;> >> Il giorno mercoledì 2 settembre 2015 02:24:34 UTC+2, Anthony GRASSIOT ha >> scritto: >>> >>> 'custom',['rule' => [$this, 'checkDate']] >>> >>> this doesn't seems to be a correct syntax... Why don't

Re: Compare 2 date in cake3

2015-09-02 Thread Anthony GRASSIOT
That what I thought. Validation is not applied if you set the value directly with a setter like you does. You need to use patchEntity(). Le 2 sept. 2015 10:29, "lorenzoshake" a écrit : > > > > Il giorno mercoledì 2 settembre 2015 10:20:53 UTC+2, Anthony GRASSIOT ha scritto

Re: Compare 2 date in cake3

2015-09-02 Thread Anthony GRASSIOT
And that's normal and make sense because $calendar->start_date and $calendar->end_date are the only fields for which you use setters... Le 2 sept. 2015 12:07, "lorenzoshake" a écrit : > > > Il giorno mercoledì 2 settembre 2015 11:24:15 UTC+2, Anthony GRASSIOT h

Re: Compare 2 date in cake3

2015-09-02 Thread Anthony GRASSIOT
exactly. glad that it workd Le 2 sept. 2015 16:22, "lorenzoshake" a écrit : > > > Il giorno mercoledì 2 settembre 2015 12:17:42 UTC+2, Anthony GRASSIOT ha > scritto: >> >> And that's normal and make sense because $calendar->start_date and >> $cale

Re: htacess to demo folder with new cakephp3 app

2015-09-03 Thread Anthony GRASSIOT
RewriteBase /demo/ Le 3 sept. 2015 21:26, "Salines" a écrit : > Hello, > can somebody help me, > > I have a CakePHP 2.x web application located on the server in the > public_html folder. Now I need to upgrade the app to CakePHP version 3, > including a new design, but the client requires installi

Re: htacess to demo folder with new cakephp3 app

2015-09-03 Thread Anthony GRASSIOT
No, I don't think you do need to update your 2.x htaccess, I have several application with this exact setup on share hosting but, you might have a different case... Le 3 sept. 2015 21:54, "Salines" a écrit : > I need to update first .htacess ind the cakephp 2 to skip rewrite rules if > user type

Re: htacess to demo folder with new cakephp3 app

2015-09-03 Thread Anthony GRASSIOT
also remember that there are 2 htaccess to update... Le 3 sept. 2015 22:03, "Anthony GRASSIOT" a écrit : > No, I don't think you do need to update your 2.x htaccess, I have several > application with this exact setup on share hosting but, you might have a > different case

Re: How do I get Cake 3.1 to reply to an AJAX request without requiring a layout .ctp file?

2015-10-14 Thread Anthony GRASSIOT
Did you correctly specify the data type json in your ajax call ? Le 14 oct. 2015 09:02, "heavyKevy" a écrit : > I have gone through the documentation, which is a bit too vague, and tried > many things, but I still am getting an error that the template file is > missing. > > I had this working sen

Re: CakePHP 3.0 location for API-Access

2016-02-21 Thread Anthony GRASSIOT
Didn't use it personnaly but I know that this exists: You might want to have a look at it. Regards Anto > On Feb 21 2016, at 5:33 pm, euromark wrote: > > Take a look at twitter, and how they did it: >