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 7602035
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T23:18:38+00:00 2026-05-30T23:18:38+00:00

I want to create a custom page in opencart. I know I can put

  • 0

I want to create a custom page in opencart.

I know I can put a custom page in the information section using the admin area however what I would like is a controller which points to a few other pages.

I dont fully understand how to do this.

In codeigniter you would create a controller and a view and if needed setup some rules in the routes file but I cannot see anything like this.

Would somebody mind explaining or pointing me to some instructions on how to do this please.

Thank you

  • 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-05-30T23:18:39+00:00Added an answer on May 30, 2026 at 11:18 pm

    It’s pretty simple to do to be honest. You need to create a controller for your file, naming based on the folder and filename. For instance common/home.php has

    Class ControllerCommonHome extends Controller
    

    This is accessed using index.php?route=common/home and accesses the index() method. If you want to call another method, for instance foo, you would need to define the method as

    public function foo() {
        // Code here
    }
    

    and would call it using index.php?route=common/home/foo

    As for rendering the view, that’s a bit trickier. Basically you need to add all of this to the end of your controller method

        if (file_exists(DIR_TEMPLATE . $this->config->get('config_template') . '/template/common/new_template_file.tpl')) {
            $this->template = $this->config->get('config_template') . '/template/common/new_template_file.tpl';
        } else {
            $this->template = 'default/template/common/new_template_file.tpl';
        }
    
        $this->children = array(
            'common/column_left',
            'common/column_right',
            'common/content_top',
            'common/content_bottom',
            'common/footer',
            'common/header'
        );
    
        $this->response->setOutput($this->render());
    

    Which will render /catalog/view/theme/your-theme-name/template/common/new_template_file.tpl
    If that file doesn’t exist, it will attempt to use the same path in the default theme folder

    I’d recommend you take a look at a few controllers and templates to get your head around where everything comes from properly, but that’s the basic gist of how it works

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

Sidebar

Related Questions

I want to create a custom ./config/unavailable.php page using the layouts and styling used
i want to create my own custom admin-url in wordpress... how can i do?
I want to know if i can create a custom google maps application,on which
I want to create custom page for admin panel without model. For first i
I want to create a custom navigation bar to put in my header.phtml file.
i want to create the custom menu control in UIWebView, by using - (void)
I want to create a custom page for my WordPress blog that will execute
impress.js is a new web presentation written using Javascript. I want to create custom
How can I put custom links outside the web links section in a salesforce
How to create custom login and register page in wordpress? I want to show

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.