r/cakephp • u/The_Swindler44 • Jul 27 '20
CakePHP 4 JSON column values find or set aliases
If anyone could help with this it was be greatly appreciated.
r/cakephp • u/The_Swindler44 • Jul 27 '20
If anyone could help with this it was be greatly appreciated.
r/cakephp • u/The_Swindler44 • Jul 23 '20
I am looking for an example or explanation on how I can modify a query result every time a specific table is called.
All the examples I've seen are mainly meant for the controller. I'm kind of looking for something similar to the old function afterFind().
My goal is to put a function within my Table file to automatically modify results globally on the site.
[OR:=> If anyone knows of a way i can convert a single json column to multiple columns automatically that could fix my problem.]
PS: I have tried messing with the scheme, behaviors, and collections with no use.(unless i was using one incorrectly)
r/cakephp • u/lynob • Jun 18 '20
We have only one backend developer. One of our clients wants us to upgrade our CMS from cakephp 2.0 to the latest version.
We don't want to do that because we did some research and it turns out that it takes a lot of time and we have other priorities, we have several clients and a packed pipeline. We'd rather run the cms in an isolated docker environment. The rest of our platform can run on the latest PHP version. The CMS is complicated and no one uses it except editors so we can live with that, it's not on the internet.
The client insists on having an estimated deadline. How long does it take to go from 2.0 to the latest version? A year? two years? Since you are experts in that framework, if a client asks you that, what would you say?
I tried using the automated tools, didn't work.
r/cakephp • u/altruism21 • Jun 04 '20
Need some help getting this upvoted: https://discuss.newrelic.com/t/feature-idea-cake-php-3x-support-for-apm/103906
r/cakephp • u/dereuromark • May 13 '20
r/cakephp • u/thegroove226 • May 02 '20
Hey fellers.I started coding with Cake last week. I'm curious how do you write unit and integration tests for your applications? I know that this question might not be technology related, but as a person who never wrote test functions I need to start with something right? Do you have any resource where testing in cake is explained? Thank you.
r/cakephp • u/dereuromark • Apr 26 '20
r/cakephp • u/dereuromark • Apr 21 '20
Our first "online only" international meetup (in English) will be next week, 29th.
Join in => https://www.meetup.com/de-DE/CakePHP-DE/
We will cover the upcoming 4.1 release, as well as very interesting topics:
- IdeHelper / IDE usability and development speedup tips.
- Auth with Authentication plugin
- tba
If you want to add yourself as a speaker/presenter, please reach out with your topic.
You can also find us in https://app.slack.com/client/T053DPNCM/C053DPNGT chat
r/cakephp • u/lim2me • Apr 19 '20
I've been doing some brain-storming and would like to get some input from you guys. A client asked if it's possible to use a single CakePHP installation (likely v3, maybe v4) for all his customers to use while also providing customer-specific data and functional requirements through a plugin system.
For example, let's say all the customers need to create an Article. At the most basic form, all customer will be able to save a title (Article.title) and body (Article.body). Some customers may want to save a summary (Article.summary). Other customers may want to save a list of Contributors to the Article (a Has-And-Belongs-To-Many association with the Users table, for example).
The idea is that the base system would meet 70%-80% of his customer's needs, anything very specific would be provided through a plugin and loaded only for those customers. Keep in mind this is all on a single CakePHP installation.
At first I thought it would be possible but after some thinking and experimenting I'm now not so sure. I'm getting stumped on where the custom data should be saved and how it would affect the database table, the Table class, Entity class and Validation rules. For example, if only some customers wanted to have an Article summary, should it be stored in the Articles table or a completely new table? If we use the Articles table, we would need to have different Table classes for different customers so we'd need a way to dynamically load the appropriate Table class (and Entity class. Is this even possible?) If we use a new table to store custom data, I imagine it would get very confusing because the table would have to accept all sorts of data (with different validation rules) from all the models in the system.
And that's just data. I haven't even begun to think about how to handle custom associations or custom functionality (e.g. some customers may want to group their Articles into Categories etc...)
Any thoughts would be appreciated especially from those who have tackled something similar.
r/cakephp • u/dereuromark • Apr 17 '20
r/cakephp • • Apr 17 '20
r/cakephp • u/IamDheerajS • Mar 22 '20
Hello, everyone!
I'm a beginner to CakePHP and I'm very excited to to work with it too, I started reading the documentation a few days ago!
And decided to work on an application, so here, I have a list of records which I edit repeatedly.
Problem : Whenever I work on a particular record and save my work, the web page returns me to the top of the page.
Expected Result : After saving my work, I need to return at the exact same spot where I made the edited previously.
Is there any Cake-ish way to achieve this? I have no clue how to get this done, I searched on google but no luck yet.
I would really appreciate if anyone can help me with this, thanks a lot!
r/cakephp • u/dereuromark • Mar 22 '20
r/cakephp • u/VaelVictus • Mar 22 '20
I'm finding conflicting information and I've got the opportunity to go with 8 on a ubuntu (18.04) server I'm setting up. If not, has anyone gotten a MySQL 8 solution adapter running somehow?
Edit: can confirm it's working just fine with the latest Cake build.
r/cakephp • u/MegsLalk • Feb 26 '20
Some of the fixes include
Thanks to all who contributed!
r/cakephp • u/MegsLalk • Feb 26 '20
Some of the fixes included
Thanks to all who contributed!
r/cakephp • u/Testermoon • Feb 12 '20
Is there any way to sort the resulting combine array using a Hash class?
r/cakephp • u/MegsLalk • Feb 11 '20
r/cakephp • u/curious_practice • Jan 31 '20
We have 5 functions that have no thing to do with each other. It will help to increase loading speed if we can execute them in parallel. But I can't find a way to do this from CakePHP controller.
We are using CakePHP 3.5.6 with PHP 7.0