# |
Aug 6th 2018, 21:44 |
dereuromark |
no, prefix is admin |
# |
Aug 6th 2018, 21:44 |
rightscoreanalysis |
in my case it redirects to admin/admin/articles |
# |
Aug 6th 2018, 21:43 |
rightscoreanalysis |
'loginRedirect' => [ 'controller' => 'admin/Articles', 'action' => 'index', 'plugin' => false ], |
# |
Aug 6th 2018, 21:43 |
rightscoreanalysis |
if i have admin routes setup, is it correct to redirect after login to admin/articles with: |
# |
Aug 6th 2018, 20:44 |
dereuromark |
yeah |
# |
Aug 6th 2018, 20:38 |
rightscoreanalysis |
in allow_auth I tried Pages = * |
# |
Aug 6th 2018, 20:38 |
rightscoreanalysis |
how can I allow the default home page |
# |
Aug 6th 2018, 20:12 |
rightscoreanalysis |
this plugin is so useful, can't live without it |
# |
Aug 6th 2018, 20:11 |
rightscoreanalysis |
thnak you |
# |
Aug 6th 2018, 20:11 |
rightscoreanalysis |
I had: namespace App\Controller; |
# |
Aug 6th 2018, 20:11 |
rightscoreanalysis |
namespace App\Controller\Admin; |
# |
Aug 6th 2018, 20:11 |
rightscoreanalysis |
absolutely! |
# |
Aug 6th 2018, 20:10 |
dereuromark |
this is basic cake error, probably invalid naming or namespace. |
# |
Aug 6th 2018, 20:10 |
dereuromark |
as the stack trace shows |
# |
Aug 6th 2018, 20:10 |
dereuromark |
this is not related to the plugin |
# |
Aug 6th 2018, 20:10 |
rightscoreanalysis |
nad in ACL [Admin] * = admin |
# |
Aug 6th 2018, 20:10 |
rightscoreanalysis |
however this already exists, in my allow auth I have: admin/Users = login, requestPassword, resetPassword |
# |
Aug 6th 2018, 20:10 |
rightscoreanalysis |
@dereuromark hi when using your TinyAuth plugin I am getting an error: Error: Create the class UsersController below in file: src\Controller\Admin\UsersController.php |
# |
Aug 6th 2018, 20:09 |
chris-andre |
@mikesmoniker Shouldn't be any problem. Extend TestCase for unittests and IntegrationTestCase for integration, and you'll be fine. |
# |
Aug 6th 2018, 19:51 |
mikesmoniker |
I suppose I’d break `bin/cake bake test ...`. |
# |
Aug 6th 2018, 19:40 |
mikesmoniker |
I’m looking at splitting my tests into something like `tests/TestCase/{Unit,Integration,etc.}/*`. I can’t think of any reason that would be a problem with Cake, but I figured I’d ask the audience. |
# |
Aug 6th 2018, 19:24 |
edgaras.jan |
@amran08 As alternate, you can send emails via Sendgrid SMTP using CakePHP core SmtpTransport |
# |
Aug 6th 2018, 19:13 |
ricksaccous |
no problem |
# |
Aug 6th 2018, 19:02 |
amran08 |
I didn't know the rules /practice here |
# |
Aug 6th 2018, 19:02 |
amran08 |
Extremely sorry |
# |
Aug 6th 2018, 19:01 |
ricksaccous |
it's better to ask the whole channel than target someone |
# |
Aug 6th 2018, 19:00 |
ricksaccous |
it's more that you asked for help from a specific person than people in general |
# |
Aug 6th 2018, 18:59 |
amran08 |
you guys are down voting :( |
# |
Aug 6th 2018, 18:59 |
amran08 |
I thought I could get help from you guys |
# |
Aug 6th 2018, 18:58 |
amran08 |
what's wrong with asking help ? |
# |
Aug 6th 2018, 17:47 |
chris-andre |
WorkEmail uses EmailsTable class. |
# |
Aug 6th 2018, 17:46 |
dwms |
@admad help me |
# |
Aug 6th 2018, 17:46 |
slackebot |
work_email/emails, I want to put the logic in EmailsTable. Is the right approach to this logic by unsetting property in Emails::beforeSave() if it is empty, and in afterSave(), check if email is empty, and if so, delete the record? |
# |
Aug 6th 2018, 17:46 |
chris-andre |
@admad My explanation is wrong. What I'm trying to solve is: When adding a contact and leaving 'work_email'-field empty, I don't want to save a new record in the Emails table. Also, if a contact with a work_email is being edited, where email is left empty on update, than the emails-record should be deleted. So that being said, I don't want records in Emails table where email is empty/null. As It's not only Contacts hasOne/Many |
# |
Aug 6th 2018, 17:34 |
admad |
@chris-andre did you try just setting the property to `null` ? |
# |
Aug 6th 2018, 17:30 |
dwms |
Inclusion of relationships in index() action not work in crud-json-api |
# |
Aug 6th 2018, 17:30 |
dwms |
help me |
# |
Aug 6th 2018, 16:52 |
chris-andre |
In beforeSave, is there a way I can unset/delete the entity object (stop it from being saved) without destroying the rest of the transactions? `if($entity->work_email->isNew() andand empty($entity->work_email->email)) { /* don't save this entity */ }` |
# |
Aug 6th 2018, 16:50 |
ricksaccous |
gotcha |
# |
Aug 6th 2018, 16:50 |
flavius |
the getters and setters were added "recently", that's why the functions that did both were deprecated :slightly_smiling_face: |
# |
Aug 6th 2018, 16:44 |
ricksaccous |
for some reason i just assumed that the function has been there a while, shnappp |