PHP Classes

Not working, because ...

Recommend this page to a friend!

      Auto Version  >  All threads  >  Not working, because ...  >  (Un) Subscribe thread alerts  
Subject:Not working, because ...
Summary:little change to work
Messages:2
Author:Superluk
Date:2018-01-29 19:18:19
 

  1. Not working, because ...   Reply   Report abuse  
Picture of Superluk Superluk - 2018-01-29 19:18:19
It is not working, because in the example there is the "echo" missing.
You have to "echo" the class.

<script type="text/javascript" src="<?php echo AutoVersion::version('script.js') ?>"></script>

the same in css.

regards

  2. Re: Not working, because ...   Reply   Report abuse  
Picture of Jeff Moser Jeff Moser - 2018-01-30 00:47:06 - In reply to message 1 from Superluk
Thanks for the feedback. I have corrected the sample code to include the 'echo' statement.