Below is my cakephp 2.x code, can someone help me to make this work in my current cakephp 4.x project
SIGN IN
<button class="btn btn-primary pull-right btn-min">
SIGN IN
</button>
</form>
Below is my cakephp 2.x code, can someone help me to make this work in my current cakephp 4.x project
<button class="btn btn-primary pull-right btn-min">
SIGN IN
</button>
</form>
There is a tutorial in the documentation, that covers the form and the required plugin (in cake 4 “authentication plugin” replaced the “auth plugin”:
https://book.cakephp.org/4/en/tutorials-and-examples/cms/authentication.html
Then authentication is removing my project name. What is the posible cause for this problem . i followed the instruction base on the URL .
The URL should be . localhost/cms/login.
Please try this:
In your Application.php in function getAuthenticationService…
replace
'unauthenticatedRedirect' => '/login',
with
'unauthenticatedRedirect' => \Cake\Routing\Router::url('/users/login'),
Replace
'loginUrl'=>'/login',
with
'loginUrl' => \Cake\Routing\Router::url('/users/login'),
honestly said, I don’t know if or how you can remove it.
it simply show the referring page.
I see. Anyways thank you for your help really big hellp
I am currently upgrading may Cakephp 2.x to 4.x so its hard for me to understand the structures.
Keep in touch .