cakephp logo

Displaying your cakephp 1.2 version

The CakePHP dev's have made it super simple to display your cakephp version, I have only just stumbled across it when looking for something else in the API. Like me you might not have spotted it, its not an essential bit of code but a nice to have for those administering many sites on various servers and much better than finding the version text file on each install.

The codes pretty simple, I display the version number in the system setup part of the sites admin dashboard along with other framework related settings. Here's the code snip...

Show Plain Text
PHP code
  1. <?php
  2.     echo '<span class="notice success">';
  3.     __('CakePHP version: '.Configure::version());
  4.     echo '</span>';
  5. ?>
  6.  
Filed under: Cakephp  

0 Responses to “Displaying your cakephp 1.2 version”

Sorry, comments have been closed for this post.