Hi,
I need <include url="extend3.xml" /> .... and whed this file is not present so not include....
I think:
if( file_exists("extend3.xml"),
<include url="extend3.xml" />
,
);
But doesn't work.... Can you help me?
Thanks.
Hi,
I need <include url="extend3.xml" /> .... and whed this file is not present so not include....
I think:
if( file_exists("extend3.xml"),
<include url="extend3.xml" />
,
);
But doesn't work.... Can you help me?
Thanks.
i'm afraid it's not possible that way.
include is oarsed
maybe you can write that xml into a few actions orso and use the IF statement..
?
Tuur
i'm afraid it's not possible that way.
include is parsed
maybe you can write that xml into a few actions orso and use the IF statement..
?
Tuur
nope cant be done. if would be icing on the cake if we could. we all wish for that feature but it mayu not be possible.
When I use not existing file... I get error....
..............................
You shouldn't mix php script and KRPano API (there are no function to chek if file exists in KRpAno).
What you want to do, can be done in this way:
1. Make your xml file a php script (rename extension xml to php)
2. When you want to include another xml file you should use php syntax:
Don’t have an account yet? Register yourself now and be a part of our community!