3214 Posts in 848 Topics by 810 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 1271 Views |
-
include does not work

22 January 2009 at 9:22pm
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
-
Re: include does not work

22 January 2009 at 11:09pm
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.
-
Re: include does not work

23 January 2009 at 9:39am
yep, that did it.. i should have thought about that.
thanks a lot!
-
Re: include does not work

23 January 2009 at 2:22pm
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.
-
Re: include does not work

23 January 2009 at 9:11pm
You can kinda' turn it off :
put this line in your _config.php
HTTP::set_cache_age(0);
-
Re: include does not work

24 January 2009 at 3:18pm
Includes do a lot of caching. So you will have to flush each and every time you update them.
| 1271 Views | ||
|
Page:
1
|
Go to Top |




