Cannot find Class with PHP Namespace

前端 未结 5 1747
深忆病人
深忆病人 2020-12-09 08:31

I posted some questions previously regarding the use of Namespaces in PHP and from what I got, this example code I have below should be working.

However I am getting

5条回答
  •  遥遥无期
    2020-12-09 09:08

    try

    registry = new Registry;
        }
        function show()
        {
            echo $this->registry;
            echo '
    Registry was ran inside testcontroller.php
    '; } } ?>

    and

    
    

提交回复
热议问题