[cake 2.x] Session.cookieTimeout won't be Session.timeout by default

2012-03-08 Thread Perry
ssionConfig['cookieTimeout'])) { > $sessionConfig['cookieTimeout'] = $sessionConfig['timeout']; > } the conditions won't match and code inside won't be executed, cookieTimeout will still be 240 , which is cake's default value. is this a bug? I thin

Re: HtmlHelper::div close tag?

2012-02-20 Thread Perry
for youbut you need to > pass a class to it as the first parameter... $this->Html->div('someClass', > 'foo'); should do the trick. > > > > > On Tue, Feb 21, 2012 at 4:13 PM, Perry wrote: > >> Hi guys, I want to wrap some elements in a div, and

HtmlHelper::div close tag?

2012-02-20 Thread Perry
Hi guys, I want to wrap some elements in a div, and I'm using $this->Html->div('foo') to generate the starting div tag, but I can't find a method to generate the closing tag how can I use the HtmlHelper to do this? I think write the '' directly is ugly

cake 2.0.5 AppExceptionRenderer not found error

2012-01-31 Thread Perry
AppExceptionRenderer file, but according to the manual, I do put it in app/Lib/Error, please help -- Perry | 彭琪 http://pengqi.me -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others

Re: HttpSocket won't use 443 port for https request automatically

2012-01-31 Thread Perry
time > (as you did here^^) > > > On 31 Jan., 04:38, Perry wrote: > > when I pass a https url to HttpSocket::get, it won't use 443 port > > automatically, and return nothing > > > > but when i specify the port in url, likehttps://example.com:443/, it >

HttpSocket won't use 443 port for https request automatically

2012-01-30 Thread Perry
when I pass a https url to HttpSocket::get, it won't use 443 port automatically, and return nothing but when i specify the port in url, like https://example.com:443/, it works fine is this a bug? -- Perry | 彭琪 http://pengqi.me -- Our newest site for the community: CakePHP Video Tuto

$persistModel is removed in Cake 2.0?

2012-01-29 Thread Perry
in Cake 2.0, controllers don't persistent models in tmp/cache/persistent/ directory, right? then where does it store those cached objects? or model objects are not cached any more? i do see some files in tmp/cache/models, but those are table structures i guess. -- Perry | 彭琪 http://peng

Re: Best practice output a Dynamic menu

2011-12-12 Thread Perry
, how would you > suggest to only use the menu database retrival when needed? > > using if this params controller= controller ? or something like that? > or do you know of a better way ? > > Thanks for all help and suggestions this far! > > -Tom > > > On 12 Des, 07:

Re: Best practice output a Dynamic menu

2011-12-11 Thread Perry
ering about the best practice > to do this? > > Example, get menues and links from db in component, generate menu > output with helper. > > Or should i do all this in the helper? > > Thanks! > > tom > > On Dec 8, 11:42 pm, Perry wrote: > > why consider components and h

Re: Best practice output a Dynamic menu

2011-12-08 Thread Perry
newest site for the community: CakePHP Video Tutorials > http://tv.cakephp.org > Check out the new CakePHP Questions site http://ask.cakephp.org and help > others with their CakePHP related questions. > > > To unsubscribe from this group, send email to > cake-php+unsubscr...@google

Re: 2.0.4: Class 'Helper' not found

2011-12-07 Thread Perry
r > than the app itself > the base classes are in the base (=parent) folders. > > > On 7 Dez., 11:04, Perry wrote: > > I defined a custom AppHelper as View/Helper/AppHelper.php > > > > App::uses('Helper', 'View/Helper'); > > > > class AppH

2.0.4: Class 'Helper' not found

2011-12-07 Thread Perry
I defined a custom AppHelper as View/Helper/AppHelper.php App::uses('Helper', 'View/Helper'); class AppHelper extends Helper but it gives a php error: Fatal error: Class 'Helper' not found in i don't why, it works fine in 1.3, thx for any help -- P

Re: Observer Pattern in CakePHP 2.0

2011-11-24 Thread Perry
; 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 > -- Perry | 彭琪 http://pengqi.me -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Ch

Re: Creating AuthComponent in 2.0-beta

2011-08-26 Thread Perry
bscr...@googlegroups.com For more options, visit this group > at http://groups.google.com/group/cake-php > -- Perry | 彭琪 http://pengqi.me -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.o

Re: Creating AuthComponent in 2.0-beta

2011-08-26 Thread Perry
hp.org and help > others with their CakePHP related questions. > > > 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 > -- Perry | 彭琪 http://pengqi.me -- Our

Re: can't save cake_core files to memcached

2011-08-04 Thread Perry
I've found the solution in http://www.pseudocoder.com/blog/8-ways-to-speed-up-cakephp-apps I need to add a '_cake_core_' cache configuration using memached engine On Thu, Aug 4, 2011 at 6:57 PM, Perry wrote: > Hi all, > I've enabled file cache in core.php, and

can't save cake_core files to memcached

2011-08-04 Thread Perry
p me here, thx a lot! -- Perry | 彭琪 http://pengqi.me -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, se

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

Remote developer contract using cakephp for our site

2007-06-15 Thread Perry
to do that? Have PHP and SQL installed on my local server and the host, can the cake client interface be run in Mac OS X? Perry [EMAIL PROTECTED] (510) 684-4152 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "