Hello,

The problem with the getBaseHref() seems to be related to the WebRequest. It 
gets the server-name from $_SERVER['SERVER_NAME']. But in my case this is the 
internal name, the external name is available as 
$_SERVER['HTTP_X_FORWARDED_SERVER']. This is for Apache 2.2.

Any chance of patching this in the WebRequest (check if it's a forwarded 
request and use that one or otherwise use SERVER_NAME) or do I need to make a 
local version for my use? I can image there will be other people running behind 
load-balancers.

Koen

-----Oorspronkelijk bericht-----
Van: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Namens Veikko Mäkinen
Verzonden: donderdag 11 januari 2007 15:13
Aan: Agavi Users Mailing List
Onderwerp: Re: [Agavi-Users] Some questions

Van Daele, Koen wrote:
> Hello all,
> 
> This list seems awfully quiet, so I'll post some questions here.

The IRC channel #agavi (on irc.freenode.net) is quite active and getting more 
active by the day. You're welcome to join :)

> 
> - What's the status on 0.11? I'm confused if it's out or not. I'm 
> currently developping an app from branches/0.11. This version still 
> doens't seem fixed, right?

It was almost fixed... but then David started to work on some mind-blowing 
improvements on the execution flow  (to enable cool things like multi-layer 
decoration / inner slots)... :) As far as I know he has everything about 
figured out and his branch is going to be merged back into trunk soon. It 
shouldn't break anything too badly, though.

> - One problem I have:
>       my global template contains links to css and js files, like:
>               <link rel="stylesheet" type="text/css"
> href="modpub/css/global.css" media="screen" />
>       But when the page url gets written using routing (e.g for page 
> http://test.server.be/apptest/index.php/search), these links are 
> relative to search and not apptest. How do I solve this?

<head>
<base href="<?php echo $ro->getBaseHref(); ?>" /> </head>

($ro = $this->getContext()->getRouting(); OR use auto-assigns, see the sample 
app's config/output_types.xml)



-veikko


_______________________________________________
users mailing list
[email protected]
http://lists.agavi.org/mailman/listinfo/users

_______________________________________________
users mailing list
[email protected]
http://lists.agavi.org/mailman/listinfo/users

Reply via email to