Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Creating a pager in views/discussions/helper_functions.php
Shmizzle
New
I'm trying to display a pager on the discussions page next to all discussion titles for discussions that have multiple pages. The function I need to call is Pager->ToString(), but whenever I call this function (using $this-> or $Sender->) in my theme's views/discussions/helper_functions.php file, I get error messages from PHP.
When calling $this->Pager->ToString() I get:
Any ideas?
When calling $this->Pager->ToString() I get:
Fatal error: Using $this when not in object context in /views/discussions/helper_functions.php on line 46When calling $Sender->Pager->ToString(), I get:
Fatal error: Call to a member function ToString() on a non-object in /views/discussions/helper_functions.php on line 46I'm able to call the function in views/discussion/index.php file, though.
Any ideas?
0
Comments