Page 1 of 1

integrate login/ registration form into a component

Posted: Sun Jul 15, 2012 6:33 am
by aslampatwary
HI
I have a component "Arrange 2 Drive" for car-share. Currently when a user click on add trip then it goes to add-trip page without check any authentication. But i need to check that the user is already logged-in. If the user is not logged-in then the user have to log-in or register.


when a user wants to add any trip then he have to login. If he has no user-Id then he have to register.

please tell me that which file will have to edit and which block of code will have to insert .

I need your help immediately.

Re: integrate login/ registration form into a component

Posted: Sun Jul 15, 2012 9:00 pm
by fleischwolf
Have at look at the official documentation on Joomla! user object -> http://docs.joomla.org/Accessing_the_cu ... ser_object and the API documentation of the Joomla-Platform -> http://api.joomla.org/.