TalkPHP
 
 
Account Login
Latest Articles
» The basic usage of PHPTAL, a XML/XHTML template library for PHP
» Vulnerable methods and the areas they are commonly trusted in.
» Simple way to protect a form from bot
» The Basics On: How Session Stealing Works
» How to keep your forms from double posting data
Advertisement
Associates
Associates
techtuts Darkmindz
CSS Tutorials Tutorialsphere.com - Free Online Tutorials
Boston PHP SurfnLearn
Reply
 
LinkBack Thread Tools Display Modes
Old 08-11-2008, 09:46 PM   #1 (permalink)
The Frequenter
 
Join Date: Dec 2007
Location: In my basement
Posts: 368
Thanks: 44
Aaron is on a distinguished road
Default 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.
__________________

I feel better hating IE.
Send a message via MSN to Aaron
Aaron is offline  
Reply With Quote
Old 08-11-2008, 11:33 PM   #2 (permalink)
The Addict
Zend Certified 
 
Join Date: Sep 2007
Location: Denmark
Posts: 240
Thanks: 5
Kalle is on a distinguished road
Default

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
__________________
Send a message via MSN to Kalle Send a message via Skype™ to Kalle
Kalle is offline  
Reply With Quote
Old 08-12-2008, 02:05 AM   #3 (permalink)
The Frequenter
 
Join Date: Dec 2007
Location: In my basement
Posts: 368
Thanks: 44
Aaron is on a distinguished road
Default

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.
__________________

I feel better hating IE.
Send a message via MSN to Aaron
Aaron is offline  
Reply With Quote
Old 08-12-2008, 05:48 PM   #4 (permalink)
The Addict
Zend Certified 
 
Join Date: Sep 2007
Location: Denmark
Posts: 240
Thanks: 5
Kalle is on a distinguished road
Default

Well I can't tell, I've never worked with Smarty im afraid =(
__________________
Send a message via MSN to Kalle Send a message via Skype™ to Kalle
Kalle is offline  
Reply With Quote
Old 08-13-2008, 10:35 AM   #5 (permalink)
The Gregarious
 
delayedinsanity's Avatar
 
Join Date: Mar 2008
Location: Cana'derr
Posts: 653
Thanks: 24
delayedinsanity is on a distinguished road
Default

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
delayedinsanity is offline  
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


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

 
     

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