O'Reilly logo

Learning Joomla! 1.5 Extension Development by Joseph L. LeBlanc

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Displaying a review

If you were to click on any of the links at the moment, you would get a "500" error similar to the one below:

Displaying a review

This is because we have not yet added the single view. By now, you are probably comfortable with creating the directory and file structure for a new view you simply add the name of the view as a folder under views, and then create view.html.php and tmpl/default.php within this folder. Add this code for the view in the view.html.php file:

<?php defined( '_JEXEC' ) or die( 'Restricted access' ); jimport( 'joomla.application.component.view'); JTable::addIncludePath(JPATH_ADMINISTRATOR. DS.'components'.DS.'com_restaurants'.DS.'tables'); ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required