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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T09:38:44+00:00 2026-06-14T09:38:44+00:00

I created the controller ./mysite/code/FileManager.php with the following code… class FileManager_Controller extends Controller {

  • 0

I created the controller ./mysite/code/FileManager.php with the following code…

class FileManager_Controller extends Controller
{
    public function upload()
    {
        echo 'It works!!';
    }
}

This works fine when I type http://example.com/filemanager/upload.

And I created the template file themes/simple/templates/FileManager.ss. I want to write the HTML for upload here and it should reflect when I type http://example.com/filemanager/upload. How to do this? 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-06-14T09:38:46+00:00Added an answer on June 14, 2026 at 9:38 am

    Because you’re using a straight controller to handle the request, the system doesn’t know what you want to render or how. When using the CMS and rendering a Page this is usually taken care of for you.

    So you have to tell it what to render and how. In it’s simplest form this would look something like:

    class FileManager_Controller extends Controller
    {
        public function upload()
        {
            return $this->renderWith('FileManager');
        }
    }
    

    That will render your FileManager_Controller class with the FileManager.ss template.

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

Sidebar

Related Questions

<?php class Blog extends CI_Controller { function Blog() { parent::CI_Controller(); } } I'm trying
I am new to iphone development.I have created a UIview controller class and added
I am having difficulty with code igniter routing. http://www.mysite.com goes to the right controller
I created a new site with the following code rails new new_site and I
Hi all I have created the following login controller for my site and it
I have created Controller Attribute and would like to read SessionId but get error
I have tab controller created through storyboards with a custom implementation (simple buttons and
I have a Tab Bar Controller created in Interface Builder Within the Tab Bar
I have created a MY_Controller and I'm linking to it through my main controller...
So I've created a view controller that creates a custom view that, if it

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.