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: Extended templates and use of $smarty.current_dir/.template
cartbeforehorse

Replies: 3
Views: 3154

PostForum: General   Posted: Tue Feb 23, 2016 11:58 pm   Subject: Extended templates and use of $smarty.current_dir/.template
Your template doesn't exactly says what is the functionality you want to achieve. Knowing real filesystem path is of no concern for template.
If you need some debug data, enable debugging. It will be ...
  Topic: Extended templates and use of $smarty.current_dir/.template
cartbeforehorse

Replies: 3
Views: 3154

PostForum: General   Posted: Mon Feb 22, 2016 4:37 pm   Subject: Extended templates and use of $smarty.current_dir/.template
My code is as follows:

content.tpl:

{* Smarty *}
{extends file='PageContentLayout.tpl'}


PageContentLayout.tpl

{* Smarty *}

{block name="file_n ...
  Topic: Should plugin-functions initiate auto-loading?
cartbeforehorse

Replies: 4
Views: 5699

PostForum: Plugins   Posted: Wed Feb 17, 2016 10:58 pm   Subject: Should plugin-functions initiate auto-loading?
This is a bug.
In your autoloader.
Autoloader MUST NOT throw errors in case it is unable to load something.
You never know, if your loader is last to be called, and you throwing errors prevent any ...
  Topic: Should plugin-functions initiate auto-loading?
cartbeforehorse

Replies: 4
Views: 5699

PostForum: Plugins   Posted: Wed Feb 17, 2016 4:41 pm   Subject: Should plugin-functions initiate auto-loading?
Smarty version 3.1.29.

My application has an auto-loader function which which I put on the PHP auto-load stack with spl_autoload_register(). This works fine on the whole (and worked fine in older ...
 
Page 1 of 1
All times are GMT
Jump to:  


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