How to redirect to a backend component ?

For Joomla! 2.5 Coding related discussions, please use: http://groups.google.com/group/joomla-dev-general
Note: All 1.6, 1.7 and 3.5 releases have reached end of life and should be updated to 3.x.

Moderator: ooffick

Forum rules
Please use the mailing list here: http://groups.google.com/group/joomla-dev-general rather than this forum.
Locked
paulnecsoiu
Joomla! Apprentice
Joomla! Apprentice
Posts: 30
Joined: Sat Jul 24, 2010 11:18 am

How to redirect to a backend component ?

Post by paulnecsoiu » Sat Mar 31, 2012 5:31 pm

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: Select all

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.

User avatar
dam-man
Joomla! Exemplar
Joomla! Exemplar
Posts: 7961
Joined: Fri Sep 09, 2005 2:13 pm
Location: The Netherlands
Contact:

Re: How to redirect to a backend component ?

Post by dam-man » Fri Apr 06, 2012 9:35 am

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

paulnecsoiu
Joomla! Apprentice
Joomla! Apprentice
Posts: 30
Joined: Sat Jul 24, 2010 11:18 am

Re: How to redirect to a backend component ?

Post by paulnecsoiu » Sat Apr 07, 2012 1:30 pm

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: Select all

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.


Locked

Return to “Joomla! 2.5 Coding”