Pedro Posted January 15, 2013 Share Posted January 15, 2013 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 11This 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 More sharing options...
apeisa Posted January 15, 2013 Share Posted January 15, 2013 Is your comments field name "comments"? 1 Link to comment Share on other sites More sharing options...
Pedro Posted January 15, 2013 Author Share Posted January 15, 2013 Thanks @apeisa, The form is working. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now