<HTML ><HEAD ><TITLE >SMARTY_CORE_DIR</TITLE ><META NAME="GENERATOR" CONTENT="Modular DocBook HTML Stylesheet Version 1.7"><LINK REL="HOME" TITLE="Smarty Manual" HREF="index.html"><LINK REL="UP" TITLE="Constants" HREF="smarty.constants.html"><LINK REL="PREVIOUS" TITLE="Constants" HREF="smarty.constants.html"><LINK REL="NEXT" TITLE="Smarty Class Variables" HREF="api.variables.html"><META HTTP-EQUIV="Content-type" CONTENT="text/html; charset=ISO-8859-1"></HEAD ><BODY CLASS="sect1" BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#0000FF" VLINK="#840084" ALINK="#0000FF" ><DIV CLASS="NAVHEADER" ><TABLE SUMMARY="Header navigation table" WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="0" ><TR ><TH COLSPAN="3" ALIGN="center" >Smarty Manual</TH ></TR ><TR ><TD WIDTH="10%" ALIGN="left" VALIGN="bottom" ><A HREF="smarty.constants.html" ACCESSKEY="P" >Prev</A ></TD ><TD WIDTH="80%" ALIGN="center" VALIGN="bottom" >Chapter 11. Constants</TD ><TD WIDTH="10%" ALIGN="right" VALIGN="bottom" ><A HREF="api.variables.html" ACCESSKEY="N" >Next</A ></TD ></TR ></TABLE ><HR ALIGN="LEFT" WIDTH="100%"></DIV ><DIV CLASS="sect1" ><H1 CLASS="sect1" ><A NAME="constant.smarty.core.dir" ></A >SMARTY_CORE_DIR</H1 ><P > This if the <SPAN CLASS="emphasis" ><I CLASS="emphasis" >full system path</I ></SPAN > to the location of the Smarty core files. If not defined, Smarty will default this constant to the <TT CLASS="filename" >internals/</TT > sub-directory below <A HREF="smarty.constants.html#constant.smarty.dir" ><TT CLASS="constant" >SMARTY_DIR</TT ></A >. If defined, the path must end with a slash/. Use this constant when manually including any of the core.* files. </P ><TABLE WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="0" CLASS="EXAMPLE" ><TR ><TD ><DIV CLASS="example" ><A NAME="AEN4788" ></A ><P ><B >Example 11-2. SMARTY_CORE_DIR</B ></P ><TABLE BORDER="0" BGCOLOR="#E0E0E0" CELLPADDING="5" ><TR ><TD ><code><span style="color: #000000"> <span style="color: #0000BB"><?php<br /><br /></span><span style="color: #FF8000">// load core.get_microtime.php<br /></span><span style="color: #007700">require_once(</span><span style="color: #0000BB">SMARTY_CORE_DIR </span><span style="color: #007700">. </span><span style="color: #DD0000">'core.get_microtime.php'</span><span style="color: #007700">);<br /><br /></span><span style="color: #0000BB">?></span> </span> </code></TD ></TR ></TABLE ></DIV ></TD ></TR ></TABLE ><P > See also <A HREF="language.variables.smarty.html#language.variables.smarty.const" ><TT CLASS="parameter" ><I >$smarty.const</I ></TT ></A > </P ></DIV ><DIV CLASS="NAVFOOTER" ><HR ALIGN="LEFT" WIDTH="100%"><TABLE SUMMARY="Footer navigation table" WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="0" ><TR ><TD WIDTH="33%" ALIGN="left" VALIGN="top" ><A HREF="smarty.constants.html" ACCESSKEY="P" >Prev</A ></TD ><TD WIDTH="34%" ALIGN="center" VALIGN="top" ><A HREF="index.html" ACCESSKEY="H" >Home</A ></TD ><TD WIDTH="33%" ALIGN="right" VALIGN="top" ><A HREF="api.variables.html" ACCESSKEY="N" >Next</A ></TD ></TR ><TR ><TD WIDTH="33%" ALIGN="left" VALIGN="top" >Constants</TD ><TD WIDTH="34%" ALIGN="center" VALIGN="top" ><A HREF="smarty.constants.html" ACCESSKEY="U" >Up</A ></TD ><TD WIDTH="33%" ALIGN="right" VALIGN="top" >Smarty Class Variables</TD ></TR ></TABLE ></DIV ></BODY ></HTML >