2

I just installed yii jasPHP extenstion for reporting my application. I need some guide or example to use more. I can send a string to pdf. But I need a complete table from database.

How can I do that... ? please help me out

My Controller

public function actionReport()
{
    //$s = 'Welcome to review reports as well';
    $q = 'SELECT email FROM users where ID = 1';
    $cmd = Yii::app()->db->createCommand($q);
    $result = $cmd->queryScalar();

    Yii::app()->jasPHP->create(getcwd() . '/reports/', 'report1.jrxml', array('title' => $result,));
}

please let me know some examples.

BenMorel
  • 34,448
  • 50
  • 182
  • 322
Selim Reza
  • 372
  • 8
  • 20
  • Refer this [tutorial](http://www.yiiframework.com/extension/jasphp/). read comment sections. – Kumar V Dec 18 '13 at 10:47
  • I am not getting any solutions / examples from there. Could you please provide me some idea to do that ? – Selim Reza Dec 18 '13 at 10:59
  • 1
    for reporting tool this is not working for large amount of reporting. I got a better solution for my application that is : Reportico php open source reporting tool. This is OK for me – Selim Reza Dec 28 '13 at 05:10

1 Answers1

0

From Here you can get sample code. Happy Coding

shivaP
  • 299
  • 1
  • 2
  • 12