Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • How to get the version numbers for Cakephp ?

    • 0
    • 0
    • 0
    • 0
    • 1
    • 0
    • 0
    • 0
    • 5.31k
    Comment on it

    I am writing this blog for beginners who are learning Cakephp. When you learn Cakephp then first thing that reminds is that which version are you installing Cakephp. To know the version of Cakephp let me tell you that there are two ways for getting the cakephp versions. One of the simplest way to find current version is to type the following lines of code in the controller.

    echo Configure::version();

    Second way of knowing the current version number of Cakephp 2.* can be found in /path/to/cake/lib/Cake/VERSION.txt. This file contains a commented block containing the file description (stating that it has been there since Cake 0.2.9), followed by the actual version number.

    Below are the contents of the 2.7.11 VERSION.txt:

    ////////////////////////////////////////////////////////////////////////////////////////////////////
    // +--------------------------------------------------------------------------------------------+ //
    // CakePHP Version
    //
    // Holds a static string representing the current version of CakePHP
    //
    // CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
    // Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
    //
    // Licensed under The MIT License
    // Redistributions of files must retain the above copyright notice.
    //
    // @copyright     Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
    // @link          http://cakephp.org
    // @package       Cake
    // @since         CakePHP(tm) v 0.2.9
    // @license       http://www.opensource.org/licenses/mit-license.php MIT License
    // +--------------------------------------------------------------------------------------------+ //
    ////////////////////////////////////////////////////////////////////////////////////////////////////
    2.7.11

     

 1 Comment(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: