TalkPHP

TalkPHP (http://www.talkphp.com/forums.php)
-   Libraries & Extensions (http://www.talkphp.com/libraries-extensions/)
-   -   Smarty output buffering? (http://www.talkphp.com/libraries-extensions/3233-smarty-output-buffering.html)

Aaron 08-11-2008 08:46 PM

Smarty output buffering?
 
I need my output buffering. Without it I am but a shell of a programmer.

Help a person in need!

I tried the documentation with no luck, and google didn't turn up anything for me.

I thought up a way to do it, but it seems like half-assing it.

Kalle 08-11-2008 10:33 PM

What is it exactly you're trying to do? Could you please go abit more in detail, possible code example and tell what problem you're trying to solve

Aaron 08-12-2008 01:05 AM

In php you can do this thing:
PHP Code:

ob_start();
ob_flush(); 

I really really like these functions. However, I cannot use them while using smarty, because the entire template runs through without me being able to interfere. Now, I could split up the template files and cut them where I want to use ob_flush(), but It seems half-assed.

Kalle 08-12-2008 04:48 PM

Well I can't tell, I've never worked with Smarty im afraid =(

delayedinsanity 08-13-2008 09:35 AM

Programming is all about trial and error. If you have an idea, go with it, and usually other options will present themselves.

As for Smarty, Smart is PHP, so I don't see any reason why you can't inject your own code wherever or however you please, but like Kalle, never used it, so...
-m


All times are GMT. The time now is 12:19 PM.

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0