J3.x talk:Creating an Authentication Plugin for Joomla
From Joomla! Documentation
(Apologies in advance for any misunderstandings, I've only begun learning Joomla and Wiki editing today)
I've noticed a contradiction between two code snippets, probably caused when this article was updated from 2.5. The first snippet contains the line $query = $this->db->getQuery(true), accessing the db property which the text above says is instantiated automatically by the constructor. However, the snippet below adds the line $db = JFactory::getDbo(); above this line. Presumably this is from a previous version of Joomla, and so doesn't belong here. Could someone who has more than 5 hours experience with Joomla confirm this?
Note that the SQL query build method chain also mentions a $db object, which is never created.
Thanks, Sam - Samhatfield (talk) 09:40, 17 December 2014 (CST)
- Thanks Sam, this page was created from a J2.5 tutorial. I'm adding Wilsonge in this reply since he brought over the article from 2.5. He should get a notice. Thanks Tom Hutchison (talk) 08:32, 19 December 2014 (CST)
- thanks for reporting this Sam. All fixed! Cheers for reporting it!