Hello friends, I'm from Brazil and I'm having trouble running the connection to the MySQL database ... Below is the error and my configuration file, hugs and thanks in advance!
D:\wamp\www>php d:/wamp/www/prado-3.1.6/framework/prado-cli.php shell www/pradoc
ontato
Command line tools for Prado 3.1.6.
+-----------------------------------------------------------------------------+
** Unable to load PRADO application in directory "www/pradocontato".
+-----------------------------------------------------------------------------+
PHP-Shell - Version 0.3.1
(c) 2006, Jan Kneschke <jan@kneschke.de>
>> use '?' to open the inline help
>> generate contato Application.database.ContatoRecord
Parse error: syntax error, unexpected T_STRING in D:\wamp\www\prado-3.1.6\framew
ork\3rdParty\PhpShell\php-shell-cmd.php(51) : eval()'d code on line 1
false
>>
Application.xml
<?xml version="1.0" encoding="utf-8"?>
<application id="pradocontato" mode="Debug">
<paths>
<using namespace="Application.database.*" />
</paths>
<modules>
<module id="db" class="System.Data.TDataSourceConfig">
<database ConnectinString="mysql:host=localhost;dbname=prado" username="root" password="" />
</module>
<module class="System.Data.ActiveRecord.TActiveRecordConfig" ConnectionID="db" />
</modules>
<services>
<service id="page" class="TPageService" DefaultPage="Home" />
</services>
</application>