mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-04 18:34:27 +02:00
add core to example, add tech note
This commit is contained in:
@@ -183,13 +183,20 @@ $smarty = new Smarty;</screen>
|
|||||||
You will need as least one file under your document root, and that is the
|
You will need as least one file under your document root, and that is the
|
||||||
script accessed by the web browser. We will call our script "index.php",
|
script accessed by the web browser. We will call our script "index.php",
|
||||||
and place it in a subdirectory under the document root called
|
and place it in a subdirectory under the document root called
|
||||||
"/guestbook/". It is convenient to setup the web server so that "index.php"
|
"/guestbook/".
|
||||||
can be identified as the default directory index, so if you access
|
</para>
|
||||||
|
|
||||||
|
<note>
|
||||||
|
<title>Technical Note</title>
|
||||||
|
<para>
|
||||||
|
It is convenient to setup the web server so that "index.php" can be
|
||||||
|
identified as the default directory index, so if you access
|
||||||
"http://www.mydomain.com/guestbook/", the index.php script will be executed
|
"http://www.mydomain.com/guestbook/", the index.php script will be executed
|
||||||
without "index.php" in the URL. In Apache you can set this up by adding
|
without "index.php" in the URL. In Apache you can set this up by adding
|
||||||
"index.php" onto the end of your DirectoryIndex setting (separate each
|
"index.php" onto the end of your DirectoryIndex setting (separate each
|
||||||
entry with a space.)
|
entry with a space.)
|
||||||
</para>
|
</para>
|
||||||
|
</note>
|
||||||
|
|
||||||
<para>
|
<para>
|
||||||
Lets take a look at the file structure so far:
|
Lets take a look at the file structure so far:
|
||||||
@@ -202,6 +209,7 @@ $smarty = new Smarty;</screen>
|
|||||||
/usr/local/lib/php/Smarty/Smarty_Compiler.class.php
|
/usr/local/lib/php/Smarty/Smarty_Compiler.class.php
|
||||||
/usr/local/lib/php/Smarty/Config_File.class.php
|
/usr/local/lib/php/Smarty/Config_File.class.php
|
||||||
/usr/local/lib/php/Smarty/debug.tpl
|
/usr/local/lib/php/Smarty/debug.tpl
|
||||||
|
/usr/local/lib/php/Smarty/core/*.php
|
||||||
/usr/local/lib/php/Smarty/plugins/*.php
|
/usr/local/lib/php/Smarty/plugins/*.php
|
||||||
|
|
||||||
/web/www.mydomain.com/smarty/guestbook/templates/
|
/web/www.mydomain.com/smarty/guestbook/templates/
|
||||||
|
Reference in New Issue
Block a user