# |
Jul 20th 2018, 09:33 |
neon1024 |
File uploaded https://cakesf.slack.com/files/U1BT622HW/FBTT81A9Z/-.sh / https://slack-files.com/T053DPNCM-FBTT81A9Z-75c044b96b |
# |
Jul 20th 2018, 09:33 |
neon1024 |
` == 20180720083451 CampaignScripts: migrating Exception: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`telecoms_call_centre`.`#sql-2ce5_a83`, CONSTRAINT `#sql-2ce5_a83_ibfk_1` FOREIGN KEY (`campaign_id`) REFERENCES `campaigns` (`id`)) in [/Users/david/Sites/TelecomsCCA/vendor/robmorgan/phinx/src/Phinx/Db/Adapter/PdoAdapter.php, line 338]` |
# |
Jul 20th 2018, 09:32 |
neon1024 |
How do I get around adding a migration with a new foreignKey constraint? |
# |
Jul 20th 2018, 09:08 |
blancessanchez30 |
@neon1024 yes |
# |
Jul 20th 2018, 09:00 |
josbeir |
the new authentication/authorization plugins do a good job at that, usedata is stored in request |
# |
Jul 20th 2018, 08:46 |
dereuromark |
I use a helper here: https://github.com/dereuromark/cakephp-tinyauth/blob/master/docs/Authorization.md#authuserhelper - this also allows for stateless and stateful approaches. Until core can fix itself to a more request driven approach :slightly_smiling_face: |
# |
Jul 20th 2018, 08:44 |
dereuromark |
not really, is that in view template? |
# |
Jul 20th 2018, 08:44 |
neon1024 |
@blancessanchez30 Are you in Cake 2? |
# |
Jul 20th 2018, 08:44 |
neon1024 |
Morning all |
# |
Jul 20th 2018, 08:35 |
blancessanchez30 |
??? |
# |
Jul 20th 2018, 08:35 |
blancessanchez30 |
<?php echo AuthComponent::user('firstname').' '.AuthComponent::user('lastname')?> |
# |
Jul 20th 2018, 08:35 |
blancessanchez30 |
? |
# |
Jul 20th 2018, 08:35 |
blancessanchez30 |
is this a goood practice/ |
# |
Jul 20th 2018, 07:28 |
birdy247 |
that does the trick |
# |
Jul 20th 2018, 07:28 |
birdy247 |
plugin = null |
# |
Jul 20th 2018, 07:28 |
birdy247 |
ahhhh |
# |
Jul 20th 2018, 07:24 |
birdy247 |
what is the 0. |
# |
Jul 20th 2018, 07:24 |
birdy247 |
| 0.articles:view | /:sectionslug/:id-:slug | {"action":"view","controller":"Articles","plugin":false} | |
# |
Jul 20th 2018, 07:24 |
birdy247 |
this is what I see |
# |
Jul 20th 2018, 07:23 |
birdy247 |
when i check routes |
# |
Jul 20th 2018, 07:23 |
birdy247 |
I cannot be 100% sure, but think this worked fine before a cake update |
# |
Jul 20th 2018, 07:23 |
birdy247 |
One of my routes is not being matched correctly |
# |
Jul 20th 2018, 07:04 |
asdfgh |
anyone ? |
# |
Jul 20th 2018, 07:01 |
blancessanchez30 |
because $this->Html->script(''); is not working, cakephp 2 |
# |
Jul 20th 2018, 07:01 |
blancessanchez30 |
hello i have a question, how do you define link for a javascript from a template? |
# |
Jul 20th 2018, 06:52 |
asdfgh |
i get [BadMethodCallException] Unknown method "getRepository" |
# |
Jul 20th 2018, 06:52 |
asdfgh |
is elasticsearch plugin not compatibiel with php 7.2 ? |
# |
Jul 20th 2018, 06:52 |
asdfgh |
hello guys |
# |
Jul 20th 2018, 05:43 |
alpereneser |
So good. |
# |
Jul 20th 2018, 05:42 |
graziel |
but still you can find almost everything you need in book |
# |
Jul 20th 2018, 05:41 |
alpereneser |
Okkey :+1::skin-tone-2::slightly_smiling_face: |
# |
Jul 20th 2018, 05:41 |
graziel |
cake doesnt have many videos for beginners but quite a bunch on more advanced topics in their cakephp channel on youtube |
# |
Jul 20th 2018, 05:40 |
savant |
probably start there :slightly_smiling_face: |
# |
Jul 20th 2018, 05:40 |
alpereneser |
@savant document, video, etc... :relaxed: |
# |
Jul 20th 2018, 05:39 |
alpereneser |
Thank's :slightly_smiling_face: |
# |
Jul 20th 2018, 05:37 |
graziel |
https://book.cakephp.org/3.0/en/tutorials-and-examples.html |
# |
Jul 20th 2018, 05:37 |
graziel |
start with tutorial in book |
# |
Jul 20th 2018, 05:37 |
savant |
? |
# |
Jul 20th 2018, 05:37 |
alpereneser |
Way to learn? :slightly_smiling_face: |
# |
Jul 20th 2018, 05:35 |
savant |
i like cakephp :slightly_smiling_face: |
# |
Jul 20th 2018, 05:35 |
alpereneser |
What do you recommend to learn? |