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

Trying some different layouts

The helper class does not produce any output itself, but instead behaves in a way similar to the data models used in our component. Layout files in this module will act the same way as layouts do in component views, containing the actual markup to be output.

The first layout we create will be named _review. This layout file will do one thing output a fully-formatted anchor tag that uses the name of the review it links to as the link text. With this layout in place, we will be able to construct additional layouts without re-coding the anchor tag display logic.

To create this file, create a tmpl folder under the existing /modules/mod_reviews folder, create a new file named _review.php inside the tmpl folder, and then ...

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