root/public/codetodiagram.php
| 87 | 91 | ||
|---|---|---|---|
23 | $strPublicPath =str_replace( "\\" , "/" , str_replace( basename( __FILE__ ) , "" , __FILE__ ) ); | 23 | $strPublicPath =str_replace( "\\" , "/" , str_replace( basename( __FILE__ ) , "" , __FILE__ ) ); |
24 | 24 | ||
25 | #2. Load the components of the code to diagram | 25 | #2. Load the components of the code to diagram |
26 | require_once( $strPublicPath . '../components/_start.php' ); | 26 | require_once( $strPublicPath . "../components/library/_start.php" ); |
27 | require_once( $strPublicPath . "../components/loader/_start.php" ); | ||
28 | Loader::requireOnce( $strPublicPath . '../components/_start.php' ); | ||
29 | // exit(); | ||
30 | // require_once( $strPublicPath . '../components/_start.php' ); | ||
27 | 31 | ||
28 | #3. redefine the error handler function to the code to diagram | 32 | #3. redefine the error handler function to the code to diagram |
29 | 33 | ||
... | ... | ||
43 | $strCallerPath = ( str_replace( basename( $strFile ) , "" , $strFile ) ); | 47 | $strCallerPath = ( str_replace( basename( $strFile ) , "" , $strFile ) ); |
44 | 48 | ||
45 | #5. get the relative path of the code to diagram bootstrap | 49 | #5. get the relative path of the code to diagram bootstrap |
46 | $strPathFile = CorujaStringManipulation::getRelativePath( $strCallerPath , $strPublicPath ); | 50 | $strPathFile = CorujaFileManipulation::getRelativePath( $strCallerPath , $strPublicPath ); |
47 | 51 | ||
48 | #6. add a instance of the code to diagram bootstrap into the load files array for the recursive call | 52 | #6. add a instance of the code to diagram bootstrap into the load files array for the recursive call |
49 | CodeToDiagram::getInstance()->addFile( $strPathFile . basename( __FILE__ ) , basename( __FILE__ ) ); | 53 | CodeToDiagram::getInstance()->addFile( $strPathFile . basename( __FILE__ ) , basename( __FILE__ ) ); |
Download diff