Wiki "Developing a Model-View-Controller Component" errors

Joomla! Documentation Workgroup

Moderator: Documentation

Locked
Nex_otaku
Joomla! Fledgling
Joomla! Fledgling
Posts: 3
Joined: Wed May 26, 2010 7:02 am
Location: Russia
Contact:

Wiki "Developing a Model-View-Controller Component" errors

Post by Nex_otaku » Mon Sep 27, 2010 10:08 pm

This wiki article - "Developing a Model-View-Controller Component", IMHO, contains errors.

1. at page http://docs.joomla.org/Developing_a_Mod ... _Framework

Code: Select all

    function getData()
should be

Code: Select all

    function &getData()
(in two paces on same page)

2. at page http://docs.joomla.org/Developing_a_Mod ... _Interface

Code: Select all

        $model = $this->getModel('[<componentname> | users | books | relation ]');
should be

Code: Select all

        $model =& $this->getModel('[<componentname> | users | books | relation ]');
There must be reference instead of copying, right? Please confirm.

User avatar
Chris Davenport
Joomla! Ace
Joomla! Ace
Posts: 1370
Joined: Thu Aug 18, 2005 8:57 am
Location: Shrewsbury, Shropshire, United Kingdom

Re: Wiki "Developing a Model-View-Controller Component" erro

Post by Chris Davenport » Sat Oct 23, 2010 8:17 pm

If you're using PHP 5 then the ampersands are not required.

Chris.
Chris Davenport

Davenport Technology Services http://www.davenporttechnology.com/
Lion Coppice http://www.lioncoppice.org/


Locked

Return to “docs.joomla.org - Feedback/Information”