2

I not 100% sure why this is happening, however, the issue I am having is that I have a very simple date input which works perfectly fine on my home server (generates a dropdown list of Years, Months, Days). When I upload it to a remote server, an input field appears instead of a dropdown.

On the remote server I have tried both DATE and DATETIME fields in the database both producing the same results.

Here is the basic code:

echo $this->Form->input('event_date');

The version of cake is 1.3 (if that makes any difference).

1 Answer 1

4

Just remove all the files in your app/tmp directory.

Cakephp will take the structure of tables to the cache. Whenever you are making changes to database table structure, you have to clear the cache.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.