I'm developing a Joomla component where I have a treeview in the sidebar with the content of a database table. When clicking a node of this sidebar I want to show the children nodes in the main part of the window as a list (as the windows explorer does). For what I have been reading the best way to do this is an ajax request like explained here.
I link to the url in each node: href="index.php?option=com_nautilus&task=datalist&format=raw"
In controller.php I add:
Blockquote
public function datalist()
{
$this->input->set('view', 'Datalist');
parent::display();
}
I create /views/datalist with the file view.raw.php
Blockquote
<?php
defined('_JEXEC') or die;
jimport('joomla.application.component.view');
class SimilarViewDatalist extends JViewLegacy
{
function display($tpl = null)
{
parent::display($tpl);
}
}
and /views/datalist/tmpl with the file default.php
Blockquote
<?php
echo "Hello World from /views/datalist/tmpl/default.php";
But I get:
An error has occurred. 500 View class not found [class, file]: nautilusViewDatalist, C:\xampp\apps\joomla\htdocs\administrator\components\com_nautilus\views\dataList\view.raw.php