Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

Search found 49 matches
Smarty Forum Index
Author Message
  Topic: Fatal error when calling fetch() on string resource (cache?)
cbj4074

Replies: 1
Views: 4766

PostForum: General   Posted: Thu Dec 26, 2013 6:46 pm   Subject: Fatal error when calling fetch() on string resource (cache?)
Hello,

I can't for the life of me figure out why calling something like this causes a fatal error when Smarty template caching is enabled and the Smarty template cache is empty:


//[...] ...
  Topic: Caching a Smarty XML template causes newlines to be removed
cbj4074

Replies: 9
Views: 14264

PostForum: Bugs   Posted: Mon Aug 12, 2013 3:05 pm   Subject: Caching a Smarty XML template causes newlines to be removed
Great! Thank you for working to establish the cause and for implementing a fix so quickly. I really appreciate it! Very Happy
  Topic: Caching a Smarty XML template causes newlines to be removed
cbj4074

Replies: 9
Views: 14264

PostForum: Bugs   Posted: Fri Aug 09, 2013 7:00 pm   Subject: Caching a Smarty XML template causes newlines to be removed
Thanks, U.Tews.

I'm on Windows 7 x64 SP1 with PHP 5.4.8 (API20100525,TS,VC9).

If necessary, I can test this on my other development box (which runs Ubuntu 12.04 with PHP 5.4.3).

I sent the te ...
  Topic: Caching a Smarty XML template causes newlines to be removed
cbj4074

Replies: 9
Views: 14264

PostForum: Bugs   Posted: Fri Aug 09, 2013 2:55 pm   Subject: Caching a Smarty XML template causes newlines to be removed
Thanks for the quick follow-up, and your willingness to try to implement a fix. I appreciate both.

I'm not using the trimwhitespace output filter (unless it is applied by default).
  Topic: Caching a Smarty XML template causes newlines to be removed
cbj4074

Replies: 9
Views: 14264

PostForum: Bugs   Posted: Fri Aug 09, 2013 1:54 pm   Subject: Caching a Smarty XML template causes newlines to be removed
Thanks, U.Tews. I really appreciate you taking the time to try to reproduce the behavior.

Here's the cached template source that is generated:


<?php /*%%SmartyHeaderCode:57835204f28bba7 ...
  Topic: Caching a Smarty XML template causes newlines to be removed
cbj4074

Replies: 9
Views: 14264

PostForum: Bugs   Posted: Thu Aug 08, 2013 9:11 pm   Subject: Caching a Smarty XML template causes newlines to be removed
It's possible that the behavior I'm observing is related to an old bug ( http://www.smarty.net/forums/viewtopic.php?p=75440 ).

Basically, I am generating an XML document and rendering it using a Sm ...
  Topic: Parsing a string
cbj4074

Replies: 3
Views: 27318

PostForum: Smarty 3   Posted: Tue Jan 29, 2013 7:03 pm   Subject: Parsing a string
Might I suggest adding something about this "trick" to the Examples section of the Smarty Manual's fetch() page at http://www.smarty.net/docs/en/api.fetch.tpl ?

This is an incredibly usef ...
  Topic: User-facing Smarty
cbj4074

Replies: 4
Views: 5160

PostForum: General   Posted: Wed Nov 14, 2012 7:48 pm   Subject: User-facing Smarty
Brilliant; this is perfect. I had overlooked this functionality in Smarty.

Every time I feel inclined to make a feature request, I learn that the functionality already exists.

It seems as though ...
  Topic: User-facing Smarty
cbj4074

Replies: 4
Views: 5160

PostForum: General   Posted: Wed Nov 14, 2012 7:21 pm   Subject: User-facing Smarty
I am interested in doing something very similar, Synchro.

If any of the developers would be so kind as to comment, it would be much appreciated.
  Topic: Prestashop, Smarty 3, google adwords conversion code
cbj4074

Replies: 2
Views: 7411

PostForum: General   Posted: Tue Nov 13, 2012 7:30 pm   Subject: Prestashop, Smarty 3, google adwords conversion code
Well, did you replace your true Adwords ID with "xxxxxxxx" for privacy reasons? Or does your template file say "xxxxxxxx", literally?
  Topic: [Smarty3] random occurring fatal memory
cbj4074

Replies: 18
Views: 66314

PostForum: General   Posted: Tue Nov 13, 2012 5:22 pm   Subject: [Smarty3] random occurring fatal memory

somehow it shows up ~1400 preg_match calls, i have no idea if that is normal or not.


Are you sure that you didn't run the profiling script against a trace file that the profile script itself ge ...
  Topic: google crawl errors
cbj4074

Replies: 4
Views: 5333

PostForum: General   Posted: Mon Nov 12, 2012 10:16 pm   Subject: google crawl errors
My humble opinion is that your Smarty template files should exist outside of the Web-server's document root altogether. There's no reason for your template files to be accessible via HTTP request.
  Topic: Risks inherent to clearCache() and clearAllCache()?
cbj4074

Replies: 2
Views: 4201

PostForum: General   Posted: Mon Nov 12, 2012 10:12 pm   Subject: Risks inherent to clearCache() and clearAllCache()?
Thanks, Mohrt. This is exactly the type of insight that I was seeking. I really appreciate it!
  Topic: Risks inherent to clearCache() and clearAllCache()?
cbj4074

Replies: 2
Views: 4201

PostForum: General   Posted: Mon Nov 12, 2012 9:00 pm   Subject: Risks inherent to clearCache() and clearAllCache()?
Ultimately, I am wondering if there is any fundamental difference between

a.) Calling Smarty's clearAllCache() method.

and

b.) Deleting the cache directory's contents manually, e.g., with &qu ...
  Topic: php include in smarty
cbj4074

Replies: 1
Views: 5288

PostForum: General   Posted: Mon Nov 12, 2012 8:48 pm   Subject: php include in smarty
I would take a completely different approach. You are defeating Smarty's fundamental purpose when you include a PHP file from within a template.

The first step to take is to move all of your markup ...
 
Page 1 of 4 Goto page 1, 2, 3, 4  Next
All times are GMT
Jump to:  


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