Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9155331
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T12:34:27+00:00 2026-06-17T12:34:27+00:00

As many of you know the controller in Joomla 2.5 changed from // Create

  • 0

As many of you know the controller in Joomla 2.5 changed from

// Create the controller
$classname  = 'mycomponentController'.$controller;
$controller = new $classname( );

// Perform the Request task
$controller->execute( JRequest::getVar('task'));

// Redirect if set by the controller
$controller->redirect();

to something along the lines of

// Get an instance of the controller prefixed by the component
$controller = JController::getInstance('mycomponent');

// Perform the Request task
$controller->execute(JRequest::getCmd('task'));

// Redirect if set by the controller
$controller->redirect();

Now in Joomla 1.5 as well as by using the table you could run a task by running the link

index.php?option=com_mycomponent&controller=specificcontroller&task=randomtask

However this style of link doesn’t work with the new controller – does anyone know how to format this link in Joomla 2.5 if you’re using the new controller?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T12:34:28+00:00Added an answer on June 17, 2026 at 12:34 pm

    You can combine task and controller so that it’ll call the task of the specified controller.These will be .(dot) seperated. try this-

    index.php?index.php?option=com_mycomponent&view=viewname&task=specificcontroller.randomtask
    

    Read More – http://docs.joomla.org/JController_and_its_subclass_usage_overview

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I dont know how many values will be present from Cell A1 to A65555.
I'm wondering when you know that you need to create a controller in a
I'm curious to know how to create the sidebar used in twitter and many
In my create method in the Videos controller, this line works: @video = Video.new(params[:video])
I know that Namespaces in PHP are relatively new and so there are many
I know many people ask this but all the answers are specific apps so
I use VIM editor for PHP, i know many people will point to PDT
I know that many threads has been created here & on the internet about
As many of you know, Russia has eleven time zones, and has (or will)
I need to know how many instances of my process are running on a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.