S
S
Sergey2014-06-24 11:01:12
MySQL
Sergey, 2014-06-24 11:01:12

Yii, built-in tools or crutches?

There are two sites, Joomla and Yii. It is necessary to carry out authorization on Yii using the Joomla user base. How to do it better (and why):
1. Send a login-password from the Yii controller to a script located on the Joomla site (for example, file_get_contents). And get results.
2. Add Joomla database to Yii (via config) and work through the model.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Y
Yuri Morozov, 2014-06-24
@metamorph

If you have access to the database, you can, of course, use a simplified solution with authorization through a common table (in Yii, it is enough to make a suitable identity for this), but pay attention to the following points:
- what will happen if the second site moves to a separate host
- what will happen , if the user wants to change the password or personal data
- most likely, you will get code duplication in terms of password hashing
- ...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question