# |
Apr 20th 2017, 12:33 |
spriz |
put in some more details, preferably in a gist about the generated SQL and maybe the schema :slightly_smiling_face: |
# |
Apr 20th 2017, 12:33 |
iqu |
anyone used vuejs with cakephp |
# |
Apr 20th 2017, 12:32 |
nk-sonu |
:slightly_smiling_face: you were active there so asked.. |
# |
Apr 20th 2017, 12:32 |
spriz |
no worries :+1: |
# |
Apr 20th 2017, 12:32 |
spriz |
sure, but when you tag a single person it's no longer "the community" ;) |
# |
Apr 20th 2017, 12:32 |
nk-sonu |
sorry |
# |
Apr 20th 2017, 12:31 |
nk-sonu |
@spriz haha.. its CakePHP community . we are here to help each other.. :slightly_smiling_face: |
# |
Apr 20th 2017, 12:31 |
spriz |
@nk-sonu also if anyone are able to help, they'll answer. If you're looking to get expert help, you should expect to pay an expert :slightly_smiling_face: |
# |
Apr 20th 2017, 12:30 |
spriz |
@nk-sonu That query doesn't really provide enough details - what's the generated SQL? |
# |
Apr 20th 2017, 12:29 |
crazycoder |
anyone manage custom exception render for json requests? |
# |
Apr 20th 2017, 12:29 |
nk-sonu |
https://cakesf.slack.com/files/nk-sonu/F52PBFQ87/-.php |
# |
Apr 20th 2017, 12:29 |
nk-sonu |
@spriz can you look my issue plz. |
# |
Apr 20th 2017, 12:25 |
Junior |
and haven't figured out why yet |
# |
Apr 20th 2017, 12:25 |
Junior |
But if i do the same for my OrdersTable - class OrdersTable extends \App\Model\Table\AppTable i do not get user data |
# |
Apr 20th 2017, 12:25 |
Junior |
After i login , in the users table the modifiedby is saved |
# |
Apr 20th 2017, 12:24 |
Junior |
and inside src/Model/Table/AppTable.php inside the initialize i add the behaviour |
# |
Apr 20th 2017, 12:24 |
Junior |
And now i do: class UsersTable extends \App\Model\Table\AppTable |
# |
Apr 20th 2017, 12:24 |
Junior |
So my mode is inside :plugins/AuthAcl/src/Model/Table/UsersTable.php |
# |
Apr 20th 2017, 12:23 |
Junior |
spriz, i typed that :) |
# |
Apr 20th 2017, 12:23 |
spriz |
Uses vs USers Junior :P |
# |
Apr 20th 2017, 12:23 |
spriz |
If you'd test something in an afterSave in a table class, how would you fake the entity property of the afterSave? |
# |
Apr 20th 2017, 12:23 |
Junior |
I have the table model inshide the plugin :) |
# |
Apr 20th 2017, 12:22 |
inoas |
Users ;)? |
# |
Apr 20th 2017, 12:22 |
Junior |
inoas, partially i saw something very strange . If i do $this->loadModel('AuthAcl.Uses') it doesn't work |
# |
Apr 20th 2017, 12:16 |
crazycoder |
hi inoas |
# |
Apr 20th 2017, 12:02 |
inoas |
Junior: could you solve footprint ? |
# |
Apr 20th 2017, 11:58 |
spriz |
Whenever i put anything in the second argument of getMockForModel, I get PDO Exception - anyone can guide me in some direction? :thinking_face: |
# |
Apr 20th 2017, 11:56 |
Junior |
nevermind, i am stupid :)) |
# |
Apr 20th 2017, 11:49 |
Junior |
I am inside AuthAcl plugin and setting class UsersTable extends \App\Model\Table\AppTable and debug("aaaa"); in the AppTable doesn't work, any ideas why? |
# |
Apr 20th 2017, 11:40 |
crazycoder |
i am using a custom errorrenderer https://gist.github.com/anonymous/b87f711b96154aed69ad57a3d742393c |
# |
Apr 20th 2017, 11:39 |
crazycoder |
is there something more...elegant ? |
# |
Apr 20th 2017, 11:38 |
crazycoder |
guys is correct echo json_encode($this->viewVars); inside a view called after an exception ? (json request) |
# |
Apr 20th 2017, 11:31 |
xety |
Hmm nice idea, i will try that, thanks ! |
# |
Apr 20th 2017, 11:29 |
Neon1024 |
Sounds like something I’d do in a helper myself |
# |
Apr 20th 2017, 11:28 |
xety |
Hello, Someone know how can i apply a function to all the `i18nFormat` call ? Actually i'm doing that : ``` ?= ucwords($poll->end_date->i18nFormat([\IntlDateFormatter::FULL, \IntlDateFormatter::SHORT])) ? ``` But i'm tired to repeat each time the `ucwords()` function. Or maybe there is an option ? I saw nothing about that in the doc. |
# |
Apr 20th 2017, 11:07 |
inoas |
similar to always using === / !== even if type does not matter |
# |
Apr 20th 2017, 11:07 |
inoas |
then you don't have to think about if type matters or not |
# |
Apr 20th 2017, 11:07 |
inoas |
I am saying in general we should use in_array($x, $y, true) aka the default way to use things |
# |
Apr 20th 2017, 11:07 |
inoas |
https://github.com/cakephp/cakephp/pull/10561#discussion_r112426055 |
# |
Apr 20th 2017, 10:09 |
Guest3372 |
anyone who could help me with RESTful routing? :) |
# |
Apr 20th 2017, 09:59 |
Guest3372 |
hello |