# |
Aug 7th 2018, 07:54 |
ondrej.nedvidek |
how straightforward if you can 'read' :) |
# |
Aug 7th 2018, 07:53 |
ondrej.nedvidek |
just noticed in API ;) yep missed that originally .. thanks ;) |
# |
Aug 7th 2018, 07:53 |
admad |
@ondrej.nedvidek did you check the 3rd argument for `where()`? :slightly_smiling_face: |
# |
Aug 7th 2018, 07:40 |
ondrej.nedvidek |
@okelet thanks for tip ! ;) |
# |
Aug 7th 2018, 07:39 |
okelet |
@ondrej.nedvidek you can use $q->cleanCopy(), but it also clears more settings of the query, not only conditions |
# |
Aug 7th 2018, 07:29 |
ondrej.nedvidek |
Hi there ;) CakePHP 3 Query object. Is there option to change conditions (where) for Query object which has already set some? When I use where(), orWhere, andWhere it just adds another condition. But I need in ideal world delete old and insert new. Thanks |
# |
Aug 7th 2018, 02:45 |
blancessanchez30 |
hello how to update image on cake 2? |
# |
Aug 6th 2018, 22:04 |
rightscoreanalysis |
I think it is working now, I set explicitly false where required and prefex where applicable, deleted cookies and now the redirect loop seems to have stopped |
# |
Aug 6th 2018, 22:01 |
dereuromark |
also for all layout URLs. thats why my tools plugin provides helper methods here, e.g. linkDefault() etc. |
# |
Aug 6th 2018, 22:01 |
dereuromark |
prefix=>false for your login auth url |
# |
Aug 6th 2018, 22:01 |
dereuromark |
all your base URLs must always contain explicit setup |
# |
Aug 6th 2018, 22:01 |
dereuromark |
yeah typical mistake when using prefix routing |
# |
Aug 6th 2018, 21:56 |
rightscoreanalysis |
allow_auth: admin/Users = login, requestPassword, resetPassword |
# |
Aug 6th 2018, 21:56 |
rightscoreanalysis |
unauthed redirects to: /admin/users/login |
# |
Aug 6th 2018, 21:56 |
rightscoreanalysis |
I am getting too many redirects |
# |
Aug 6th 2018, 21:46 |
rightscoreanalysis |
thank you |
# |
Aug 6th 2018, 21:45 |
dereuromark |
controller is Articles |
# |
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 |