Smarty Forum Index Smarty
The discussions here are for Smarty, a template engine for the PHP programming language.

Search found 4 matches
Smarty Forum Index
Author Message
  Topic: How to reference SETUP.php from a extended folder
mensi

Replies: 6
Views: 9620

PostForum: Smarty Development   Posted: Thu Jul 22, 2004 12:46 am   Subject: How to reference SETUP.php from a extended folder
Try using absolute paths

If you want to do so without knowing the base dir you can do it this way:
include dirname(__FILE__).'/realtive/path/to/file.php';

And here a further hint for you
Remem ...
  Topic: mssql/ntext
mensi

Replies: 4
Views: 8862

PostForum: Smarty Development   Posted: Wed Jun 30, 2004 5:18 pm   Subject: mssql/ntext
check out the comments for mssql functions @ php.net

I think I saw something about setting the max char limit there...
  Topic: mssql/ntext
mensi

Replies: 4
Views: 8862

PostForum: Smarty Development   Posted: Wed Jun 30, 2004 11:24 am   Subject: mssql/ntext
your question should be: "How can I retrieve a ntext value from a MS SQL DB with php?"

I solved this by casting the ntext field to a varchar or text field...
  Topic: foreach and php5 iterators problem & solution
mensi

Replies: 0
Views: 5968

PostForum: Smarty Development   Posted: Tue Jun 29, 2004 12:59 am   Subject: foreach and php5 iterators problem & solution
I noticed that the current parsing of the {foreach} function casts the from parameter to an array so that it's impossible to use php5's iterators on objects.

A quick and perhaps dirty workaround fo ...
 
Page 1 of 1
All times are GMT
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP