Re: Homepage Sweeper (clear cache) Question

2010-08-07 Thread iamcam (Cameron Perry)
You can use some of the model hooks (like after save) to clear the cache, then call a method that rebuilds it, or the appropriate parts. You might also consider storing separate caches for each component/ model whenever it's updated. With the home page idea, you can create a controller with no mod

Re: Something like ActiveMerchant?

2010-07-15 Thread iamcam (Cameron Perry)
features are  PHPUnit tests and integation form > helper. > > By the way, thinking of naming this project "phpMerchant" but googling > on that i found this linkhttp://code.google.com/p/php-merchant/ > > It is an Active Merchant like project, but it is inactive

Re: Something like ActiveMerchant?

2010-07-14 Thread iamcam (Cameron Perry)
gt; - Bharadwaj > > On 12-Jul-10, at 10:23 PM, iamcam (Cameron Perry) wrote: > > > > > How closely are you following the original ruby version? I'd be > > interested in helping out here and there once you put it on github (so > > much better than google). >

Re: Something like ActiveMerchant?

2010-07-12 Thread iamcam (Cameron Perry)
documentation. > > I hope this will help php developers to integrate payments api to > their eCommerce applications. > > On Jul 6, 1:51 am, "iamcam (Cameron Perry)" > wrote: > > > > > Has anyone seen anything like ActiveMerchant on the PHP side? I > >

Re: Memcached

2010-07-09 Thread iamcam (Cameron Perry)
Cache an item, assuming the cache is working, turn memcached off, then try to read it on the next request. That will tell you right away if memcache is working. On Jul 9, 7:05 pm, Hugo M wrote: > I've configured memcached as caching system in CakePHP, how can I test it? > Because I tried to get c

Re: Something like ActiveMerchant?

2010-07-06 Thread iamcam (Cameron Perry)
er thought about something similar mostly > because the API support of most payment gateways is pretty > straightforward using php... > > On Jul 5, 11:51 pm, "iamcam (Cameron Perry)" > wrote: > > > > > Has anyone seen anything like ActiveMerchant on the PHP sid

Something like ActiveMerchant?

2010-07-05 Thread iamcam (Cameron Perry)
Has anyone seen anything like ActiveMerchant on the PHP side? I searched around a bit but haven't seen anything. I'm intrigued by the fact that it supports so many gateways out of the box, and wonder if (a) anyone has already come up with a PHP alternative, or (b) thinks it feasible to attempt a p

Re: integrating with mongoDB

2010-04-15 Thread iamcam (Cameron Perry)
Have you seen this post yet? http://mark-story.com/posts/view/using-mongodb-with-cakephp Check the post comments. There's one in there about the primary key issue. On Apr 15, 1:42 am, zulfiqar wrote: > Hi, > > I am planning to use mongoDB as database for my application. I found > mongoDB datas

Re: save extra data in join table

2010-04-12 Thread iamcam (Cameron Perry)
I believe you have to break the automagic HABTM relationship into hasMany and belongsTo with an explicit model representing the join table - manually join your Event and Guest models to the EventGuest through those relationships. The issue is that any time HABTM relationships get updated, the rows

Re: Let's get rid of The Bakery

2010-04-05 Thread iamcam (Cameron Perry)
+1 on keeping the idea of the bakery. The current system is nice for articles, but it still feels like it's lacking in a couple of areas - one is comments. Why not use a service like akismet to filter comments? They have a non- profit version that allows free usage in exchange for some cross- prom

Re: Using hasMany from app to plugin

2010-03-07 Thread iamcam (Cameron Perry)
  'User' => array( >       'className' => 'User' >     ) >   ); > > //app/models/user.php > var $hasMany = array( >   'Chat' => array( >     'className' => 'InstantMessenger.ImChat', >   ) > ); >

Using hasMany from app to plugin

2010-03-06 Thread iamcam (Cameron Perry)
This might be elementary for some, but I haven't quite wrapped my head around how I can build a hasMany relationship from my app model to a model in a plugin (one I'm also writing). The basic gist looks something like this: /** App's User Model **/ class User extends AppModel { var $name