Problem with require( );
-
I edited the code inside: namaste-lms/controllers/shortcodes.php
It now displays lesson requirements for non-completed lessons inside a course page. It works great; however when I try to save the changes in a new php file and use the command require() I am having some problems.
I am trying to save the changes in a separate php file (kevin-changes.php) which is being saved to:
(NAMASTE_PATH. “/views/kevin-changes.php”)When I call require(NAMASTE_PATH.”/views/kevin-changes.php”) from inside “namaste-lms/controllers/shortcodes.php”
The code executes like it should; however, there is code being displayed above the text on the course page. Does anyone know what causes this to occur? I am not sure if nested require() commands are causing the extraneous code to be displayed on the course page or what exactly.
The topic ‘Problem with require( );’ is closed to new replies.