Re: get CakePHP version

2006-08-09 Thread John Zimmerman [gmail]
Doing the following was easier than creating a new function and hooking into the constructor or before filter.Create a new static page in called... /app/views/pages/cakeversion.thtmlIn that page put the following lines of code...$file = file_get_contents('../../VERSION.txt');pr($file); ?>Now access

Re: get CakePHP version

2006-08-09 Thread John Zimmerman [gmail]
creat a function that checks parameters for a special keyword http://example.com/keywordThat function would be in app_controller.php and in your constructor you just check for the keyword and if it is there call your function. Your function will then output the contents of the version.txt file to t

Re: get CakePHP version

2006-08-09 Thread Martin Wood
cwsTrummer wrote: > i need the version number only for customer support. when you have > installed your app on many servers and you make new versions some of > the customers use still the old versions. when you know that the > customer uses an old version of cakephp and there was a bug you can ask

Re: get CakePHP version

2006-08-09 Thread cwsTrummer
i need the version number only for customer support. when you have installed your app on many servers and you make new versions some of the customers use still the old versions. when you know that the customer uses an old version of cakephp and there was a bug you can ask the customer see what cak

Re: get CakePHP version

2006-08-08 Thread nate
> Hardly intensive though. Except, of course, when you're trying to serve thousands of requests a second from your spiffy new Ajax app, and your server is choking because PhpNut and I unwisely decided to add this along with two dozen other niggling little features that would help out a small numb

Re: get CakePHP version

2006-08-08 Thread Felix Geisendoerfer
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/0

Re: get CakePHP version

2006-08-08 Thread Chris Hartjes
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 whil

Re: get CakePHP version

2006-08-08 Thread Chris Lamb
On Tue, 08 Aug 2006 04:35:56 -0400 Felix Geisendörfer <[EMAIL PROTECTED]> wrote: > parsing a text file fon every request just to get the version number > seems a bit circuitous to me as well. Hardly intensive though. I mean, you are opening, reading, parsing, lexing and ulitimately executing te

Re: get CakePHP version

2006-08-08 Thread Felix Geisendörfer
I don't know. As long as the format of VERSION.txt stays the same it won't be that big of a problem. But parsing a text file fon every request just to get the version number seems a bit circuitous to me as well. -- http://www.thinkingphp.org http://www.fg-webdesign.de

Re: get CakePHP version

2006-08-08 Thread Martin Wood
cwsTrummer wrote: > hm why they don't implement this? it's one line of code. > conversely, if you need it just implement it for yourself. its one line of code :) martin. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

Re: get CakePHP version

2006-08-08 Thread cwsTrummer
hm why they don't implement this? it's one line of code. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this grou

Re: get CakePHP version

2006-08-08 Thread Felix Geisendörfer
I'd like to have this functionality as well, but I don't think it's going to happen: https://trac.cakephp.org/ticket/1093 https://trac.cakephp.org/ticket/1112 Best Regards, Felix Geisendörfer -- http://www.thinkingphp.org http://www.fg-webdesign.de cwsTrummer w

get CakePHP version

2006-08-08 Thread cwsTrummer
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. --~--~-~--~~~---~--~~