#5645: $useDbConfig does not work when using deferent database in one action
------------------------+---------------------------------------------------
Reporter: niwazoh | Owner:
Type: Bug | Status: reopened
Priority: Medium | Milestone: 1.2.x.x
Component: Model | Version: RC3
Severity: Normal | Resolution:
Keywords: | Php_version: n/a
Cake_version: |
------------------------+---------------------------------------------------
Comment (by rafaelbandeira3):
Actuall, what gwoo's saying is that your Option model might not be an
instance of the class Option. As Cake has the Dynamic Model functionality,
if it can't find your model's file it will load an instance of AppModel
that uses the proper table, so it will fetch right datasets but won't have
any peculiar configuration if not the ones stablished on AppModel.
You can check if it is happening by:
- using
{{{
debug($this->Options);
}}}
and checking the dump on the browser that will start either with "Option
Object" or "AppModel Object" - showing to what class the instance belongs
to.
- Checking if your class definition is on {APP}/models/option.php where
{APP} is the path to your application.
--
Ticket URL: <https://trac.cakephp.org/ticket/5645#comment:3>
CakePHP : The Rapid Development Framework for PHP <https://trac.cakephp.org/>
Cake is a rapid development framework for PHP which uses commonly known design
patterns like ActiveRecord, Association Data Mapping, Front Controller and MVC.
Our primary goal is to provide a structured framework that enables PHP users at
all levels to rapidly develop robust web applications, without any loss to
flexibility.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"tickets 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/tickets-cakephp?hl=en
-~----------~----~----~----~------~----~------~--~---