Wouldn't messing with the defined constants in /nh/webroot/index.php only adjust it for that page? It looks like theres a lot of scaffolded includes; in which one of them doesn't have the right path or variable. I don't which line is bad because I don't know which file is calling or creating the path.
Here's my directory tree: bitslip:/srv/www/htdocs/nh # find . -type d . ./ controllers ./controllers/ components ./ tmp ./tmp/ sessions ./tmp/ logs ./tmp/ tests ./tmp/ cache ./tmp/cache/ persistent ./tmp/cache/ models ./tmp/cache/ views ./ models ./models/ behaviors ./models/ datasources ./ webroot ./webroot/ js ./webroot/ img ./webroot/ css ./ plugins ./ views ./views/ errors ./views/ layouts ./views/layouts/js ./views/layouts/email ./views/layouts/email/html ./views/layouts/email/text ./views/layouts/rss ./views/layouts/xml ./views/pages ./views/helpers ./views/elements ./views/elements/email ./views/elements/email/html ./views/elements/email/text ./views/scaffolds ./locale ./locale/eng ./locale/eng/LC_MESSAGES ./tests ./tests/groups ./tests/fixtures ./tests/cases ./tests/cases/controllers ./tests/cases/models ./tests/cases/helpers ./tests/cases/components ./tests/cases/behaviors ./config ./config/sql ./vendors ./vendors/shells ./vendors/shells/templates ./vendors/shells/tasks On Apr 23, 4:54 am, piousbox <[email protected]> wrote: > Fromhttp://book.cakephp.org/view/206/Inserting-Well-Formatted-elements > This: <?php echo $html->css('forms'); ?> > Gives you this: <link rel="stylesheet" type="text/css" href="/css/ > forms.css" /> > The file is here: /app/webroot/css/forms.css where /app/ is /nh/ in > your case. > > You can try messing with defined constants in /nh/webroot/index.php > and figure out where your "webroot" actually is. Or, you can post more > information here: the exact PHP line you use to include that CSS file, > the line from the source file that has the <link /> element, and the > directory tree of your /nh/ and /nh/webroot/ > > cheers, > -Victor > > On Apr 22, 1:23 am, Psyber Netik <[email protected]> wrote: > > > > > You guys probably answered a ton of these already... but, I just can't > > find the post... > > > As the subject says... The path that is being given is wrong. Would I > > have to edit the helper? > > > The path that is being used is "/nh/css/cake.generic.css" it should > > actually be "/nh/webroot/css/cake.generic.css" right? In the "nh" > > directory I don't have a "css" folder. "nh" is the name of the app. In > > my apache webroot I have the following: > > > bitslip:/srv/www/htdocs # ls -l > > total 8 > > drwxrwxr-x 5 root root 4096 2010-04-14 22:10 cakephp > > -rw-r--r-- 1 root root 0 2010-04-21 18:27 index.php > > drwxr-xr-x 12 root root 4096 2010-04-21 20:02 nh > > > In the "nh" folder I used the `cake bake` command which generated all > > the files I needed. > > > Please help this noob!!! > > > Check out the new CakePHP Questions sitehttp://cakeqs.organdhelp 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 > > athttp://groups.google.com/group/cake-php?hl=en > > Check out the new CakePHP Questions sitehttp://cakeqs.organd 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 > athttp://groups.google.com/group/cake-php?hl=en 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
