I have created new php file in component. I want to get connection to Joomla database but connection unknown. Error message is the following:
Fatal error: Class 'JFactory' not found in D:\www\Joomla1.5\components\com_hello\views\hello\tmpl\index.php on line 13
How do I use JFactory::getDBO()
in public ?