On my shared host (one.com) I'm having some issues with getting the
HTML helper to work properly. For example I have
<?php echo $html->link('Members', array('controller' => 'users'); ?>
which resolves in the URL:
http://myhost.com/customers/account_name/account_name/httpd.www/app_name/users
My webroot directory / looks like this
/
+ cake
+ app_name
I've placed my APP outside the regular cake folder, which is possible
with some changes to webroot/index.php .
the webroot/index.php file looks like this:
[code]
if (!defined('ROOT')) {
define('ROOT', DS . 'customers' . DS . 'account_name' . DS .
'account_name' . DS . 'httpd.www');
}
/**
* The actual directory name for the "app".
*
*/
if (!defined('APP_DIR')) {
define('APP_DIR', 'app_name' );
}
/**
* The absolute path to the "cake" directory, WITHOUT a trailing DS.
*
*/
if (!defined('CAKE_CORE_INCLUDE_PATH')) {
define('CAKE_CORE_INCLUDE_PATH', DS . 'customers' . DS .
'account_name' . DS . 'account_name' . DS . 'httpd.www' . DS .
'cake' );
}
[/code]
I assume that this is the place where it all goes wrong, and I've
searched the html helper for some clue on things I might could
stripout to let it always put out a relative path, but failed to do
so.
Now my question is, where and what do I have to change so my URLs will
work properly (like they should?). This problems repeats itself also
over the $html->css .. Which will point out the the full cake
directory path...
Thanks in advance
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 cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
No comments:
Post a Comment