Re: RFC: Possible new feature for html helper

2006-06-14 Thread David Spitzley
>>> [EMAIL PROTECTED] 06/14/06 7:55 AM >>> Martin ha escrito: > > @import url(/css/my_style.css); > just a question, why do you want this syntax? --- Well, I'm not Martin, but I've run into cases where Internet Explorer 6 won't read in multiple CSS fil

Re: Web host doesn't use AllowOverride

2006-06-09 Thread David Spitzley
I was having the flash calls hang as well, and discovered that I hadn't set define('SERVER_IIS', true); in app/config/core.php. On the other hand, I don't recall whether or not you're on a Windows server with IIS, so this may or may not be your problem. David >>> [EMAIL PROTECTED] 06/09/0

Nearly complete failure after record saves

2006-06-07 Thread David Spitzley
I'm currently working with release 2951, and I'm running into a problem with the behavior of some pages I generated with Bake so I could figure out the basic structure of Cake sites. I'm running this on Windows with IIS and the ISAPI_Rewrite option, which seems to work fine since the pages sho

Re: IIS Cake and PHP

2006-06-06 Thread David Spitzley
>>> [EMAIL PROTECTED] 06/06/06 7:46 AM >>> Cake is only constrained by the limitations of running PHP under IIS, which actually aren't that many unless you run it as CGI, so yes, it is definitely possible. See http://cakefoundation.org/pages/clients There's a tutorial on the wiki that describes

Re: CakePHP Manual 1.x.x.2819

2006-05-22 Thread David Spitzley
I think it would helpful for there to be a link from http://manual.cakephp.org/ to the documentation on cakeforge. I had no idea that the cakeforge docs existed until this message. David >>> [EMAIL PROTECTED] 05/21/06 7:47 AM >>> Hi there! New release of your packaged manuals. [Notes] Wel

Re: bake.php Maximum execution time of 60 seconds exceeded

2006-05-16 Thread David Spitzley
You can modify the maximum execution time of PHP in the php.ini file, if you have control over that. Otherwise, I believe there is a function you can call in PHP to increase execution times, but I'm not sure how much power it actually has to override the limit in php.ini. David >>> [EMAIL P

Re: Some errors with scaffolding

2006-05-16 Thread David Spitzley
Just a thought, but you might want to configure the listserv to include that link after every post. I've found that sort of information works well as listserv mix-ins. David >>> [EMAIL PROTECTED] 05/16/06 8:57 AM >>> We have a site where bugs are reported and you can search to see it this ha

Re: Puzzling problems with bake.php results

2006-05-15 Thread David Spitzley
ugh. -- /** * @author Larry E. Masters * @var string $userName * @param string $realName * @returns string aka PhpNut * @access public */ On 5/15/06, David Spitzley <[EMAIL PROTECTED]> wrote: > > > Nope, I'm still using the install I set up about a week and a half ago, > 1.0.

Re: Puzzling problems with bake.php results

2006-05-15 Thread David Spitzley
Nope, I'm still using the install I set up about a week and a half ago, 1.0.1.2708. Should I be planning to upgrade every few days? I don't mean that as a zing, I just don't know how stable or unstable the code is right now. David >>> [EMAIL PROTECTED] 05/15/06 4:25 PM >>> Are you using the

Re: Puzzling problems with bake.php results

2006-05-15 Thread David Spitzley
>>> [EMAIL PROTECTED] 05/15/06 4:15 PM >>> Well, this excerpt names it as $data['User']... rather than $row ['User'], for one. How are you handing this data to the view? As "data" or as "row"? -- The records are passed to the view as $data, wh

Puzzling problems with bake.php results

2006-05-15 Thread David Spitzley
I'm currently puzzling over an index.thtml generated by bake.php which is failing. I'm receiving error messages in every column which read "Notice: Undefined index: User in c:\inetpub\cake\app_csr\views\users\index.thtml on line 22" (the line number changes with the columns). Line 22 reads

Re: More hasAndBelongsToMany Fun

2006-05-12 Thread David Spitzley
s before asking. If you already did, kudos to you. -- J On May 12, 2006, at 1:24 PM, David Spitzley wrote: > > Perfection. I'd been wondering how to recover the default SQL > statement for tweakage. By the way, where does one set DEBUG? > > > David > >>>>

Re: More hasAndBelongsToMany Fun

2006-05-12 Thread David Spitzley
Perfection. I'd been wondering how to recover the default SQL statement for tweakage. By the way, where does one set DEBUG? David >>> [EMAIL PROTECTED] 05/12/06 3:20 PM >>> I'd run a normal Cake HABTM query, with DEBUG turned to 3. Take the query Cake is using for its vanilla HABTM fetch,

More hasAndBelongsToMany Fun

2006-05-12 Thread David Spitzley
Say that I've got a requests table, a staff table and a join table named assignments. In addition to request_id and staff_id, assignments contains a "role" field. Once I set up the hasAndBelongsToMany associations between requests and staff, how would I pull up the role field? Is this someth

Basic Associations question

2006-05-12 Thread David Spitzley
Am I correct that Associations need to be symmetric between Model files? In other words, if I define A hasMany B or A hasOne B, then I must also define B belongsTo A? And if A hasAndBelongsTo B then I must also state B hasAndBelongsTo A? David --~--~-~--~~~---~

Re: default values in form fields

2006-05-12 Thread David Spitzley
>>> [EMAIL PROTECTED] 05/12/06 5:46 AM >>> if you set in $this->data['Model']['field'] then the html helper will add the value to the field you can use $html->tagValue('Model/field'); if you need the default data for something else. so in your add form for example function add() { if(

Re: Getting Bake.php to work

2006-05-11 Thread David Spitzley
>>> [EMAIL PROTECTED] 05/11/06 6:04 AM >>> Ok, a bit more info. You need to put the path to your php.exe file in your PATH environment. Once you do that, open a cmd window and go to the /cake/scripts directory. Once there just type "php bake.php".