Testing database connection on the fly

2012-10-29 Thread darkangel
Hi, I'm trying to perform a button in one of my views where a user (an admin) can perform a database connection test on the fly, I have an action where I have the following code and I get the error "*Database connection "Sqlserver" is missing, or could not be created."* * * The thing is that I d

Change database dynamically

2012-10-09 Thread darkangel
What's the most MVC way to switch the database connection for some models depending on a configuration saved in a model in the main database. What I'm doing is like this guide, except for taking the settings from cookies. Thanks for your advices.

Re: Multi-client application

2012-10-09 Thread darkangel
Hey Heidy, did you make it work? I'm facing the same scenario here and I'm trying to connect to a database based on a user belonging to a company. How did you achieve it? I'm using cake 2.2.3 On Monday, May 24, 2010 1:22:55 AM UTC-6, Heidi Grab wrote: > > Hi Zaky, > > I'm sorry, I'm a bit lazy o

Re: How to save and retrieve the status of a dropdown menu between views?

2012-09-04 Thread darkangel
$(this).closest('ul').toggleClass('closed'); > return false; > } > }); > > On Tue, Sep 4, 2012 at 3:11 PM, darkangel > > wrote: > > Hi, I'm almost finishing my first cake app so I'm fixing some UI issues. > > Straight t

How to save and retrieve the status of a dropdown menu between views?

2012-09-04 Thread darkangel
Hi, I'm almost finishing my first cake app so I'm fixing some UI issues. Straight to the point: I have a sidebar menu with a dropdown submenu, the folding state is defined by the css class "closed" so my question is how can I save that status to persist between views? Now when I navigate to ano

Re: Ajax pagination returns the whole page instead of the requested div

2012-08-30 Thread darkangel
Did you fix it? I'm facing the same issue :S On Sunday, July 1, 2012 12:27:27 PM UTC-6, JonStark wrote: > > Thanks for the head up ! > > But still, doesn't solve my problem :( > > Whenever I try to paginate a update just a given div, I get the full > layout in response > > Le dimanche 1 juill

Re: Send XML as parameter on a POST request

2012-06-25 Thread darkangel
Actually, it worked with $data = $this->request->input(); Thanks On Friday, June 22, 2012 7:44:22 PM UTC-6, Justin Edwards wrote: > > > > Or > > $data = $this->request->input('Xml::build', array('return' => 'domdocument')); > > > > -- Our newest site for the community: CakePHP Video Tutoria

Re: Send XML as parameter on a POST request

2012-06-22 Thread darkangel
I already made the POST request but I dont know how to "catch it" and save it to the database. I intend to save an XML content to a TEXT column. Could you guide me please? -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions

User (in DB1) HABTM Groups (in DB2)

2008-01-29 Thread darkangel
Hi, If you're querying a model whose associated models are in another DB, does it mean it's not possible to return results in model 1 only if they have an associated record in model 2? Example: User (in DB1) HABTM Groups (in DB2) [join table is in DB2] I want to select all users who have a rec