Jump to content


Member Since 05 Jan 2013
Offline Last Active Jan 12 2013 08:02 PM

Topics I've Started

Some basic questions

06 January 2013 - 07:28 PM

I am new to Yii and Zurmo and would like to know couple of things:
1- Whatever url I use, the application is redirected to the login page, which part of the code is responsible for that? how to add additional pages before the user go directly to the login page?
2- In the customization example of zoo module, the view pages don't contain any HTML code, would it be possible to have a customized templates and javascript for the view pages of new modules?
3- In the zoo module example actionCreate function in the controller doesn't read the posted data when the form submits back, how is the follow of the application? the view doesn't return back to the controller after submit?!
4- Does the updateSchema command effect the old data in the database? or it just reads the classes in the model directory and based on it changing the DB schema?

Thank you for answering..

DBConnection error while using PHPUnit

05 January 2013 - 09:45 AM

After following the steps to install Zurmo on MAC OS and creating two database accounts, the system worked perfectly using the browser. However, I am not able to perform unit tests using PHPUnit.
I have set the parameters in perInstanceTest.php and when running this command:
>>phpunit TestSuite.php All

I receive the following error:

Fatal error: Uncaught exception 'CDbException' with message 'CDbConnection failed to open the DB connection: could not find driver' in /Library/WebServer/Documents/projects/zurmo/yii/framework/db/CDbConnection.php:382

I have tested successfully the PDO and MySQL settings using couple of examples from http://php.net/manua...connections.php


Trying another test like >> phpunit PDOTest.php
I receive this error:
Fatal error: Class 'BaseTest' not found in /Library/WebServer/Documents/projects/zurmo/app/protected/tests/unit/PDOTest.php on line 29

I have no clue what could be the problem, specially that the Web application is working without any problem.

Thank you for helping