# |
Jul 9th 2019, 07:49 |
challgren |
loadModel is also part of ModelAwareTrait so it can be used in a lot of places |
# |
Jul 9th 2019, 07:48 |
mehov |
As far as I understand, one should use loadModel where possible, and TableLocator in other cases |
# |
Jul 9th 2019, 07:40 |
kgb.acct.personal |
Sup. When do I use loadModel() and TableLocator::get()? |
# |
Jul 9th 2019, 07:39 |
challgren |
Seatgeek is written in Cake if I recall |
# |
Jul 9th 2019, 07:33 |
neon1024 |
Ooh, check out you Seatgeek guys sponsoring a youtube video I’m watching! |
# |
Jul 9th 2019, 07:24 |
neon1024 |
Morning all |
# |
Jul 9th 2019, 07:01 |
info315 |
So i need to extends the `Validator` class some how |
# |
Jul 9th 2019, 06:26 |
info315 |
What is the best way to add a application wide validation rule? |
# |
Jul 9th 2019, 05:35 |
cnizzardini |
Anyone played with the new console command stuff much? |
# |
Jul 9th 2019, 05:06 |
conehead |
Hm is there a way to execute shell commands within migrations? Looking for something like Phinx just for shell commands |
# |
Jul 9th 2019, 04:33 |
savant |
I followed up via pm. The plugin doesn't seem to populate that variable via anything so it needs to happen in userland code |
# |
Jul 9th 2019, 01:12 |
challgren |
What do you expect the `$user` to be an array? the UserEntity? |
# |
Jul 9th 2019, 00:37 |
newyorknick |
Works fine when I’m loading routes from the `CakeDC/Users` plugin itself but when I hit my pages controller it’s not loading the user from the session |
# |
Jul 9th 2019, 00:35 |
newyorknick |
I know I can hack it in my pages controller but I know theres a simpler solution and I’m having a hard time figuring out the recommended way |
# |
Jul 9th 2019, 00:34 |
newyorknick |
Hey guys I’m having a hard time populating the `$user` var properly in my `/pages` controller templates after installing the CakeDC/Users plugin. |
# |
Jul 8th 2019, 23:14 |
challgren |
As for videos I would say most of them are going to be old and a little outdated. The book.cakephp.org website is up to date with all the newest 3.8 stuff |
# |
Jul 8th 2019, 23:14 |
challgren |
@davorminchorov https://book.cakephp.org/3.0/en/tutorials-and-examples.html is a great start to learn the framework |
# |
Jul 8th 2019, 21:35 |
ricksaccous |
i figured it out by the way, my earlier problem, i was setting the field to null before the save and that was nullifying all errors |
# |
Jul 8th 2019, 21:33 |
davorminchorov |
Hi, I am new to CakePHP and I am about to start working on a new project. Can someone suggest to me a good video resource for learning the framework and its features? |
# |
Jul 8th 2019, 20:06 |
ricksaccous |
oops |
# |
Jul 8th 2019, 20:06 |
ricksaccous |
```php->allowEmptyString( 'email', function ($context) { return false; }, self::getCommonEmptyMessage('Email') ); |
# |
Jul 8th 2019, 20:06 |
ricksaccous |
I have no idea why |
# |
Jul 8th 2019, 20:06 |
ricksaccous |
but the allowEmptyString error message is not displaying |
# |
Jul 8th 2019, 20:05 |
ricksaccous |
so the field is displaying as required |
# |
Jul 8th 2019, 17:12 |
cleptric |
As oauth is only about authorization, it’s out of the scope of the authentication plugin |
# |
Jul 8th 2019, 17:12 |
cleptric |
@martin If your interested in oauth server, league php implemented one which works quite well |
# |
Jul 8th 2019, 16:31 |
genellern |
@half2me did you find out why? I had the same issue last week but haven't had time to figure out what's going on |
# |
Jul 8th 2019, 15:58 |
niel.archer |
@olanowsubomi have you read https://book.cakephp.org/3.0/en/installation.html |
# |
Jul 8th 2019, 15:46 |
olanowsubomi |
the issue is i read that somewhere as part of setting up cakephp for application development but i suppose the author is using old version of cake php to teach this which the newer one i downloaded does not contain, but are you insunuating i dont need to set this up in newer version of cakephp to send email from my app.? |
# |
Jul 8th 2019, 15:38 |
niel45 |
@olanowsubomi, can't understand your question |
# |
Jul 8th 2019, 15:38 |
info315 |
are you guys serious on deprecated argument order for allowEmptyString? ``` $ grep -ri '\->allowEmptyString(' | wc -l 364 ``` I ask because I don't want to need to change it back with 4.x |
# |
Jul 8th 2019, 15:37 |
em. |
@admad @neon1024 I know its unusual. But its allowed by the HTTP spec. https://tools.ietf.org/html/rfc7230#section-3.3 Guzzle allows it. Most clients do. |
# |
Jul 8th 2019, 15:36 |
olanowsubomi |
is there no one to help with my question? |
# |
Jul 8th 2019, 15:30 |
olanowsubomi |
hello is anybody there? |
# |
Jul 8th 2019, 15:29 |
niel45 |
@neon1024, any request method can have a body, and nothing should be assumed by that |
# |
Jul 8th 2019, 15:29 |
olanowsubomi |
or can anybody tell me the file path to this from my my_app_name? |
# |
Jul 8th 2019, 15:24 |
olanowsubomi |
? |
# |
Jul 8th 2019, 15:24 |
olanowsubomi |
the list of files in the config file are schema, .en.default, app.default, app, bootstrap, bootstrap_cli, paths, requirements, routes which file contain those code |
# |
Jul 8th 2019, 15:15 |
admad |
@em. How can a GET request have a body? |
# |
Jul 8th 2019, 15:15 |
neon1024 |
So your version might be out of date? |
# |
Jul 8th 2019, 15:15 |
neon1024 |
There also isn’t a core.php.default any more https://github.com/cakephp/cakephp/tree/2.x/app/Config |