Login Authentication Using Xml File

Hello,

I’m a beginner with Yii Framework. I’ve beginnt with a small application and I’ve found that the authentification is a littel complicated with this framework but I’ve tried it and I’ve succeeded to run it with a simple mysql database. My problem now, is that I should authentificate with users (login and password) in a XML file. I found almost no documentation for this task !

Can you please help me ?

I think you’ll want to use SimpleXML.

thanks for your answer. I have already a xml file contains some users and I want to use this xml file as a database to connect with user and password.

please, what should I do with the config in main.php


'db'=>array(

			'connectionString' => 'mysql:host=localhost;dbname=yiitest',

			'emulatePrepare' => true,

			'username' => 'root',

			'password' => '',

			'charset' => 'utf8',

		),

and is there a modification in the UserIdentity class ?

I don’t think you’ll need to touch your config at all. But you will surely need to alter the [font=“Courier New”]UserIdentity[/font] class.