Re: Cake not saving, latest build, wamp server (on vista)

2009-07-01 Thread Paul Webster
You always have to return true from Model::beforeSave for the save to happen ;-) --~--~-~--~~~---~--~~ 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

Re: How to Save Configuration in Database

2009-07-01 Thread Paul Webster
We save sets of configuration data into a config table, and pull it out from the db, or from cache before passing to Configure::write at the start of the app load. No pre made solutions for this one! HTH, Paul. On Jul 1, 10:55 pm, CMNAJS cmn...@gmail.com wrote: how can i manage configuration

Re: How to Load Model in Component

2009-07-01 Thread Paul Webster
You could, or even better $ThisIsMyModelINstance = ClassRegistry::init('ThisIsMyModel'); On Jul 1, 10:59 pm, CMNAJS cmn...@gmail.com wrote: how can i load model in components.. in cakephp 1.2.x.x. should i use App::import('Model', 'modelname')  ???

Re: Cakephp in the root + zencart + images not showing up

2009-07-01 Thread Paul Webster
Yer, strange on those images - cake's htaccess will only catch requests to non existent files / dirs. As for the prev next links showing up - thats by design, you can soon enough hide them with css ( take a look they have a class set disabled ), Not sure off the top of my head if there is

Re: How to Save Configuration in Database

2009-07-01 Thread Paul Webster
On Jul 1, 4:15 pm, Paul Webster s...@webprogression.co.nz wrote: We save sets of configuration data into a config table, and pull it out from the db, or from cache before passing to Configure::write at the start of the app load. No pre made solutions for this one! HTH, Paul

Re: email function

2009-07-01 Thread Paul Webster
We do that very thingy by wrapping the standard, often repeated email code in another component that uses the Email component, Then you just have to do something along the lines of [in your controller]: var $component = array('Notify' = array('email config params')); $this-Notify-send('all

Re: Cakephp in the root + zencart + images not showing up

2009-07-01 Thread Paul Webster
. I noticed on the actual buggy hosting service that mysqli isn't there. Could it be related with the paginator issue? On 1 Lug, 13:21, Paul Webster s...@webprogression.co.nz wrote: Yer, strange on those images - cake's htaccess will only catch requests to non existent files / dirs

Re: Cake causes CPU Spike

2009-06-23 Thread Paul Webster
Oh where to begin... most of the points made so far have been very valid, you ideally should optimizing your application by unbinding unused models etc, only loading those you need, and since you have the overhead of using the framework, again ideally, use your models(and the framework as a

RE: ordering a model through related model order

2007-10-25 Thread Paul Webster
I tried to do something very similar not so long ago, and too had trouble getting it to do as I wanted. In the end not having time to pursue it further I did just sort after the query was made, as far as I could tell due to the way habtm's are querried it wasn't a simple case of altering the

RE: flash files which load other flash files

2007-10-24 Thread Paul Webster
Can you just not use absolute urls? /img/swf/menu.swf Or if they need to be configurable pass them in as flash vars or xml? There are plenty of quick web tut's out there showing how to do such things. -Original Message- From: cake-php@googlegroups.com [mailto:[EMAIL PROTECTED] On

RE: 1.2 for production use?

2007-09-24 Thread Paul Webster
Ive deployed half a dozen reasonable size sites with 1.2 and a handful of smaller sites utilising a basic cms built on 1.2 also. All without any hiccups, there was the initial worry, but I've never looked back since craning up the beast that is 1.2, it was just too good to wait round not using

RE: invoking controller function from view

2007-09-02 Thread Paul Webster
Using request action? ?php echo $this-requestAction('/controllerName/ipcheck/100.0.0.1');? -Original Message- From: cake-php@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Saeedo Sent: Monday, 3 September 2007 2:07 a.m. To: Cake PHP Subject: invoking controller function from

RE: outputting results from a db in groups of common content

2007-09-01 Thread Paul Webster
Just yesturday I was wantiong a good solution to this same type of situation. Not wanting to filter / order etc in my views I quickly whipped up a small find funtcion implemented in my app_model. I'm sure there is possiobly a better implementation of this, but for now it is what it is. I

RE: getting dreamweaver to recongize thtml files

2007-08-29 Thread Paul Webster
This is what your after: http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_16410sliceId=2 -Original Message- From: cake-php@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Thursday, 30 August 2007 8:35 a.m. To: Cake PHP Subject: getting

Persisting Session Across Domains

2007-05-07 Thread Paul Webster
I have a project with various areas accessible and only accessible via certain domains sub domains etc. This was fine as it was a pretty simple site just providing information with no need for logins etc, but of course the site has currently evolved and now will be providing some user options and

RE: Persisting Session Across Domains

2007-05-07 Thread Paul Webster
Of John David Anderson (_psychic_) Sent: Tuesday, 8 May 2007 8:55 a.m. To: cake-php@googlegroups.com Subject: Re: Persisting Session Across Domains On May 7, 2007, at 2:08 PM, Paul Webster wrote: I have a project with various areas accessible and only accessible via certain domains sub domains

RE: Silly HTTPS quesiton...

2007-04-20 Thread Paul Webster
:[EMAIL PROTECTED] On Behalf Of Martin Schapendonk Sent: Friday, 20 April 2007 10:19 p.m. To: cake-php@googlegroups.com Subject: Re: Silly HTTPS quesiton... 2007/4/20, Paul Webster [EMAIL PROTECTED]: Like I said, this may not be the best practice way to do it, but to me it did it good enough given

RE: Silly HTTPS quesiton...

2007-04-19 Thread Paul Webster
Jolly Good question that, one I have just these last few weeks had to tackle. I searched around a bit on the subject and came up with a few articles - none of which really did exactly what I wanted, and I figured it just had to be easy than this. So in my webroot htaccess I added the following