View Single Post
  #9  
Old 05-04-2016, 10:35 PM
  qualiteam's Avatar 
qualiteam qualiteam is offline
 

X-Guru
  
Join Date: Dec 2010
Posts: 6,373
 

Default Re: Can't get a custom page to load

Can you send me your module? You can use this method to pack it into a single archive file.

As for debugging - you can use this code to log data to a custom log file:
Code:
\XLite\Logger::logCustom('your-log-name', var_export(array('param1'=>$param1, 'param2'=>$param2, ...), true));

Log the result of the getTarget() method in the first line of the handleRequest() method in the var/run/classes/XLite/Controller/AControllerAbstract.php file - this should give you the idea what "targets" are being triggered.

Also, you can add "protected function doNoAction()" method in your controller class (classes/XLite/Module/MyDevID/TestMod/Controller/TestModController.php) and add logging there.

Just remember that "var/run/classes/" contains the actual PHP files that are run when you browse the site, and "classes/" is the directory that stores "original" versions of these files (every time you redeploy the store X-Cart 5 takes these files, "compiles" them and put inside the var/run/classes/ directory).
__________________
Alex Solovev,
Qualiteam

---

User manual Video tutorials X-Cart FAQ

You are welcome to press "Thanks" button
if you find this post useful

Click here to learn how to apply patches

X-Cart Extensions

Last edited by qualiteam : 05-04-2016 at 10:37 PM.
Reply With Quote