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
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.
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?
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);
}
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`,
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
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
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',
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
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
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
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
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
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
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
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
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
17 matches
Mail list logo