PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Wednesday, January 26, 2022

[FIXED] How to call yii user login in restfullyii?

 January 26, 2022     yii, yii-extensions     No comments   

Issue

I'm using yii user and rights for creating rbac in yii. i also uses restfullyii for Restfull services.

Now i need to merge the yii user and restfullyii, so that when i submit username and password in the client side(frontend), i should pass it through restfullyii to yii user and checks for the login credentials and return the appropriate message to the client.

When i tried the url with the Chrome Advanced Rest Client Application extension, i get the following error.

  <h2>Error 404</h2>

  <div class="error">
   Unable to resolve the request &quot;user/REST.POST&quot;.</div></div><!-- content -->

How to merge yii user and restfullyii extensions.


Solution

Your routes are wrong that's why you are not able to resolv any page. check on configuration main.php your restfull yii routes first. then try to get into the app using domain.me/index.php/api/



Answered By - Luis Parada
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing