Re: model.php can't save data due to beforeSave

2007-07-27 Thread matlin
Maybe your behavior test doesn't return at all? I made that mistake once. Void is not true. On 27 Juli, 06:10, Grant Cox <[EMAIL PROTECTED]> wrote: > It runs the beforeSave() function, which your model can implement if > you want to check what is about to be saved, and either modify the > data be

Re: Creating views

2007-07-27 Thread matlin
I'm not a CakePHP superuser but I try to stay clear of using PagesController. What happens if you create the views manually? On a sidenote, when I have more than one Model that use Categories I altered my Categories model like this: CREATE TABLE `categories` ( `id` int(10) unsigned NOT NULL au

HABTM self-referencing question

2007-07-25 Thread matlin
This may have been answered already but the search is for some reason not working well for me. My HABTM looks like this: var $hasAndBelongsToMany = array('parameters' => array('className' => 'Wac', 'joinTable' => 'wacs_params',

Re: Cake 1.2alpha path question

2007-07-24 Thread matlin
No, I am not using mod_rewrite. And, yes, it works. Although somethings must be wrong in the *env* function. On 24 Juli, 21:06, "chanh.ong" <[EMAIL PROTECTED]> wrote: > The only time the BASE_URL is define is the mod_rewrite is not being > use so are you not using mod_rewrite and with your fix i

Re: Cake 1.2alpha path question

2007-07-24 Thread matlin
I have had some similar problems with a fresh vanilla 1.2, the url's aren't rewritten properly when I use the BASE_URL approach. What I just noticed is that env("SCRIPT_NAME") DOES NOT equal $_SERVER['SCRIPT_NAME'] for some reason. I altered the define to use $_SERVER['SCRIPT_NAME'] and now it wor

Re: hasMany's order question

2007-05-02 Thread matlin
oller: > > Change: > 'Blog.created DESC' > to > 'order' => 'Blog.created DESC' > > It must have been a slip of the keys, because in the BlogsController > you've done it the right way. > > Gerben. > > On 21 apr, 15:20, matlin <[EMAIL

Re: Undefined property: hashkey when using othAuth

2007-05-02 Thread matlin
have an old version. Update your cake version, _viewVars > has been changed to viewVars. even in 1.1 > > On Apr 30, 9:44 am, matlin <[EMAIL PROTECTED]> wrote: > > > I tried to reply to a thread where people were having problems with > > oth_auth > > I got the er

Undefined property: hashkey when using othAuth

2007-04-30 Thread matlin
I tried to reply to a thread where people were having problems with oth_auth I got the error below when I started to use the component/helper and found a solotion. Notice: Undefined property: hashkey in /afs/su.se/services/www/hosts/ www.lab.it.su.se/pages/cake/app/views/helpers/oth_auth.php on l

Re: hasMany's order question

2007-04-21 Thread matlin
The BlogsController: http://bin.cakephp.org/view/616075649 and the CategoriesController: http://bin.cakephp.org/view/1748048905 Staring myself blind I think ... ;) On Apr 21, 1:44 am, gerbenzomp <[EMAIL PROTECTED]> wrote: > What is your current code? > > On 21 apr, 00:2

hasMany's order question

2007-04-20 Thread matlin
A short question, does $hasMany honor the the 'order' directive? It doesn't seem to be so. To me. I can't get it to work anyway. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this gro