# |
Apr 18th 2017, 15:29 |
Junior` |
yello :) |
# |
Apr 18th 2017, 15:06 |
jeremyharris |
so you should be good |
# |
Apr 18th 2017, 15:06 |
jeremyharris |
CraddockJ it’s true by default |
# |
Apr 18th 2017, 14:38 |
CraddockJ |
Looking for a little clarity for cascade deletes in cakephp 2. In the model i've set the dependent property to true, is that all that is necessary or do I have to specify cascade = true in the controller delete? Presently I'm just using $this->Company->delete() |
# |
Apr 18th 2017, 14:08 |
mampel |
@dakota yes I use homebrew for install my packages, and my macOS ver is sierra 10.12, you said mamp is full of issues but I wanted to test mamp for this solution instead of xampp becoz I have no way :| |
# |
Apr 18th 2017, 14:07 |
Junior |
i know that i load it because i have started to do debug inside the plugin as my user var is null |
# |
Apr 18th 2017, 14:06 |
Junior |
sorry, brb |
# |
Apr 18th 2017, 14:06 |
Junior |
Same thing |
# |
Apr 18th 2017, 14:06 |
Junior |
I have added to AdminController as all my controllers extend Admin and not App |
# |
Apr 18th 2017, 14:05 |
Junior |
yep |
# |
Apr 18th 2017, 14:02 |
nemmons |
did you follow all the instructions here https://github.com/UseMuffin/Footprint including adding the FootprintAwareTrait to your AppController? |
# |
Apr 18th 2017, 13:58 |
Junior |
i have modified, my columns are updated with empty strings |
# |
Apr 18th 2017, 13:38 |
Junior |
i see, will try now, thanks! |
# |
Apr 18th 2017, 13:36 |
nemmons |
It works great for me. The default config settings specify the columns as 'created_by' and 'modified_by' so you might have to tweak the config for your column names |
# |
Apr 18th 2017, 13:36 |
Junior |
will give it another go then |
# |
Apr 18th 2017, 13:36 |
Junior |
nemmons, i thik that i have tried that in the past but failed |
# |
Apr 18th 2017, 13:34 |
nemmons |
Junior, you want https://github.com/UseMuffin/Footprint |
# |
Apr 18th 2017, 13:28 |
Junior |
I have an app written in cakePHP 3.x . In all my tables besides created and modified i have added "createdby" and "modifiedby" (int 10) . I would like to populate somehow this columns with the logged in user (using authacl). I know that there was a plugin or maybe something simple as i don't want to change all models. Thanks! |
# |
Apr 18th 2017, 13:27 |
Junior |
yello! :) |
# |
Apr 18th 2017, 13:08 |
lukesoft |
thanks dakota….forgot to specify vendor |
# |
Apr 18th 2017, 13:08 |
lukesoft |
not ‘plugin’ => ‘Users’ |
# |
Apr 18th 2017, 13:08 |
dakota |
lukesoft What’s your error logs saya Ah ok :slightly_smiling_face: |
# |
Apr 18th 2017, 13:08 |
lukesoft |
‘plugin’ => ‘CakeDC/Users’ |
# |
Apr 18th 2017, 13:08 |
lukesoft |
never mind……got it |
# |
Apr 18th 2017, 13:04 |
lukesoft |
i know this is suppose to be super straightfoward |
# |
Apr 18th 2017, 13:04 |
lukesoft |
Hi Everyone…how do i override /users/users/register route (from CakeDC Users plugin) to just /register…i tried this http://paste.opensuse.org/73876854 but getting ‘An Internal Server Error Occurred’ |
# |
Apr 18th 2017, 12:12 |
dakota |
In my experience :slightly_smiling_face: |
# |
Apr 18th 2017, 12:11 |
dakota |
Weirdly, mamp on windows works really well, but on mac it’s full of issues |
# |
Apr 18th 2017, 12:11 |
dakota |
I’ve only ever heard of problems with mamp |
# |
Apr 18th 2017, 12:11 |
dakota |
That way I know that my dev env. is nearly identical to my production env. |
# |
Apr 18th 2017, 12:10 |
dakota |
But, for actual application development, I use vagrant |
# |
Apr 18th 2017, 12:10 |
dakota |
mampel, I use homebrew for my mac php needs |
# |
Apr 18th 2017, 11:46 |
aiena |
not sure |
# |
Apr 18th 2017, 11:46 |
aiena |
since that is the only primary key maybe it still works |
# |
Apr 18th 2017, 11:45 |
aiena |
bernat, yeah but it works. cake has some fall backs. I never created this project. I cant do much about conventions at this point |
# |
Apr 18th 2017, 11:44 |
bernat |
aiena: that's surprising because your primary key doesn't follow cake conventions. |
# |
Apr 18th 2017, 11:44 |
aiena |
that code was working |
# |
Apr 18th 2017, 11:44 |
aiena |
sorry solved. It was a problem with the form |
# |
Apr 18th 2017, 11:43 |
joris_ |
i keep getting `PHP Fatal error: Class 'PHPUnit\Framework\TestCase' not found in /var/www/html/cakephp-upload/vendor/cakephp/cakephp/src/TestSuite/TestCase.php on line 32` which means phpunit isn't autoloading but it got installed automatically through composer |
# |
Apr 18th 2017, 11:42 |
joris_ |
Anyone else having trouble testing a cake 3 app through phpunit in ubuntu 16.04 ? |
# |
Apr 18th 2017, 11:40 |
aiena |
what is wrong ? |