creat a function that checks parameters for a special keyword

http://example.com/keyword

That 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 the browser.

I will write something quick and reply back.

On 8/9/06, Martin Wood <[EMAIL PROTECTED]> wrote:

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
> the customer see what cake version he is using!
>
> @martin wood
> ok i can implement it. but i have to implement it everytime a new cake
> version is coming out

not if you implement it in /app

if you upgrade the cake install it wont blow away your code and when you do a
new project just copy it into the new /app directory :)

of course if they change the format of the VERSION.txt then you might have to
update the 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 group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cake-php
-~----------~----~----~----~------~----~------~--~---

Reply via email to