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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T12:42:57+00:00 2026-05-22T12:42:57+00:00

I have problem with Joomla layouts in my component..There must be something bad with

  • 0

I have problem with Joomla layouts in my component..There must be something bad with file/class name convention..
I was trying to ask on Joomla developer forum, but noone answered..
So I am getting this error.. 500 – View not found [name, type, prefix]: PostToBank,,postToBankView
The view is in views/postTobank/view.php and name is postToBankViewPostToBank
In my controllers/controller.php file I have class named PaymentController which contains this part of code.

$view = $this->getView('PostToBank','','postToBankView');
        $this->getModel("Payment")->savePaymentData($data);
        foreach ($data as $key => $value) {
            $view->assignRef($key, $value);
        }
        $view->setLayout('postTobank');
        $view->display();    

my view.php file looks like this

class postToBankViewPostToBank extends JView{
function display($tpl=null){


    //display set template

    parent::display($tpl);
}

}
on attached image is full folder structure of my component..
Please whats wrong with this?Thanks

Folder structure of my compononent

  • 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-22T12:42:58+00:00Added an answer on May 22, 2026 at 12:42 pm

    Joomla uses a naming conventions and you are not following them. Refer to http://docs.joomla.org/File_Structure_and_Naming_Conventions

    Also, your views should be view.html.php and then you do not need to call setView.
    FYI: this is where the error is coming from. Refer to this: http://docs.joomla.org/API16:JController/getView, even though it is 1.6 doc it is same in 1.5

    Look though this tutorial and adopt regular conventions: http://docs.joomla.org/Developing_a_Model-View-Controller_Component_-_Part_1

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

Sidebar

Related Questions

i have a big Joomla 1.5 Problem. I'll create my own Gallery Component/PlugIn and
I dont know much about joomla but I have a problem. I started reading
I have a big problem in my website (based on Joomla and a free
I have strange problem. I have class which behaves similar dropdown list. package test.view;
I have a joomla website with the virtuemart module. What I have are images
I have joomla installed on my brothers server using softaculous in cpanel. But my
I have a Joomla plugin (not important in this context), which is designed to
I have Joomla 1.5.9 running with php 5.2.8, mySQL 5.1.31 on IIS7 on a
I have problem in Listview onListItemClick() method. I am not getting the position of
I have problem with one of my validation regex when using nonstandard utf-8 character.

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.