PRADO is a component-based and event-driven programming framework for developing Web applications in PHP 5. A primary goal of PRADO is to enable maximum reusability in Web programming. To achieve the above goal, PRADO stipulates a protocol of writing and using components to construct Web applications.
So I start to learn how to use it. I am using WAMP server and Windows Vista. Everything was perfect; I make some pages with end-user activities, and good looking. And I was as happy as a baby seeing his mother, because the most code is object-oriented and it use component-based methodology.
But when I tried to create Active Record Classes, using prado-cli.php, it generates me the next error: Fatal error: Class ‘PDO’ not found in TDbConnection.php.
c:\wamp\www\helloworld>c:\wamp\php\php.exe c:\wamp\www\framework\prado-cli.php shell .
Command line tools for Prado 3.1.1.
Fatal error: Class ‘PDO’ not found in c:\wamp\www\framework\Data\TDbConnection.php on line 169
Although I’ve firstly changed the PHP settings in the WAMP Manager to use PDO, and secondly restarted Apache – it still did not work.
Basically the WAMP, has two PHP configuration files, located at:
And I changed the file “\wamp\php\php.ini”, by removing the comments at the following lines:
Finally I tried again to use prado-cli.php for creating Active Record Classes, and … it worked perfectly.