# |
Feb 24th 2020, 11:16 |
dereuromark |
@admad Trying to get this adapter working for cake4. How is the client and factory instantiated for cake4 apps here? https://github.com/php-http/cakephp-adapter/blob/cake4/src/Client.php |
# |
Feb 24th 2020, 11:12 |
admad |
@noel pretty much every FOC plugin has a cake 4 compatible beta release. Check the releases page of any repo. And btw at least I have no interest wasting time tweeting :) |
# |
Feb 24th 2020, 11:01 |
spriz |
if you add it will be in the same transaction :) Just beware the outer transaction fails if the "inner transaction" does :) |
# |
Feb 24th 2020, 10:58 |
ndm |
yes it does, and cakes beforesave event is in the transaction... check the sql logs |
# |
Feb 24th 2020, 10:55 |
noel |
Maybe I should start with a different question. If one does `$table->save()` does that start a transaction? And if one wanted to do some manual inserts that this save should be dependent on, how could one intercept that transaction and add dependent queries to it? |
# |
Feb 24th 2020, 10:52 |
noel |
I mean I could start a transaction as per https://book.cakephp.org/3/en/orm/database-basics.html#using-transactions but how to make sure that isn't a different transaction from the enclosing `save`? |
# |
Feb 24th 2020, 10:50 |
noel |
Ok cool. So here's a FOCing question then :) I'm using CRUD and I'm wanting to do a related insert manually during the `beforeSave` event but I want it to be transactionally linked to the enclosing save. Is there a way to achieve that? |
# |
Feb 24th 2020, 10:48 |
challgren |
Yes FOC is pretty active, theres a big upgrade push right now so everyones off doing projects all over |
# |
Feb 24th 2020, 10:48 |
simondotunix |
Okay :$ |
# |
Feb 24th 2020, 10:48 |
dereuromark |
by the community and the people helping through doing PRs etc :) |
# |
Feb 24th 2020, 10:47 |
noel |
@challgren so it is actively maintained? |
# |
Feb 24th 2020, 10:47 |
challgren |
PRs are always needed |
# |
Feb 24th 2020, 10:47 |
challgren |
Submit PRs |
# |
Feb 24th 2020, 10:45 |
simondotunix |
How could i Join/contribute to friendsofcake? :thinking_face: |
# |
Feb 24th 2020, 10:44 |
spriz |
I mean, at least the repos are not dead at all! Not sure about some stuff :) :) |
# |
Feb 24th 2020, 10:44 |
spriz |
@noel not dead at all! |
# |
Feb 24th 2020, 10:41 |
simondotunix |
Idk.. Last year |
# |
Feb 24th 2020, 10:41 |
challgren |
Hmm when did you last try? |
# |
Feb 24th 2020, 10:41 |
simondotunix |
I always failed when i have tryed to Install intl extension with Brew... |
# |
Feb 24th 2020, 10:40 |
kiwi_6988 |
Hello all! |
# |
Feb 24th 2020, 10:40 |
challgren |
Like apt for Mac |
# |
Feb 24th 2020, 10:40 |
challgren |
It's that way with brew |
# |
Feb 24th 2020, 10:39 |
simondotunix |
On Linux its much easier. sudo apt install php-intl andand sudo apache2 restart and youre done.. |
# |
Feb 24th 2020, 10:39 |
challgren |
I haven't used mamp in years |
# |
Feb 24th 2020, 10:38 |
simondotunix |
Its oldschool.. i know :see_no_evil: |
# |
Feb 24th 2020, 10:38 |
challgren |
Ewwww |
# |
Feb 24th 2020, 10:38 |
simondotunix |
On my Mac i`m using MAMP |
# |
Feb 24th 2020, 10:37 |
challgren |
https://getgrav.org/blog/macos-catalina-apache-multiple-php-versions this is a great Mac php guide |
# |
Feb 24th 2020, 10:36 |
challgren |
You using brew @simondotunix |
# |
Feb 24th 2020, 10:35 |
simondotunix |
But the only thing i never get to work is installing the intl extension on Mac for CakePHP... But its not that bad, on my main system i'm using Linux. |
# |
Feb 24th 2020, 10:35 |
challgren |
Pro tip don't try to load a 15gb file on a Mac that only has 8gb |
# |
Feb 24th 2020, 10:31 |
simondotunix |
But contributing to the docs is also always a very nice thing! :). |
# |
Feb 24th 2020, 10:27 |
simondotunix |
@spencdev I have created a repo yesterday, where i will documenting my PHP learn process. I thought, this could be a funny idea :$ https://github.com/crydotsnake/php-lern-prozess |
# |
Feb 24th 2020, 10:26 |
noel |
Is `friendsofcake` dead? I see last twitter post was 2017. Is there a CakePHP 4.0 roadmap for friendsofcake? Does cake no longer have friends?? |
# |
Feb 24th 2020, 10:24 |
simondotunix |
Interesting. |
# |
Feb 24th 2020, 10:24 |
spriz |
Ah! Neat! When you are ready to jump into more advanced (and fun!) Cake stuff - this is a great starting point https://josediazgonzalez.com/2016/12/01/creating-a-microblogging-platform! |
# |
Feb 24th 2020, 10:24 |
simondotunix |
And i have also a book for PHP and MySQL beginners. |
# |
Feb 24th 2020, 10:23 |
simondotunix |
I'm watching this tutorials right now: https://www.youtube.com/watch?v=kaqaZtpAkw4andlist=PLnBvgoOXZNCMdw9s1E6StlXaYZz0xti4n |
# |
Feb 24th 2020, 10:23 |
spriz |
if you already know other programming languages I'd jump straight into https://book.cakephp.org/4/en/quickstart.html |
# |
Feb 24th 2020, 10:22 |
spriz |
:clap: That's the spirit! I think this is a pretty good starting point if you are completely new to PHP https://www.codecademy.com/learn/learn-php :) |
# |
Feb 24th 2020, 10:22 |
simondotunix |
Okay! :$. Maybe i can contribute in the feature.. |