The Joomla! Forum ™



Forum rules


Please use the mailing list here: http://groups.google.com/group/joomla-dev-general rather than this forum.



Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Sat Mar 31, 2012 5:31 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Sat Jul 24, 2010 11:18 am
Posts: 24
Hi guys,

I need to redirect from a site to a backend component from another site like below. The problem is that after the execution of the line I'am redirected to the backend where first I must to login and then the execution go to the component.php file.

The question is how can I be redirected directly to the entry file of the backend component e.g. component.php withowth requiering me to log???

Code:
header("location:http://domain.com/joomla/administrator/index.php/option=com_component)


What I actually want is that after redirection to execute some code from the backend component.

Thanks in advance for any response.


Top
 Profile  
 
PostPosted: Fri Apr 06, 2012 9:35 am 
User avatar
Joomla! Exemplar
Joomla! Exemplar

Joined: Fri Sep 09, 2005 2:13 pm
Posts: 7954
Location: The Netherlands
Are you willing to go to a complete different site? Or is this in your own administrator. If the other site has password protection (and Joomla has) then you need to login always.

_________________
Robert Dam - Joomla Forum Moderator
Dutch Boards | Joomla Coding Boards | English Support Boards


Top
 Profile  
 
PostPosted: Sat Apr 07, 2012 1:30 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Sat Jul 24, 2010 11:18 am
Posts: 24
Tank you very much dam-man,

Indeed I need to redirect to a different site. I am glad that you have confirmed to me that it can not be done withouth login every time because I'm new to joomla coding.

But I find another solution to this. I moved the file that I want to redirect to in the frontend of the component :
Code:
header("location:http://domain.com/joomla/index.php/option=com_component)

where it seems that apparently you don't need to login every time :D

Thank you again for your response.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 



Who is online

Users browsing this forum: No registered users and 14 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group