Jump to content
Stef's Coding Community

jlamorey

New Members
  • Content Count

    4
  • Joined

  • Last visited

Community Reputation

0 Neutral

About jlamorey

  • Rank
    New member
  1. here is the m_templates - and thanks for the speedy reply! <?php /* Template Class Handles all templating tasks - displaying templates, alerts & errors */ class Template { private $data; private $alertTypes; /* Construtor */ function __construct() {} /* Functions */ function load($url) { include($url); } function redirect($url) { header("Location: $url"); } /* Get / Set Data */ function setData($name, $value) { $this->data[$name] = htmlentities($value, ENT_QUOTES); } function getData($name) { if (isset($this->data[$name])) { return $this->data[$name]; } el
  2. Hi There, I'm following the oop cms tutorial and am trying to get the login/logout working before I go any further. The error I get is 'Fatal error: Call to undefined function getAlerts() in /Applications/MAMP/htdocs/login/views/v_login.php on line 16' Line 16 of v_login is: <?php $alerts = $this->getAlerts(); if ($alerts != '') { echo '<ul class="alerts">' . $alerts . '</ul>'; } ?> In the m_templates file the getAlerts function had alerts as alert, so I changed that and the error msg in netbeans went away, but my browser is still giving me
×
×
  • Create New...