Monday, September 10, 2012

Re: How to link to a non cake php page, and where to put it?

On Sun, Sep 9, 2012 at 11:50 PM, d6games <mark.deibert@gmail.com> wrote:
> I need to do this too. Sadly, this doesn't work in version 2.2. In my
> index.ctp view I have a standard hyperlink like...
>
> <?php echo "<a href='joingame.html'>Join</a>" ?>
>
> Which renders the correct link, but when I click it I get...
>
> Error: Joingame.htmlController could not be found.
>
> Error: Create the class Joingame.htmlController below in file:
> app/Controller/Joingame.htmlController.php
>
>
> How can I link to a non-CakePHP app?

Use the correct link. Where is the "joingame.html" located? If it's in
the cakePHP folder, you will have to mess with the .htaccess file so
that cake doesn't try to intercept it. If it's outside the cakePHP
folder, either use the absolute path or a relative path to get to it.

Can you view the file on its own?

Mike.

--
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en-US.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate