Does it work for you if you try something like:
echo $html->link('File','http://host.com/files/quickguide.pdf');
On Apr 14, 8:33 pm, "jyrgen" <[EMAIL PROTECTED]> wrote:
> i've got index.php in *all* URLs... :-)
> they all look likehttp://localhost/cake/index.php/controller/action
>
> don't quite know, what you mean with server setup.
> directory structure is
>
> /var/www/cake
> /var/www/cake/cake
> /var/www/cake/app
> /var/www/cake/app/controller
> /var/www/cake/app/views
> ...
> /var/www/cake/docs
>
> --------------
>
> bootstrap.php:
>
> ...
> if(env("HTTP_HOST") == "admin.localhost"){
>
> $_GET["url"] = "admin" . $_GET["url"];
>
> }
>
> elseif(strpos($_GET["url"], "admin") === 0){
>
> header ("HTTP/1.0 404 Not Found");
> die();
> }
> ...
>
> --------------
>
> active routes are:
>
> $Route->connect('/', array('controller' => 'users', 'action' =>
> 'login'));
> $Route->connect('/pages/*', array('controller' => 'pages', 'action' =>
> 'display'));
> $Route->connect ('/admin', array('controller' => 'users', 'action' =>
> 'login', 'admin' => 1));
>
> --------------
>
> /var/www/cake/index.php:
>
> define('APP_DIR', 'app');
> define('DS', DIRECTORY_SEPARATOR);
> define('ROOT', dirname(__FILE__)); // this dir !
> define('WEBROOT_DIR', 'webroot');
> define('WWW_ROOT', ROOT . DS . APP_DIR . DS . WEBROOT_DIR . DS); //
> app-dir / webroot
>
> --------------
>
> /var/www/cake/app/index.php:
>
> require 'webroot' . DIRECTORY_SEPARATOR . 'index.php';
> (unchanged, like /var/www/cake/app/webroot/index.php)
>
> --------------
>
> best, jyrgen
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake
PHP" 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
-~----------~----~----~----~------~----~------~--~---