With a database table now in place, we need a friendly interface for adding reviews into the database. To start, let's create a form for entering the review data. Because the form will involve a large amount of HTML output, we will create a view for it. Inside your
/administrator/components/com_restaurants folder, create a new folder called
views. Because we are adding a form for entering single reviews, create a folder inside
single. Finally, create an additional folder in
tmpl. When you are done, the directory structure of
com_restaurants should look like this:
Before displaying the HTML output ...