Difference between #2 and #3 of
Integrating FirePHP

Revision #3 has been created by ricardograna on Oct 21, 2010, 3:39:55 AM with the memo:

Added changes for 1.1.x compatibility
« previous (#2)

Changes

Title unchanged

Integrating FirePHP

Category unchanged

Tutorials

Yii version unchanged

Tags unchanged

Content changed

[...]
if (YII_DEBUG){
Yii::import("application.components.FirePHPCore.fb", true);
}
~~~

So, you will have
 (in 1.0.x version)

~~~
[...]
~~~

    (1.1.x version)
 
    ~~~
 
    [php]
 
    $app = Yii::createWebApplication($config); 
 
    if (YII_DEBUG){
 
        Yii::import("application.components.FirePHPCore.fb", true); 
 
    } 
 
    $app->run();
 
    ~~~
 
That's it! Now you can display your variables on FirePHP with a simple 'fb' command inside your PHP code:
```
[php]
fb($my_variable);
~~~
[...]
7 0
6 followers
Viewed: 18 064 times
Version: 1.1
Category: Tutorials
Tags:
Written by: ricardograna
Last updated by: ricardograna
Created on: Oct 5, 2010
Last updated: 13 years ago
Update Article

Revisions

View all history