The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript [Solved] Using registry.php to store objects

  • This topic is empty.
Viewing 1 post (of 1 total)
  • Author
  • #32563

    My website at the moment runs like this,
    index.php – includes config.php->
    config.php – sets variable, $siteRegistry = Registry::singleton();
    – disects url and creates new object depending what url says, so creates new login object.
    loginObject – created inside config.php
    – creates new loginModel
    loginModel – Needs to access $siteRegistry but shows following error,

    Notice: Undefined variable: siteRegistry in F:ProjectsapplicationmodelsloginModel.php on line 37

    This is line 37 –

    $siteRegistry->storeObject("PDOExtender", "DBO");

    I believe the problem is that it can’t find the $siteRegistry variable from config.php, does anyone know how to fix this?

Viewing 1 post (of 1 total)
  • The forum ‘JavaScript’ is closed to new topics and replies.