Ryan,
Thanks for your reply. I was relying on CakePHP to automatcially add
the .ctp extension on the view filenames it derived from the 'action'
option I assign in the array. I build the URL like this:
echo "<dd>".$this->Html->link($link-
>description,array('controller'=>'somecontroller','action'=>'SomeThing','someothervalue'
=>'blah','anothervalue'=>'blahblah'))."</dd>";
In my controller, I have:
function SomeThing()
{
do something;
}
which automatically maps to the view file 'some_thing.ctp'. I do not
specify the .ctp since it automatically maps to the appropriate view.
This works if the .ctp is only html, however, if the .ctp is
dynamically generating a form (like the code I posted previously), it
gives me the download file pop up in IE. I am wondering if there is
something specific that I need to specify in the code if the browser
is IE.
Thanks again for your assistance. Erik
On Dec 9, 4:47 pm, Ryan Schmidt <[email protected]> wrote:
> On Dec 9, 2010, at 17:14, mochaman wrote:
>
> > I am new to cakephp (building first app :-)). For some reason, when I
> > try to run my app in IE, it wants to download rather than render the
> > output from my view (a .ctp file). I have looked on line and it seems
> > others have apps working with IE so I must not have something set
> > correctly. BTW, the pages render fine in both Chrome and FF, but not
> > IE (using IE 7). Here is my steps to reproduce:
>
> > 1. Render my index.ctp page (this works fine)
> > 2. When I click on one of my links -- it translates the link to the
> > proper file which has a .ctp extension, however, I get a dialog box in
> > IE to download a file with the name of the last section on my link
>
> ".ctp" is the extension for CakePHP view files, yes, but it's not supposed to
> be part of your URLs. I'm not even sure how you managed to get it into your
> URLs. Perhaps you should show us how you're generating your URLs for your
> links.
Check out the new CakePHP Questions site http://cakeqs.org and help others with
their CakePHP related questions.
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected] For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en