The first (and only) time I needed the CakePHP version so far was when writing my Akismet WebModel since the people at Akismet want you to tell them what technology you use. That means App / Plugin. So for a generic Model I considered CakePHP to be the App and needed it's version number.
On 8/8/06, Chris Hartjes <[EMAIL PROTECTED]> wrote:
I see this question all the time not only here but on the Zend
Framework mailing list as well. I'm curious as to why so many people
want to be able to know what version of Cake that is being used? If
you're writing code that has blocks that will only run when using a
certain version of Cake while the rest will run on a different
version, I would call that bad design.
Not going out of my way to offend anyone, but I'd like to see a
practical example of when the application itself needs to know what
version of Cake it is using.
On 8/8/06, cwsTrummer < [EMAIL PROTECTED]> wrote:
>
> hello
>
> is there a way to print out the current cake version used in the
> webapplication?
> I hadn't find any constant or variable in the cake directory.. one way
> is to read out the VERSION.txt but I think there are better ways to
> implement this.
>
>
> >
>
--
Chris Hartjes
"The greatest inefficiencies come from solving problems you will never have."
-- Rasmus Lerdorf
@TheBallpark - http://www.littlehart.net/attheballpark
@TheKeyboard - http://www.littlehart.net/atthekeyboard
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cake-php
-~----------~----~----~----~------~----~------~--~---
- Re: get CakePHP version Chris Hartjes
- Re: get CakePHP version Felix Geisendoerfer
- Re: get CakePHP version cwsTrummer
- Re: get CakePHP version Martin Wood
- Re: get CakePHP version John Zimmerman [gmail]
- Re: get CakePHP version John Zimmerman [gmail]
- Re: get CakePHP version nate
