Re: Which MVC is right for our corp?

2008-10-06 Thread Anuj Chauhan
yes , in cake you can connect as many connection you want form database.php
in config folder

when you need to write call slave(write) connection and for reading or
fetching data call another.



Regards,
Anuj Chauhan.

On Tue, Oct 7, 2008 at 10:42 AM, mrconfused [EMAIL PROTECTED] wrote:


 Hello,

 I recently was hired to work at a very large corporation. They are
 moving over from their very bad legacy code over to an MVC framework.
 Due to my past experience in Cake, I've suggested this framework for
 our new deployment of our site.

 Here is one hurdle that we face.
 We have tables in a Master database. This is replicated to slave
 databases...

 One slave database has only read access. The other slave database is
 only for write.

 Is cake flexible in allow only reads to occur from db A and writes
 only to db B ?

 I know that in the model layer, we can specify useDBConfig flag but
 not sure how to work out the above case of it writing to db B and read
 only from db A

 Thanks.
 


--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Transaction in cakephp is just for one table?

2008-09-10 Thread Anuj Chauhan
Hi,

There is also a function rollback($model). make check with your all queries
if any of them get fails then rollback() it and begin transaction again. you
can also modify rollback() function accordingly if it needs always.

Thanks,
Anuj Chauhan.

On Wed, Sep 10, 2008 at 11:42 AM, [EMAIL PROTECTED] 
[EMAIL PROTECTED] wrote:


 Hi,

 I am confused by cakephp transaction. Assume I have two tables like
 User, Product. When I start the transation, the code looks like,

 $this-User-begin()
 ...
 $this-User-commit()

 The question is, if any code between the above two lines failed to
 update/insert row in table Product, does it rollback? Does $this-User-
 begin() mean we just start the transation on table User?

 I'd appreciate your help very much.

 Thanks,
 Bo
 


--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Transaction in cakephp is just for one table?

2008-09-10 Thread Anuj Chauhan
yes exactly.

On Wed, Sep 10, 2008 at 1:10 PM, [EMAIL PROTECTED] 
[EMAIL PROTECTED] wrote:


 Thanks for your reply.

 Not quit understand what you said. Possible I need something like,

 CakePHP-begin()
 //Do some update/modification
 if (succeed)
  CakePHP-commit()
 else
  CakePHP-rollback()


 I need the CakePHP-rollback to undo all change regardless of any
 model I changed. rollback($model) just rollback the change made on
 this model, am I right?



 Anuj Chauhan wrote:
  Hi,
 
  There is also a function rollback($model). make check with your all
 queries
  if any of them get fails then rollback() it and begin transaction again.
 you
  can also modify rollback() function accordingly if it needs always.
 
  Thanks,
  Anuj Chauhan.
 
  On Wed, Sep 10, 2008 at 11:42 AM, [EMAIL PROTECTED] 
  [EMAIL PROTECTED] wrote:
 
  
   Hi,
  
   I am confused by cakephp transaction. Assume I have two tables like
   User, Product. When I start the transation, the code looks like,
  
   $this-User-begin()
   ...
   $this-User-commit()
  
   The question is, if any code between the above two lines failed to
   update/insert row in table Product, does it rollback? Does $this-User-
   begin() mean we just start the transation on table User?
  
   I'd appreciate your help very much.
  
   Thanks,
   Bo
   
  
 


--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Webservices --- StrikeIron.com

2008-07-17 Thread Anuj Chauhan
you can also put this in vendors folder in apps. in your app file you may
call this by

vendor(filename);


Anuj

On Fri, Jul 18, 2008 at 10:05 AM, Dr. Tarique Sani [EMAIL PROTECTED]
wrote:



 On Fri, Jul 18, 2008 at 9:37 AM, Dave [EMAIL PROTECTED] wrote:


 Where do I put the webservice behavior php file?


 /app/models/behaviours

 HTH

 Tarique



 --
 =
 Cheesecake-Photoblog: http://cheesecake-photoblog.org
 PHP for E-Biz: http://sanisoft.com
 =

 


--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: flash() produces wrong URL

2007-09-14 Thread Anuj Chauhan
write


$this-flash(text,/article/4545/);

instead od
$this-flash(text,/article/4545/);






On 9/14/07, Sergei [EMAIL PROTECTED] wrote:


 Hello,

 I've encountered situation where

 $this-flash(text,/article/4545/);

 produces wrong url on the production web server (not on my local
 webserver!):

 \/article\/4545\/

 You see, it inserts \ before /.

 Anyone knows a solution?


 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP group.
To post to this group, send email to cake-php@googlegroups.com
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
-~--~~~~--~~--~--~---



how to integrate cakephp with wordpress and wikimedia

2007-08-23 Thread Anuj Chauhan

i am new in cake .. i want to know how to integrate wordpess blog and
wikimedia in cakephp


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP group.
To post to this group, send email to cake-php@googlegroups.com
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
-~--~~~~--~~--~--~---