Categories > Your tips & tricks >

Zend_Framework and TBS

The forum is closed. Please use Stack Overflow for submitting new questions. Use tags: tinybutstrong , opentbs
Date: 2007-11-14
Time: 15:07

Zend_Framework and TBS

I wanted to evaluate (play) with the Zend_framework but did not want to give up TBS.

I was amazed how easy it is was to integrate. Here's how:

In your bootstrap Index.php file, add the following:
//create TBS engine
include 'library/tbs_class_php5.php';
$tbs = new clsTinyButStrong();
Zend_Registry::set('tiny', $tbs);

then in your controller code you get Tiny as follows:

$tbs =  Zend_Registry::get('tiny');
// Use $bs as normal TBS code

This is my first post so I hope I did it right.
By: golivier
Date: 2007-11-14
Time: 23:07

Re: Zend_Framework and TBS

Hi !

I have create an object for this. see

the tutorial it's in frensh but the source code and sample can help.

Date: 2007-11-15
Time: 00:12

Re: Zend_Framework and TBS

Hi Golivier;

I like your approach for embedding TBS. In my case, I wanted to bypass

Zend View totally and use TBS as the native engine.

It is working well for me so far but I am going to play with your implemention also, just for the fun of it!