What is a view?

A "view" in Joomla is the set of code that creates the actual HTML for the component that is returned to the user. Views are a part of the MVC, and you can read much more thorough documentation about the MVC here.

How to setup a view

Now that we've setup our controller, we are going to setup our default view. The default view is a view named after the component. So, in our case, we are going to show you how to create a view called helloworld.

Below is a list of files you need to create in order to create the helloworld view.

/components/com_helloworld/views/helloworld/tmpl/default.php

How does all this work?

Using the sample above, the component will display "Hello World" to the screen. But how did it do that?!

Joomla needs to determine which component, view, and task to execute. It does so by reading the values from the url. As you can see below, we've highlighed where exactly the component, view, and task can be set:

A 404 means that Joomla is looking in the place you told it to, but not finding the file. You will want to carefully go over the information you entered when following the instructions to ensure everything is created and named correctly so that Joomla can find it.

I follow the same steps but as shown on slide number 25 when I go to admin end it does not shown the hellword under menu item type ? Also when access this on frontend using this url "http://localhost/joomla/index.php/?option=com_helloworld&amp;view=helloworld" it show error "500 Layout default not found. " . Please help

Sorry for the problems that you're having with the Joomla tutorial. We're not sure what you mean by "slide number 25" - if you could provide a link to that, then we can look to see what you're talking about. Also, our development and support is for our hosted environment. If you're running this under WAMP or XAMP, then our assistance will be limited as we do not typically provide support for programs running in those environments. You may need to go back and review your steps carefully - check for differences in Joomla version as these articles were written with an older version of Joomla 3.

you certainly might want to ensure you dont have any typos in your url. correct me if im wrong, but the url your case should be more like:http://localhost/joomla/index.php?option=com_helloworld&view=helloworldhope this helps!! though aware of the date its been posted, i just wanted to leave the likely solution, so anyone having similar issue might get around this. cheers

Answer to Rakeshwdc is to check the if the view.html file in the folder /components/com_helloworld/views/helloworld/ indeed has the file extention .php In my case notepad++ faild to save it with the propper extention. After fixing it displayd as expected!

/components/com_helloworld/views/helloworld/

You've built the view using JViewLegacy, which is the old style of Joomla Development. Please update this to show the core Joomla 3.x class JViewHtml. This is illustrated on Joomla's core com_config component.