# |
Sep 2nd 2019, 08:32 |
neon1024 |
Anyone done a social media style feed before? I can’t really think of a neat way to gather user activity across multiple Table classes. I can only really think of an activities table, which a behavior writes to whenever something happens |
# |
Sep 2nd 2019, 08:32 |
javier.villanueva |
I am migrating my AuthComponent system to the Authentication Plugin, anyone have a tutorial of Authentication Plugin? The documentation in Cookbook is limited, and I have a lot of errors.. |
# |
Sep 2nd 2019, 08:31 |
neon1024 |
Moin @alexdd55976 |
# |
Sep 2nd 2019, 07:31 |
alexdd55976 |
good morning |
# |
Sep 2nd 2019, 07:30 |
javier.villanueva |
in your entity "Table" |
# |
Sep 2nd 2019, 07:30 |
javier.villanueva |
dont forget $this->addBehavior('Timestamp'); behavior |
# |
Sep 2nd 2019, 07:29 |
javier.villanueva |
yes |
# |
Sep 2nd 2019, 07:27 |
val |
Hi, are 'created' and 'modified' columns supported in 3.x? |
# |
Sep 2nd 2019, 07:17 |
javier.villanueva |
morning all |
# |
Sep 2nd 2019, 04:48 |
conehead |
@cnizzardini Open your `app.php` and search for `errorLevel`. It should already be there under `Error => errorLevel`. Just change it to `E_ALL and ~E_USER_DEPRECATED` |
# |
Sep 2nd 2019, 04:45 |
conehead |
I had these errors showing for some files that were not in my plugins/src folders |
# |
Sep 2nd 2019, 04:19 |
admad |
@cnizzardini instead of trying to hide the warnings update your code to not use deprecated method which generates the warnings |
# |
Sep 2nd 2019, 01:50 |
cnizzardini |
Hmm, I'm switching a plugin I've mind to be a stand-alone project. My unit tests are failing now, one of them is because of `You can disable deprecation warnings by setting `Error.errorLevel` to `E_ALL and ~E_USER_DEPRECATED` in your config/app.php. ` I am not sure how to set app.php in this project. Tried using Configure::write but its not working. |
# |
Sep 2nd 2019, 00:37 |
cnizzardini |
n/m was missing bootstrap="./tests/bootstrap.php" in my phpunit xml file |
# |
Sep 1st 2019, 23:57 |
cnizzardini |
I've set this up outside of a standard cakephp3 install, not sure how to setup the tests/bootstrap.php file. at least i think that is what the issue is |
# |
Sep 1st 2019, 23:56 |
cnizzardini |
Encountering the following when running unit tests on cake3 plugin Uncaught Error: Call to undefined function Cake\TestSuite\Fixture\loadPHPUnitAliases() in /var/www/personal/cakephp-yummy/vendor/cakephp/cakephp/src/TestSuite/Fixture/FixtureManager.php:17 |
# |
Sep 1st 2019, 19:15 |
JMZF |
Hi |
# |
Sep 1st 2019, 17:34 |
MoanaSilva |
Thank you again @dereuromark |
# |
Sep 1st 2019, 17:31 |
MoanaSilva |
It works like a charm... I just had to create a virtual host cause I was developing in a folder inside localhost |
# |
Sep 1st 2019, 16:42 |
MoanaSilva |
I'll try it... |
# |
Sep 1st 2019, 16:36 |
dereuromark |
Does this help? https://github.com/dereuromark/cakephp-tools/pull/245 maybe someone can add a few things on top to make it mergable. |
# |
Sep 1st 2019, 16:31 |
dereuromark |
I can wrap sth up quickly, one sec |
# |
Sep 1st 2019, 16:20 |
MoanaSilva |
Hmmmm, this would be nice |
# |
Sep 1st 2019, 16:17 |
dereuromark |
a neat trick is do use a component that can intercept normal controller redirect :slightly_smiling_face: i can see if I can open source this part from what I use. |
# |
Sep 1st 2019, 16:16 |
dereuromark |
or you pass a specific "ref"/"referer" query string with the current URL. |
# |
Sep 1st 2019, 16:15 |
dereuromark |
basically you can either pass all query strings along to be used for the redirect and all links relevant to go back. |
# |
Sep 1st 2019, 16:15 |
dereuromark |
I should write a blog post about it ;) |
# |
Sep 1st 2019, 16:12 |
MoanaSilva |
@dereuromark there's any example available on github with the source for this? |
# |
Sep 1st 2019, 16:10 |
dereuromark |
there are several strategies to keep them, I recommend not using session for sure. I use query strings instead to pass along. |
# |
Sep 1st 2019, 15:52 |
MoanaSilva |
Hey guys... I need your help. I'm using the Search plugin from the friendsofcake, but when I go inside an edit for example, and I save the informations I lost the filters... What can I do to keep the filters? |
# |
Sep 1st 2019, 15:50 |
vjnvisakh |
Cache::set(array('path' => CACHE . "festivals" . DS)); This is not working |
# |
Sep 1st 2019, 15:50 |
vjnvisakh |
how to set cache path in cake |
# |
Sep 1st 2019, 15:21 |
ruslangr |
Thank you. |
# |
Sep 1st 2019, 13:04 |
admad |
after that upgrading to 4.0 will be relatively easy |
# |
Sep 1st 2019, 13:04 |
admad |
upgrade to 3.8 |
# |
Sep 1st 2019, 13:03 |
ruslangr |
Thank you. Give me advice , please. To wait for 4.x Cake version, or upgrade my 2.6 project to 3.8 ? |
# |
Sep 1st 2019, 12:34 |
vjnvisakh |
ok |
# |
Sep 1st 2019, 12:34 |
dereuromark |
try it |
# |
Sep 1st 2019, 12:34 |
vjnvisakh |
if I download 2.9 and just shift my controllers, views and models will they work fine? |
# |
Sep 1st 2019, 12:33 |
vjnvisakh |
true ... company is a little scared of moving to new tech |
# |
Sep 1st 2019, 12:33 |
dereuromark |
in fact - by now you should already be on 2.9 or higher for months now, including php7.1/7.2. |