$useDbConfig not working

2010-03-29 Thread mattmemo
Hello,
I would like to have two different database configurations.  For my
Projects controller, I would like to use $default, and for my
Employees controller, I would like to use $server4.  In my model
Employee.php, I set var $useDbConfig = 'server4';
no matter what I do, I can't get these two to work.  If configured
above, the projects controller connects correctly but the employees
controller gives the error Database table employees for model
Employee was not found.  If I switch $server4 to $default, the
employees controller works but I get the missing table error for the
Projects controller.  For some reason, the $useDbConfig is being
ignored or something.  I am running cakePHP 1.2.6 on ubuntu server
with apache2

Anyone know why this would be happening?

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 cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en

To unsubscribe from this group, send email to 
cake-php+unsubscribegooglegroups.com or reply to this email with the words 
REMOVE ME as the subject.


Re: Don't rewrite an existing directory

2010-03-22 Thread mattmemo
Thank you so much!!!

On Mar 21, 4:31 pm, mattmemo knockdownsh...@gmail.com wrote:
 Hello,
 So here's my problem:
 I have a CakePHP installation in my server root (/www).  What I would
 like is for CakePHP to NOT rewrite URL's for directories/files that
 exist.  For example, I am making a project manager with my main
 CakePHP installation.  In my server root, I have the following:
 app/
 cake/
 projects/ (not a Cake folder)
 vendors/
 .htaccess
 index.php

 I would like to be able to navigate to the projects folder, where I
 have other project folders (some are installations of CakePHP, some
 are just plain HTML sites).  To be more specific, I'd like to be able
 to go tohttp://localhost/and see my CakePHP project manager.  When I
 got tohttp://localhost/projects/project1(or project2, etc.), I would
 like to see that particular project.  Instead, my CakePHP project
 manager is rewritinghttp://localhost/projects/project1and I get the
 Projects Controller not found error.
 Perhaps I made my explanation overly complicated, but I wanted to make
 sure that my problem is understood correctly.
 Is this possible?  Any help is greatly appreciated.

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 cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en

To unsubscribe from this group, send email to 
cake-php+unsubscribegooglegroups.com or reply to this email with the words 
REMOVE ME as the subject.


Don't rewrite an existing directory

2010-03-21 Thread mattmemo
Hello,
So here's my problem:
I have a CakePHP installation in my server root (/www).  What I would
like is for CakePHP to NOT rewrite URL's for directories/files that
exist.  For example, I am making a project manager with my main
CakePHP installation.  In my server root, I have the following:
app/
cake/
projects/ (not a Cake folder)
vendors/
.htaccess
index.php

I would like to be able to navigate to the projects folder, where I
have other project folders (some are installations of CakePHP, some
are just plain HTML sites).  To be more specific, I'd like to be able
to go to http://localhost/ and see my CakePHP project manager.  When I
got to http://localhost/projects/project1 (or project2, etc.), I would
like to see that particular project.  Instead, my CakePHP project
manager is rewriting http://localhost/projects/project1 and I get the
Projects Controller not found error.
Perhaps I made my explanation overly complicated, but I wanted to make
sure that my problem is understood correctly.
Is this possible?  Any help is greatly appreciated.

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 cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en

To unsubscribe from this group, send email to 
cake-php+unsubscribegooglegroups.com or reply to this email with the words 
REMOVE ME as the subject.