index.php - includes config.php->
config.php - sets variable, $siteRegistry = Registry::singleton();
- disects url and creates new object depending what url says, so http://www.site.com/login 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:\Projects\application\models\loginModel.php on line 37
This is line 37 -
Code: Select all
$siteRegistry->storeObject("PDOExtender", "DBO");