Anyone have any input on this?
-----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of JNotti Sent: Monday, April 12, 2010 1:43 PM To: CakePHP Subject: Controller Error, Reserved Name? Running the latest stable version 1.2.6 I am following convention and have a controller called Emails, a model called Email and a DB table called emails. This worked fine in 1.2.5 and then I upgraded... When I go to the add method of the controller: /emails/add I get the below error. Before I refactor my Emails controller, I wanted to check with the community to see if anyone had any input. A refactor for me means 40+ hours of work... ouch! Notice (8): Undefined property: Email::$enabled [CORE\cake\libs \controller\component.php, line 111] Code | Context $controller = EmailsController EmailsController::$name = "Emails" EmailsController::$helpers = array EmailsController::$components = array EmailsController::$here = "/x.DEV.IC/IC/Chomper/emails/add/14" EmailsController::$webroot = "/x.DEV.IC/IC/Chomper/" EmailsController::$action = "add" EmailsController::$uses = false EmailsController::$params = array EmailsController::$data = NULL EmailsController::$paginate = array EmailsController::$viewPath = "emails" EmailsController::$layoutPath = NULL EmailsController::$viewVars = array EmailsController::$pageTitle = false EmailsController::$modelNames = array EmailsController::$base = "/x.DEV.IC/IC/Chomper" EmailsController::$layout = "ajax" EmailsController::$autoRender = true EmailsController::$autoLayout = true EmailsController::$Component = Component object EmailsController::$view = "View" EmailsController::$ext = ".ctp" EmailsController::$output = NULL EmailsController::$plugin = NULL EmailsController::$cacheAction = false EmailsController::$persistModel = false EmailsController::$passedArgs = array EmailsController::$scaffold = false EmailsController::$methods = array EmailsController::$modelClass = "Email" EmailsController::$modelKey = "email" EmailsController::$validationErrors = NULL EmailsController::$_log = NULL EmailsController::$Session = SessionComponent object EmailsController::$Acl = AclComponent object EmailsController::$Auth = AuthComponent object EmailsController::$RequestHandler = RequestHandlerComponent object EmailsController::$Email = Email object $name = "Email" $component = Email Email::$name = "Email" Email::$hasOne = array Email::$hasAndBelongsToMany = array Email::$useDbConfig = "default" Email::$useTable = "emails" Email::$displayField = "id" Email::$id = "14" Email::$data = array Email::$table = "emails" Email::$primaryKey = "id" Email::$_schema = array Email::$validate = array Email::$validationErrors = array Email::$tablePrefix = "" Email::$alias = "Email" Email::$tableToModel = array Email::$logTransactions = false Email::$transactional = false Email::$cacheQueries = false Email::$belongsTo = array Email::$hasMany = array Email::$actsAs = NULL Email::$Behaviors = BehaviorCollection object Email::$whitelist = array Email::$cacheSources = true Email::$findQueryType = NULL Email::$recursive = 1 Email::$order = NULL Email::$__exists = NULL Email::$__associationKeys = array Email::$__associations = array Email::$__backAssociation = array Email::$__insertID = NULL Email::$__numRows = NULL Email::$__affectedRows = NULL Email::$_findMethods = array Email::$_log = NULL Email::$Info = Info object Email::$EmailType = EmailType object Email::$User = User object Email::$EmailsEmailType = AppModel object Email::$UsersEmail = AppModel object foreach ($this->_primary as $name) { $component =& $this->_loaded[$name]; if ($component->enabled === true && method_exists($component, 'startup')) { Component::startup() - CORE\cake\libs\controller\component.php, line 111 Dispatcher::_invoke() - CORE\cake\dispatcher.php, line 210 Dispatcher::dispatch() - CORE\cake\dispatcher.php, line 194 [main] - APP\webroot\index.php, line 88 Notice (8): Undefined property: Email::$enabled [CORE\cake\libs \controller\component.php, line 127] Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en To unsubscribe, reply using "remove me" as the subject. Homepage: http://www.blueclover.com | Blog: http://www.blue-ings.com | Twitter: http://twitter.com/bluecloverusa | Facebook: http://www.facebook.com/blueclover | YouTube: http://www.youtube.com/user/bluecloverstudios | Join Our Mailing List: http://visitor.constantcontact.com/manage/optin?v=001ti8yLLtrqgo7unTQ7RVsh7BIcda1iEtM --------------------------------------------------------------------------------------------------------------------- This email transmission, including any attachments thereto, may contain information that is proprietary and confidential. The information is intended only for the use of the individual(s) or entity to whom this email has been addressed. If you are not the intended recipient, or the person responsible for delivering it to the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of any of the information is strictly prohibited. If you have received this transmission in error, please let us know immediately and delete the email, including any attachments thereto, from your computer. Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
