# |
Dec 10th 2019, 12:47 |
neon1024 |
Even 1.0.0 depends on 3.x |
# |
Dec 10th 2019, 12:47 |
neon1024 |
https://packagist.org/packages/cakephp/migrations#1.0.0 |
# |
Dec 10th 2019, 12:47 |
neon1024 |
No, you’re right there @martin |
# |
Dec 10th 2019, 12:44 |
neon1024 |
That was pre-Phinx though I think :thinking_face: |
# |
Dec 10th 2019, 12:44 |
neon1024 |
Migrations worked with 2.x |
# |
Dec 10th 2019, 12:41 |
martin |
https://book.cakephp.org/migrations/2/en/index.html# << why is this in the 2.x cookbook? this is 3.x right? |
# |
Dec 10th 2019, 12:37 |
yadav.manu36 |
@damiano use query string with view detail URL <?= $this->Html->link("View Detail", ['action' => 'view', $user->id, '?' => $this->request->getQuery()], ['alt' => __('View user'), 'title' => __('View user')]) ?> and when you want to go back then use below url <?= $this->Html->link("Back", ['action' => 'index', '?' => $this->request->getQuery()], ['alt' => __('Go Back'), 'title' => __('Go Back')]) ?> |
# |
Dec 10th 2019, 12:32 |
damiano |
to go back without using the browser i mean |
# |
Dec 10th 2019, 12:32 |
damiano |
guys what is the best way to "remember" the page (pagination) when i go to the detail of a product of the list i have paginated? |
# |
Dec 10th 2019, 12:22 |
ashish_onmobile |
I am not able to instal intl extension |
# |
Dec 10th 2019, 12:22 |
ashish_onmobile |
did anyone try latest xampp vm update |
# |
Dec 10th 2019, 12:01 |
yadav.manu36 |
can anyone help me? |
# |
Dec 10th 2019, 11:56 |
gianmarxgagliardi |
@neon1024 wrooooooooooooooo |
# |
Dec 10th 2019, 11:55 |
gianmarxgagliardi |
@jotpe @steinkel thanks I hope I haven't forgotten anyone |
# |
Dec 10th 2019, 11:55 |
gianmarxgagliardi |
solved big boys |
# |
Dec 10th 2019, 11:53 |
gianmarxgagliardi |
it was a problem of fields |
# |
Dec 10th 2019, 11:52 |
gianmarxgagliardi |
ok it works |
# |
Dec 10th 2019, 11:50 |
steinkel |
your `$fields` are matching the form field names? |
# |
Dec 10th 2019, 11:49 |
steinkel |
well, it says the credentials are not found |
# |
Dec 10th 2019, 11:48 |
gianmarxgagliardi |
@steinkel yes, but it says that they are not valid even if they are |
# |
Dec 10th 2019, 11:48 |
yadav.manu36 |
I want to use only vendor plugin templates in root plugin structure but it is not working. can anyone help me? |
# |
Dec 10th 2019, 11:46 |
slackebot2 |
<gianmarxgagliardi> |
# |
Dec 10th 2019, 11:45 |
steinkel |
are you using valid credentials and submitting the form? |
# |
Dec 10th 2019, 11:45 |
gianmarxgagliardi |
yes |
# |
Dec 10th 2019, 11:45 |
steinkel |
you should see the login form right? |
# |
Dec 10th 2019, 11:45 |
steinkel |
go to /users/login page |
# |
Dec 10th 2019, 11:44 |
gianmarxgagliardi |
@steinkel I didn't understand what I should do |
# |
Dec 10th 2019, 11:41 |
steinkel |
@gianmarxgagliardi try posting the credentials to the users/login form |
# |
Dec 10th 2019, 11:40 |
neon1024 |
I feel like if @gianmarxgagliardi application starts working we’ll open a portal to Final Space and unleash the Titans upon our Universe |
# |
Dec 10th 2019, 11:35 |
slackebot2 |
_\src\Controller\UsersController.php (line 136)_ ```object(Authentication\Authenticator\Result) { [protected] _status => 'FAILURE_CREDENTIALS_MISSING' [protected] _data => null [protected] _errors => [ (int) 0 => 'Login credentials not found' ] }``` |
# |
Dec 10th 2019, 11:35 |
gianmarxgagliardi |
in _Application.php_ I changed as follows: ```$service->loadAuthenticator('Authentication.Form', [ 'fields' => $fields, 'loginUrl' => \Cake\Routing\Router::url([ 'plugin' => null, 'prefix' => null, 'controller' => 'Users', 'action' => 'login' ]) ]);``` *does not login* yet but the error has changed: |
# |
Dec 10th 2019, 11:28 |
damiano |
got it |
# |
Dec 10th 2019, 11:28 |
damiano |
ok |
# |
Dec 10th 2019, 11:28 |
damiano |
then i need to check if the url startswith.. my path |
# |
Dec 10th 2019, 11:28 |
damiano |
@dereuromark $this->request->getPath() |
# |
Dec 10th 2019, 11:26 |
jotpe |
It's from a Helper |
# |
Dec 10th 2019, 11:26 |
dereuromark |
i dont think you should use ::url() here, etc. Why not using only request data? |
# |
Dec 10th 2019, 11:26 |
jotpe |
```if (Router::url($route) === $this->getView()->getRequest()->getPath()) { $options['class'] = 'active'; }``` |
# |
Dec 10th 2019, 11:26 |
jotpe |
@damiano I use this in a Helper to check the current page against a route: |
# |
Dec 10th 2019, 11:25 |
conehead |
```if ($this->getRequest()->getParam('controller') === 'Pages' andand $this->getRequest()->getParam('action') === 'home'``` |
# |
Dec 10th 2019, 11:22 |
damiano |
i need to add a clas sin a link (current page) |