Re: shared servers and absolute paths

2008-05-15 Thread Roon

thanks for your suggestions..

turns out it was an htacces config
< RewriteRule ^(.*)$ /index.php?url=$1 [QSA,L]
---
> RewriteRule ^(.*)$ index.php?url=$1 [QSA,L]

note the '/' before the index.php


On May 14, 9:48 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
wrote:
> did you replace the 'app' directory w/ 'myapp' or do you have /home/
> username/myapp/app ?
>
> On May 14, 12:27 pm, Roon <[EMAIL PROTECTED]> wrote:
>
> > Hi all,
>
> > I have a setup issue on asharedserverwhich i can't seem to find any
> > documentation for.
> > I am able to get the "Sweet, 'myapp' got Baked by CakePHP!" homepage
> > up and running with no errors.. even the database configured ok,
>
> > Problem is, when I run any controllers, looking for deeper pages the
> > paths on any css and images etc coming from the html helper are all
> > absolute paths.. i get
> > href="/home/myusername/www/css/cake.generic.css"
> > whereas on the home page it was simply /csscake.generic.css as it
> > should
>
> > I have installed with the following layout:
>
> > /home/myusername/cake - cakelibrary
> > /home/myusername/myapp - my application code
> > /home/myusername/www - the contents of webroot (taken from myapp)
>
> > using the following in the www/index.php
>
> > define('ROOT', DS.'home'.DS.'myusername');
> > define ('APP_DIR', 'myapp');
> > define('CAKE_CORE_INCLUDE_PATH', ROOT);
>
> > anyone with any similar experiences? or suggestions.

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: shared servers and absolute paths

2008-05-14 Thread [EMAIL PROTECTED]

did you replace the 'app' directory w/ 'myapp' or do you have /home/
username/myapp/app ?

On May 14, 12:27 pm, Roon <[EMAIL PROTECTED]> wrote:
> Hi all,
>
> I have a setup issue on a shared server which i can't seem to find any
> documentation for.
> I am able to get the "Sweet, 'myapp' got Baked by CakePHP!" homepage
> up and running with no errors.. even the database configured ok,
>
> Problem is, when I run any controllers, looking for deeper pages the
> paths on any css and images etc coming from the html helper are all
> absolute paths.. i get
> href="/home/myusername/www/css/cake.generic.css"
> whereas on the home page it was simply /csscake.generic.css as it
> should
>
> I have installed with the following layout:
>
> /home/myusername/cake - cakelibrary
> /home/myusername/myapp - my application code
> /home/myusername/www - the contents of webroot (taken from myapp)
>
> using the following in the www/index.php
>
> define('ROOT', DS.'home'.DS.'myusername');
> define ('APP_DIR', 'myapp');
> define('CAKE_CORE_INCLUDE_PATH', ROOT);
>
> anyone with any similar experiences? or suggestions.
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: shared servers and absolute paths

2008-05-14 Thread Sliv

Have you checked your layout and view files (*.ctp) to make sure css
is being called the same way?

On May 14, 12:27 pm, Roon <[EMAIL PROTECTED]> wrote:
> Hi all,
>
> I have a setup issue on a shared server which i can't seem to find any
> documentation for.
> I am able to get the "Sweet, 'myapp' got Baked by CakePHP!" homepage
> up and running with no errors.. even the database configured ok,
>
> Problem is, when I run any controllers, looking for deeper pages the
> paths on any css and images etc coming from the html helper are all
> absolute paths.. i get
> href="/home/myusername/www/css/cake.generic.css"
> whereas on the home page it was simply /csscake.generic.css as it
> should
>
> I have installed with the following layout:
>
> /home/myusername/cake - cakelibrary
> /home/myusername/myapp - my application code
> /home/myusername/www - the contents of webroot (taken from myapp)
>
> using the following in the www/index.php
>
> define('ROOT', DS.'home'.DS.'myusername');
> define ('APP_DIR', 'myapp');
> define('CAKE_CORE_INCLUDE_PATH', ROOT);
>
> anyone with any similar experiences? or suggestions.
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



shared servers and absolute paths

2008-05-14 Thread Roon

Hi all,

I have a setup issue on a shared server which i can't seem to find any
documentation for.
I am able to get the "Sweet, 'myapp' got Baked by CakePHP!" homepage
up and running with no errors.. even the database configured ok,

Problem is, when I run any controllers, looking for deeper pages the
paths on any css and images etc coming from the html helper are all
absolute paths.. i get
href="/home/myusername/www/css/cake.generic.css"
whereas on the home page it was simply /csscake.generic.css as it
should

I have installed with the following layout:

/home/myusername/cake - cakelibrary
/home/myusername/myapp - my application code
/home/myusername/www - the contents of webroot (taken from myapp)

using the following in the www/index.php

define('ROOT', DS.'home'.DS.'myusername');
define ('APP_DIR', 'myapp');
define('CAKE_CORE_INCLUDE_PATH', ROOT);

anyone with any similar experiences? or suggestions.

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---