문제

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.

도움이 되었습니까?

해결책

From Here you can get sample code. Happy Coding

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top