Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Template Questions

include does not work


Reply

6 Posts   1651 Views

Avatar
janulka

22 January 2009 at 9:22pm Community Member, 80 Posts

Hello,

I have file called Navig.ss in "Includes" folder, then I call it from Page.ss using <% include Navig %>, but it does not show up.

It is perfectly ok when the full code is on Page.ss

I am using "mysite" -> "templates" folder, with _config.php in mysite folder defining global $project; $project = 'mysite';

btw $Layout works perfectly

thanks for help

Avatar
OscarGodson

22 January 2009 at 11:09pm Community Member, 9 Posts

Are you flushing your templates?

e.g. mysite.com?flush=1

Also, if that doesn't work, try that AND in Firefox do ctrl+shift+r or cmd+shift+r to clear the cache. In Safari try just clearing the cache.

Avatar
janulka

23 January 2009 at 9:39am Community Member, 80 Posts

yep, that did it.. i should have thought about that.

thanks a lot! :)

Avatar
OscarGodson

23 January 2009 at 2:22pm Community Member, 9 Posts

The caching seems to always make things more time consuming then time saving. I wish there was a way to just turn it off as clients always seem to have trouble with it and loading times are so fast anyways.

Avatar
Fuzz10

23 January 2009 at 9:11pm Community Member, 787 Posts

You can kinda' turn it off :

put this line in your _config.php

HTTP::set_cache_age(0);

Avatar
Nivanka

24 January 2009 at 3:18pm Community Member, 395 Posts

Includes do a lot of caching. So you will have to flush each and every time you update them.