It is generally recommended to explicitly declare the visibility for methods.
Adding explicit visibility (private, protected, or public) is generally
recommend to communicate to other developers how, and from where this method
is intended to be used.
It is generally recommended to explicitly declare the visibility for methods.
Adding explicit visibility (private, protected, or public) is generally
recommend to communicate to other developers how, and from where this method
is intended to be used.
It is generally recommended to explicitly declare the visibility for methods.
Adding explicit visibility (private, protected, or public) is generally
recommend to communicate to other developers how, and from where this method
is intended to be used.
Loading history...
31
{
32
if(!$this->is_admin)
33
{
34
$this->body = '
35
<div class="row">
36
<div class="col-lg-12">
37
<h1 class="page-header">
38
You must
39
<a href="'.$this->profilesUrl.'/login.php?return='.$this->currentUrl().'">log in
It seems like you call parent on a different method (printPage() instead of print_page()). Are you sure this is correct? If so, you might want to change this to $this->printPage().
This check looks for a call to a parent method whose name is different than
the method from which it is called.
It is not recommended to use PHP's closing tag ?> in files other than templates.
Using a closing tag in PHP files that only contain PHP code is not recommended
as you might accidentally add whitespace after the closing tag which would then
be output by PHP. This can cause severe problems, for example headers cannot be
sent anymore.
A simple precaution is to leave off the closing tag as it is not required, and
it also has no negative effects whatsoever.
Adding explicit visibility (
private,protected, orpublic) is generally recommend to communicate to other developers how, and from where this method is intended to be used.