Jump to content

Why the Comments module does not work?


Pedro
 Share

Recommended Posts

Hi,
 
Today I started studying ProcessWork.
 
In my early testing, I installed the comments module.
 
First, I created a new template and added the comment field in the template.
 
Then added the following code to my template, and all was well:
 
<?php 

/**
 * Comentarios template
 *
 */

include("./head.inc"); 

echo $page->comments->render();
echo $page->comments->renderForm();

include("./foot.inc")

But, when viewing the page, an error is shown.

http://awesomescreenshot.com/0dfszkgaf

Fatal error: Call to a member function render() on a non-object in /opt/lampp/htdocs/pwpedro/site/templates/comentarios.php on line 11

This error message was shown because site is in debug mode ($config->debug = true; in /site/config.php). Error has been logged.

What did I do wrong?
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...