> Donna Marie Vincent donnamarievincent at yahoo.com > Tue Jul 28 12:02:09 EDT 2009
> Sometimes it's easier to make the direct calls, sometimes not, depending on what other data you need. > If the table's key consists of more than one field you cannot use JTable. > The table class for that example is probably in administrator/components/com_reviews/tables/reviews.php. Yes, there is a file there, but at this point in the text of the book it is basically empty; Just the defined /die statement. So in this line: $row =& JTable::getInstance('Review', 'Table'); does that refer to the review.php file in the table subdirectory. I thought that might be a possibility, but the capitalization is wrong and I'm on Linux where everything is case sensitive. > I have that book, too, and didn't get it from reading the book. So it's not just me! Thanks, I feel much better now. Do you have any suggestions on what book I should get? > I didn't get it until I had to do it for real. And it's faster to do $row->store than make db update calls. So there is a place for the JTable class. Thanks for the insight. Mark _______________________________________________ New York PHP SIG: Joomla! Mailing List http://lists.nyphp.org/mailman/listinfo/joomla NYPHPCon 2006 Presentations Online http://www.nyphpcon.com Show Your Participation in New York PHP http://www.nyphp.org/show_participation.php