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

2012-09-10 Thread d6games
I moved the non-cake PHP app into the cake webroot folder and now it seems 
to be working. The bit about .htaccess is interesting. I didn't think about 
that.

On Monday, September 10, 2012 4:08:47 AM UTC-4, Mike Griffin wrote:
>
> On Sun, Sep 9, 2012 at 11:50 PM, d6games > 
> 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... 
> > 
> > Join" ?> 
> > 
> > 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+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en-US.




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

2012-09-10 Thread Mike Griffin
On Sun, Sep 9, 2012 at 11:50 PM, d6games  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...
>
> Join" ?>
>
> 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+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en-US.




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

2012-09-09 Thread d6games
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...

Join" ?>

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?



On Thursday, March 29, 2012 8:59:04 AM UTC-4, Daniel wrote:
>
> Finally I worked this out.  All I needed to do was to use a regular "a 
> href" tag: 
>
>  
>  
>  
> ... 
>  href="../../../SkillsMat/edit_scores.php#'. 
> $person['Person']['full_name'].'">Skills'; ?>  
>
> ... this "gets out" of Cake. 
>
>

-- 
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+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en-US.




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

2012-03-29 Thread Daniel
Finally I worked this out.  All I needed to do was to use a regular "a
href" tag:




...
Skills'; ?> 

... this "gets out" of Cake.

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


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

2012-03-09 Thread Rodrigo Rodrigues Moyle
If you just need to put a PHP file on your projeto, just put the file on 
webroot folder at app/webroot/pages/SkillsMat/edit_scores.php and your link 
will work correctly.

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


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

2012-03-08 Thread jeremyharris
I have no idea if css and images will load properly from the vendors 
folder. It's probably looking for those assets in the webroot folders.

The anchor should be stored in $this->params['url']['#'].

It seems weird to be rendering a complete site within Cake.

On Thursday, March 8, 2012 8:53:48 AM UTC-8, Daniel wrote:
>
> On Mar 8, 4:22 pm, Jeremy Harris  wrote: 
> > Look at turning $autoRender/$autoLayout off in the controller. 
> > 
>
> OK, I did that.  But it still does not render edit_scores.php the same 
> way as outside of cake.  The first column of a table is too narrow and 
> none of the images in the file render correctly.  Also I have not 
> worked out how to pass the anchor e.g. "#Joe Blogs" to the URL.

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


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

2012-03-08 Thread Daniel
On Mar 8, 4:22 pm, Jeremy Harris  wrote:
> Look at turning $autoRender/$autoLayout off in the controller.
>

OK, I did that.  But it still does not render edit_scores.php the same
way as outside of cake.  The first column of a table is too narrow and
none of the images in the file render correctly.  Also I have not
worked out how to pass the anchor e.g. "#Joe Blogs" to the URL.

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


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

2012-03-08 Thread Jeremy Harris
Look at turning $autoRender/$autoLayout off in the controller.

On Thu, Mar 8, 2012 at 8:20 AM, Daniel  wrote:

>
> On Mar 8, 4:02 pm, jeremyharris  wrote:
> > Based on the controller code I wrote, it would be /SkillsMat/edit_scores
> >
> > The .php is appended in the controller. I have no idea if it will work,
> it
> > was just an idea more than anything.
> >
>
> OK, I figured out the link, the problem now is that it renders run.ctp
> in the normal cake way using default.ctp and so the css is screwing up
> the appearance of the page.
> I just want a raw php page, no cake stuff, and no css.
>
> --
> Our newest site for the community: CakePHP Video Tutorials
> http://tv.cakephp.org
> Check out the new CakePHP Questions site http://ask.cakephp.org and help
> others with their CakePHP related questions.
>
>
> To unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.com For more options, visit this group
> at http://groups.google.com/group/cake-php
>

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


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

2012-03-08 Thread Daniel

On Mar 8, 4:02 pm, jeremyharris  wrote:
> Based on the controller code I wrote, it would be /SkillsMat/edit_scores
>
> The .php is appended in the controller. I have no idea if it will work, it
> was just an idea more than anything.
>

OK, I figured out the link, the problem now is that it renders run.ctp
in the normal cake way using default.ctp and so the css is screwing up
the appearance of the page.
I just want a raw php page, no cake stuff, and no css.

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


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

2012-03-08 Thread jeremyharris
Based on the controller code I wrote, it would be /SkillsMat/edit_scores

The .php is appended in the controller. I have no idea if it will work, it 
was just an idea more than anything.

On Thursday, March 8, 2012 7:59:16 AM UTC-8, Daniel wrote:
>
> OK, I put the directroy "SkillsMat" in the vendor folder and I created 
> a SkillsMatController file. 
>
> How do I call (run) the file from the view.ctp button? 
>
> Currently I have the following: 
> Html->link(__('Skills Matrix'), '/SkillsMat/ 
> edit_scores.php#"'.$person['Person']['full_name'].'"'); ?> 
>
> Thanks.

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


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

2012-03-08 Thread Daniel
OK, I put the directroy "SkillsMat" in the vendor folder and I created
a SkillsMatController file.

How do I call (run) the file from the view.ctp button?

Currently I have the following:
Html->link(__('Skills Matrix'), '/SkillsMat/
edit_scores.php#"'.$person['Person']['full_name'].'"'); ?>

Thanks.

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


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

2012-03-08 Thread jeremyharris
Pages isn't probably the right place to put it. 

I would just make it a .ctp file, or create a view class that uses the .php 
extension. So if your pages controller used that view it would dispatch 
something like /pages/SkillsMat to /views/pages/skills_mat.php. If you need 
the .php extension to show, check Router::parseExtensions()

If that's a full program and you have to use it as-is, then consider 
sticking it in Vendors and writing a controller that dispatches 
accordingly, like

// in 1.3
class SkillsController extends AppController [

  function run($file) {
App::import('Vendor', 'SkillsMat', array('file' => $file.'.php'));
  }

}


On Thursday, March 8, 2012 7:28:18 AM UTC-8, Daniel wrote:
>
> Hello, 
> I have a non cake php page (not a ctp file) and I want to link to it 
> as follows: 
>
> http://localhost/swr/pages/SkillsMat/edit_scores.php#"Joe Blogs" 
>
> So from in the linking view file, I have the following code: 
> Html->link(__('Skills Matrix'), '/pages/SkillsMat/ 
> edit_scores.php#"'.$person['Person']['full_name'].'"'); ?> 
>
> This gives an error: 
> Missing View 
>
> Error: The view for PagesController::display() was not found. 
>
> Error: Confirm you have created the file: C:\wamp\www\swr\View\Pages 
> \SkillsMat\edit_scores.php.ctp 
>
> There is no controller or view for this php file it is separate from 
> cake.  Is "pages" the right place to put this sort of  file? 
>
> Thanks.

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


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

2012-03-08 Thread Daniel
Hello,
I have a non cake php page (not a ctp file) and I want to link to it
as follows:

http://localhost/swr/pages/SkillsMat/edit_scores.php#"Joe Blogs"

So from in the linking view file, I have the following code:
Html->link(__('Skills Matrix'), '/pages/SkillsMat/
edit_scores.php#"'.$person['Person']['full_name'].'"'); ?>

This gives an error:
Missing View

Error: The view for PagesController::display() was not found.

Error: Confirm you have created the file: C:\wamp\www\swr\View\Pages
\SkillsMat\edit_scores.php.ctp

There is no controller or view for this php file it is separate from
cake.  Is "pages" the right place to put this sort of  file?

Thanks.

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php