Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8393569
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T19:49:30+00:00 2026-06-09T19:49:30+00:00

I created a site with CakePHP responsible for displaying my CV. I would like

  • 0

I created a site with CakePHP responsible for displaying my CV. I would like to add a new feature relying on that if i still work at some company it should display text: “until now”, if dont it should display a proper date. The problem is that when I adding a new column to my database named isActive and I set up value 1 to one of the entries (other entries have value 0) page displays value 0 for all entries. This problem occurs on production server. On my development server everything is ok.

View:

         <?php 
          if ($experience['Experience']['isActive'] == 0  ) {
            echo $this->Time->format('Y.m', $experience['Experience']['dateEnd']);
            /*tmp*/ echo $experience['Experience']['isActive'];
          } else if($experience['Experience']['isActive'] == 1){
            echo 'until now';
          }  
        ?>

What may be a problem?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T19:49:32+00:00Added an answer on June 9, 2026 at 7:49 pm

    CakePHP caches the table structures. Delete the caches all will be good in the world again.

    If you make a change to your database schema when the debug level is 0, these model caches won’t be refreshed; if you get errors or unexpected behavior after making a database change, a likely fix is:

    rm -f app/tmp/cache/models/*
    

    As discussed here.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have some code that creates a new site in SharePoint. Upon browsing to
I've created a site recently using team sites and some sub sites that inherit
I want to create a site in PHP with cakephp that users can insert
i created a site on my iis7 it's like http://localhost:88/my i also can access
I've created a site with CSS that requires the :focus pseudo class. I change
This site is built using CakePHP 1.2* I have an element that needs to
I'm redesigning site that use CakePHP, and till now everything goes well because I
I'm currently trying to add an admin mode to my cakephp site. I followed
One of the things I like with cakePhp, is that we can easily have
I have created a site using asp.net mvc3 and I have some action in

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.