Categories > TinyButStrong general >

How to handle error TBS-> MergeBlock ()

The forum is closed. Please use Stack Overflow for submitting new questions. Use tags: tinybutstrong , opentbs
By: Cavanha
Date: 2009-12-30
Time: 12:43

How to handle error TBS-> MergeBlock ()

Okay people, I would like to know how to handle errors generated at run-time of $ TBS-> MergeBlock (), for example

try (
throw new Exception ()
)
catch () (
)

because I can try to do a treatment of exessões or errors within PHP, you have some example used in the implementation of the $ TBS-> MergeBlock ()?

I am waiting for hugs.
By: Skrol29
Date: 2010-01-01
Time: 22:27

Re: How to handle error TBS-> MergeBlock ()

Hi Cavanha,

Property NoErr and special field [onshow..error_msg] are probably what you need.
http://www.tinybutstrong.com/manual.php#php_noerr
By: Cavanha
Date: 2010-01-02
Time: 13:07

Re: How to handle error TBS-> MergeBlock ()

I thank you much for your help, more abusing a little more, you have an example of the use of [.. onshow error_msg], because in PHP with try () der error if I call a screen shows the occurrence in a user-friendly, and the [.. onshow error_msg] to do that?
By: Skrol29
Date: 2010-01-03
Time: 23:19

Re: How to handle error TBS-> MergeBlock ()

Hi,

[onshow..error_msg] displays only TBS error message relative to the template merging. PHP error are not cached this way.

HTML example
[onload.zzz] (variable $zzz should not exist for this example)

[onshow..error_msg]