# |
Dec 10th 2019, 08:38 |
gianmarxgagliardi |
the login function of the tutorial 3.8.5 ``` public function login() { if ($this->request->is('post')) { $user = $this->Auth->identify(); if ($user->isValid()){ $this->Auth->setUser($user); return $this->redirect($this->Auth->redirectUrl()); } $this->Flash->error('Your username or password is incorrect.'); } }``` the |
# |
Dec 10th 2019, 08:35 |
gianmarxgagliardi |
@jotpe I saw the project that you shared with what I did from me, there are no big differences are the same. One of the differences is in the login function in the UsersController. Only the login function of the project gives me an error |
# |
Dec 10th 2019, 08:12 |
gianmarxgagliardi |
morning |
# |
Dec 10th 2019, 08:11 |
javier.villanueva |
morning all |
# |
Dec 10th 2019, 01:05 |
kgb.acct.personal |
Uhm. Thanks |
# |
Dec 10th 2019, 01:03 |
slackebot2 |
!tias |
# |
Dec 10th 2019, 01:03 |
slackebot2 |
Command sent from Slack by challgren: |
# |
Dec 10th 2019, 01:01 |
slackebot2 |
!tsia |
# |
Dec 10th 2019, 01:01 |
slackebot2 |
Command sent from Slack by kgb.acct.personal: |
# |
Dec 10th 2019, 00:17 |
dereuromark |
remove that command, you dont need that line |
# |
Dec 10th 2019, 00:14 |
luizcmarin |
yes. composer does not install without errors on php74 ... |
# |
Dec 9th 2019, 23:17 |
luizcmarin |
error only php74..? php73 is ok |
# |
Dec 9th 2019, 22:11 |
luizcmarin |
My attempts to start a new project are not working. (windows 10) $ composer create-project --prefer-dist cakephp / app hello |
# |
Dec 9th 2019, 21:50 |
rochasmarcelo |
@luizcmarinyou can always update the doc when you found some issue and a send a pull request . On the right side of the page there is an edit button, please check https://book.cakephp.org/3/en/contributing/documentation.html to understand the documentation files |
# |
Dec 9th 2019, 21:36 |
slackebot2 |
But in Portuguese it says: "ApplesController (...‘ ApplesController.php ') is accessed by http://example.com/apples. " Now the example used is 'users' in English, which agrees with the general context. Already in Portuguese we have 'people', 'users' and 'apples'! In addition, the documentation in Portuguese is not following the documentation in English. Compare the following topic "View Conventions" in English and Portuguese. You can see that ther |
# |
Dec 9th 2019, 21:36 |
slackebot2 |
are more things. So I ask, so that my collaboration is not in vain and ends up in a maze that no one else understands anything: how to proceed? I've worked with documentation and text editing, and it was not easy for me to understand cakephp with the documentation that now said one thing then exemplified another .... [13h15] hummmm .... until the message above didn't get that big ... I thought it would get worse ...:,) |
# |
Dec 9th 2019, 21:36 |
slackebot2 |
"PeopleController and LatestArticlesController" and "/ articles / view maps to ArticlesController view () method", which is different: 'People' and 'Users', for Brazilian programmers refer to different things. See another example on the same link, now under the topic "URL Considerations for Controller Names". The first sentence ends with "file name UsersController.php) is accessed from http://example.com/users." in the 3.x and 4.x documentation. |
# |
Dec 9th 2019, 21:36 |
luizcmarin |
Hi. I'm working on the portuguese translation. But the current Portuguese translation is somewhat confusing. It is different from the original in English. For example, https://book.cakephp.org/3/en/intro/conventions.html uses "UsersController and ArticleCategoriesController" and "/ users / view maps to view () method of the UsersController" in controller conventions. In documentation 4.x follows the same. Already in Portuguese appears |
# |
Dec 9th 2019, 21:36 |
luizcmarin |
I would like to get a broader feedback from the other project participants on the subject below because the Portuguese translation is so outdated. It's very discouraging ... a pity after so much effort from those who have devoted themselves to this work. " |
# |
Dec 9th 2019, 20:21 |
slackebot2 |
idea .... |
# |
Dec 9th 2019, 20:21 |
luizcmarin |
@ndm "Yeah, maybe you're taking it a tiny step to do it @luizcmarin, CakePHP licenses don't cost 1000+ dollars, so CakeSF could afford employing a dedicated documentation team. Surely there's quite some room for improvement, but you got to keep your expectations real " You're right. If I had 1000 dollars I would do all the documentation since I have some free time due to the severe fibromyalgia that attacks me. And until you gave a good |
# |
Dec 9th 2019, 19:46 |
japerlman |
I tried using \" to force the quotes in but that just creates a different error |
# |
Dec 9th 2019, 19:45 |
japerlman |
It's building the query as SELECT (SUM(ClientLogs.hours)) instead of SELECT (SUM("ClientLogs"."hours")) |
# |
Dec 9th 2019, 19:19 |
japerlman |
]: Undefined table: 7 ERROR: missing FROM-clause entry for table "clientlogs" LINE 1: SELECT (SUM(ClientLogs.hours)) AS "hours", "ClientLogs"."cli... ^ |
# |
Dec 9th 2019, 19:19 |
japerlman |
Works, but if I switch the comment for the send line, trying to SUM that same field |
# |
Dec 9th 2019, 19:19 |
japerlman |
``` $logReport ->select([ //'hours' => $logReport->func()->sum('ClientLogs.hours'), 'ClientLogs.hours', 'ClientLogs.client_id'``` |
# |
Dec 9th 2019, 19:19 |
japerlman |
Sorry, wasn't done formatting. |
# |
Dec 9th 2019, 19:18 |
japerlman |
Can someone help with SUM() on a query? I have this and it works, but if I try to SUM that same field with $logReport ->select([ 'hours' => $logReport->func()->sum('ClientLogs.hours'), //'ClientLogs.hours', 'ClientLogs.client_id' |
# |
Dec 9th 2019, 18:24 |
jotpe |
This works with the sql from the cms tutorial |
# |
Dec 9th 2019, 18:24 |
gianmarxgagliardi |
I think it's a problem related to the sessions |
# |
Dec 9th 2019, 18:23 |
jotpe |
@gianmarxgagliardi https://github.com/julianpollmann/cakephp-auth |
# |
Dec 9th 2019, 18:20 |
gianmarxgagliardi |
in the meantime, someone can help me with my problem --> https://stackoverflow.com/questions/59253645/login-does-not-work-does-not-log-in-even-if-the-credentials-are-correct |
# |
Dec 9th 2019, 18:19 |
gianmarxgagliardi |
@jotpe thanks |
# |
Dec 9th 2019, 17:30 |
jotpe |
@gianmarxgagliardi I guess there is no sample project, I'll create one ;) |
# |
Dec 9th 2019, 17:16 |
gianmarxgagliardi |
the problem is that with the new guide I wouldn't know exactly where you start. Is there not an example of a project? |
# |
Dec 9th 2019, 16:33 |
slackebot2 |
test case to demonstrate this but _clients_ |
# |
Dec 9th 2019, 16:33 |
sdevore |
If you are using DebugKit as well I have seen this happen with nested entities when building the Variables tab. usually due to the ->getErrors() call in vendors/cakephp/cakephp/src/Datasource/EntityTrait.php around line 1462 (in version 3.7.x which I am currently working in. If I pass in false in ` ```'[hasErrors]' => $this->hasErrors(false),``` ` in `public function __debugInfo()` I seem to be ok. II’m planning on trying to figure out |
# |
Dec 9th 2019, 16:17 |
jotpe |
You can use the same db setup like described here: https://book.cakephp.org/3/en/tutorials-and-examples/cms/database.html#cms-tutorial-creating-the-database |
# |
Dec 9th 2019, 16:17 |
jotpe |
I would do it. Or simply test it in another app. |
# |
Dec 9th 2019, 16:14 |
gianmarxgagliardi |
should I redo the project from scratch this way? |
# |
Dec 9th 2019, 16:04 |
jotpe |
@gianmarxgagliardi yes, it's different and uses a Middleware. See https://book.cakephp.org/authentication/1/en/migration-from-the-authcomponent.html |