Re: What printing solution should I use?

2006-04-25 Thread [EMAIL PROTECTED]
Thanks for all replies. So kind of the people here. I will try these mothod and post my final solution here. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to

Re: Session value is favicon.ico Why?

2006-04-25 Thread Chris Cassell
I had the same problem. Make sure the link to favicon.ico is root- relative (/favicon.ico). Otherwise the server's looking for / controller/action/favicon.ico and the broken link gets captured as the current page. Same thing for your css and js.

Re: Getting errors when session expires

2006-04-25 Thread jburns131
Sorry, I didn't make myself too clear in that last post. I still get the 'The requested address %s was not found on this server.' error. So my problem is: Why doesn't cake pull/access the controller/action when I refresh the page after a session expires?

Re: Simple HABTM Question

2006-04-25 Thread AD7six
Hi Brendon, Try something like this: // What do I need to put here to return all the contractors linked to $service_id? $result = $this-Contractors-Services-FindByID($service_id); if ($result) { foreach ($result['Contractor'] as $Contractor) { $data[] = Array('Contractor'=$Contractor); }

Re: Simple HABTM Question

2006-04-25 Thread brandags
I get a very strange result when I do that. I did have to singularize the Model names as well: $result = $this-Contractor-Service-findByID($service_id); SQL Error in model Service: 1054: Unknown column 'Service.i_d' in 'where clause' The query that's run is this: SELECT `Service`.`id`,

Re: Simple HABTM Question

2006-04-25 Thread AD7six
ThereĀ“s a reason I wrote something like :). I use code very similar to this, but I wrote it here off the top of my head. Try: $result = $this-Contractor-Service-findById($service_id); Note the lowercase D, I don`t know if that's the reason for the underscore, but it could be. Cheers, AD7six

Re: Simple HABTM Question

2006-04-25 Thread brandags
Ha! What do you know - that was it! Thank you! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send

Using $hasMany not working

2006-04-25 Thread [EMAIL PROTECTED]
I have an account model that should join to a terminology model. Below is the account model code: class Account extends AppModel { var $name = 'Account'; var $useTable = 'G_ACCOUNT'; var $hasMany = array('Term' = array('className' = 'Term',

Re: Ajax Problem

2006-04-25 Thread hydra12
Never mind. My links to the .js files were wrong. It works now. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from

Re: scaffolding with useDbConfig

2006-04-25 Thread Scott
I am having the same problem -- I've tried asking Victor directly, but no response. Does anyone have suggestions? I have tried variations of the model/controller names, including LinksCategory, Linksections, and now Seclinks (thought maybe the name was too long). I had been trying to get a

Re: scaffolding with useDbConfig

2006-04-25 Thread Scott
Scott wrote: I am having the same problem -- I've tried asking Victor directly, but no response. Does anyone have suggestions? I found it... in my case this was a corrupted file. I am not sure how, but I compared file sizes on several of my models, and found an unaccounted for 10 bytes in

Custom empty value for selectTag

2006-04-25 Thread saavedrajj
There's a way to asign a name and a value for the empty value of a salecTag? for example: select name=data[User][user_level_id] option value=0Select a Level/option // -- CUSTOM EMPTY VALUE option value=1Administrator/option option value=2Editor/option option value=3Guest/option

No scaffolding from fresh install !!

2006-04-25 Thread Dusty
Hi all, I am testing out cakePHP and am having problems getting scaffolding to work from a fresh install version cake_0.10.9.2378_finalcake_0.10.9.2378_final. I have the database and tables set up correctly and I have the model and controllers set up correctly. The only way I can get

Re: No scaffolding from fresh install !!

2006-04-25 Thread Samuel DeVore
my guess is that the server doesn't have AllowOverride All set for your directory or are you on IIS? On 4/25/06, Dusty [EMAIL PROTECTED] wrote: Hi all, I am testing out cakePHP and am having problems getting scaffolding to work from a fresh install version

Re: No scaffolding from fresh install !!

2006-04-25 Thread Dusty
Samuel, Yes I do have AllowOverride All in the apache httpd..conf. I know it is not file permissions either because I opened the right up on the devel server I am using. I am not sure where else to start looking. --thanx --~--~-~--~~~---~--~~ You received

Re: No scaffolding from fresh install !!

2006-04-25 Thread Samuel DeVore
Have you tried changing the mod rewrite stuff to something really simple like a redirect just to see if that part is getting called. It does seem that your issue is that the mod rewrite is not working, if you have access the the server config maybe try turning up the loggging for mod rewrite and

model_php4 issue - bug ? (maybe easyphp specific)

2006-04-25 Thread Olivier percebois-Garve
Hi all, Got a bug on cakephp final. Maybe its easyphp specific. Would be cool if you can tell if this is happening on xampp, and on LAMP. It seems able only one round of query, at the second it dies. I hacked a bit model_php4 and I think that during the second request, the properties are all