Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

configure not set in model construct

#163

seems like Configure::read() has nothing in the model __construct() method

Reported by dogmatic69 · March 6th, 2010 @ 01:42 PM

State: resolved
Milestone: 0.8 alpha
Assigned to: dogmatic69 dogmatic69

Activity

  1. dogmatic69
  2. dogmatic69
    dogmatic69
    • Tag changed from configure, core to bug, configure, core
    • Milestone set to Feature Requests

    March 12th, 2010 @ 08:16 PM

  3. dogmatic69
    dogmatic69
    • Milestone changed from Feature Requests to 0.8 alpha

    March 31st, 2010 @ 05:10 AM

  4. dakota
    dakota

    I use Configure::read() in the __construct() method in a couple of my projects and I've never had a issue with it. Are you trying to read the configure items stored in the db? That might be the problem.

    April 18th, 2010 @ 08:12 AM

  5. dogmatic69
    dogmatic69

    ye i think it is the stuff from the db that is not there. i think we should find where the earliest place to load the config is, and move it there.

    April 19th, 2010 @ 07:07 AM

  6. dakota
    dakota

    I can't replicate this issue.

    pr(Configure::read('CORE')); in AppModel::__construct() returns the expected results.

    April 20th, 2010 @ 11:26 AM

  7. dogmatic69
    dogmatic69
    • State changed from bug to hold

    April 22nd, 2010 @ 01:00 AM

  8. dogmatic69
    dogmatic69
    • State changed from hold to resolved
    • Milestone order changed from 0 to 0

    September 8th, 2010 @ 01:43 AM

  9. dogmatic69
    dogmatic69
    • State changed from resolved to hold
    • Assigned user set to dogmatic69

    September 8th, 2010 @ 01:46 AM

  10. dogmatic69
    dogmatic69
    • State changed from hold to resolved

    September 8th, 2010 @ 02:14 AM

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.