robertusss
Tue 25th May '04, 12:48pm
Hi,
is there an easy way to check if a template with a certain name does exist; like:
if (template_exists('abc'))
{
echo "abc exists";
} else {
echo "nope";
}
I mean I could code some SQL-thing that checks the database everytime SELECT * FROM template WHERE title='abc'
but I would like to use the internal templatefunctinos as much as possible (because of template caching etc)
THX
is there an easy way to check if a template with a certain name does exist; like:
if (template_exists('abc'))
{
echo "abc exists";
} else {
echo "nope";
}
I mean I could code some SQL-thing that checks the database everytime SELECT * FROM template WHERE title='abc'
but I would like to use the internal templatefunctinos as much as possible (because of template caching etc)
THX