⚠ In case you've missed it, we have migrated to our new website, with a brand new forum. For more details about the migration you can read our blog post for website migration. This is an archived forum. ⚠

  •     

profile picture

Programmatically Knowing the Version of the Grocery CRUD Enterprise (CodeIgniter Installation without Composer)



larasmith
  • profile picture
  • Member

Posted 05 June 2017 - 01:20 AM

Is there a method to know what is the current version of the GroceryCRUD enterprise I am using?
For example in Codeigniter the command is: CI_VERSION, in PHP is: phpversion() and in MySQLi Version is: mysqli_get_server_info().
It would be convenient if there is so I can easily determine what current version I have in my currently developing systems.

web-johnny
  • profile picture
  • Administrator
  • 1,166 posts

Posted 05 June 2017 - 20:03 PM

Hello @larasmith,

 

You can easily do it with the below command:

echo GroceryCrud::VERSION;

larasmith
  • profile picture
  • Member

Posted 06 June 2017 - 00:13 AM

 

Hello @larasmith,

 

You can easily do it with the below command:

echo GroceryCrud::VERSION;

 

Thank you for this Sir Johnny! I hope others find this query helpful too!  :)


Remco
  • profile picture
  • Member

Posted 20 September 2018 - 16:18 PM

Hi,

 

Where can I put this code?

 

tnx in advance


larasmith
  • profile picture
  • Member

Posted 20 September 2018 - 23:23 PM

Hi,

 

Where can I put this code?

 

tnx in advance

 

You can place it in your controller  :)  inside any function that works  :)


w.jonker
  • profile picture
  • Member

Posted 11 October 2018 - 10:31 AM

Larasmith. I'am using Code Igniter. When in put this code in a controller, I get an error. Anny suggestion? The library loaded, the CRUD are working.


larasmith
  • profile picture
  • Member

Posted 12 October 2018 - 00:06 AM

Larasmith. I'am using Code Igniter. When in put this code in a controller, I get an error. Anny suggestion? The library loaded, the CRUD are working.

 

what version are you currently using?


w.jonker
  • profile picture
  • Member

Posted 12 October 2018 - 06:38 AM

what version are you currently using?

 I'am using Grocery CRUD enterprise version 2.6.4


larasmith
  • profile picture
  • Member

Posted 15 October 2018 - 02:14 AM

 I'am using Grocery CRUD enterprise version 2.6.4

 

I recently upgraded to 2.6.5 it works too. How do you do it in your code?