I've found it's best to prefix my CSS paths with a forward slash:
// in a controller
$this->view->headStyle()->appendStylesheet('/mystyles.css');
-Hector
On Mon, Nov 24, 2008 at 7:53 AM, Carlos Castro <carloscastro.carlos@gmail.com> wrote:
Hi everybody,
I have a problem with my application aspect (CSS) when i put a slash (/) at the end of my URL.
Example:
http://application/mypath => it works perfectly
http://application/mypath/ => the page is showed without CSS efects
Can someone help me to resolve this problem?
Best Regards,
Carlos Castro
没有评论:
发表评论