Hi Forum,
coming back to qcodo 0.4.22...
Many things have changed, and I think it's harder to cope with installation/setup than in the old versions I'vr worked with.
But after moving around the one or other directory I've managed to get a proper “start page”.
Now I want to codegen my playground database with cli, qcodo sees the database, but when it wants to create the the directory codegen stops with an error.
Here is the output of qcodo.bat codegen:
CodeGen settings (as evaluted from codegen):
<codegen>
<name application=“ToDos”/>
<templateEscape begin=“<%” end=“%>”/>
<dataSources>
<database index=“1”>
<className prefix=“" suffix=““/>
<associatedObjectName prefix=“" suffix=““/>
<typeTableIdentifier suffix=“_type”/>
<associationTableIdentifier suffix=“_assn”/>
<stripFromTableName prefix=““/>
<excludeTables pattern=“" list=““/>
<includeTables pattern=“" list=““/>
<manualQuery support=“true”/>
<relationships>
</relationships>
<relationshipsScript filepath=“" format=“sql”/>
</database>
</dataSources>
</codegen>
Database Index #1 (MySql Improved Database Adapter for MySQL 5 (MySqli5) / localhost / ToDos)
-------------------------------------------------------------------
There were 3 tables available to attempt code generation:
path: D://xampp/htdocs/../includes/data_classes
================================================ Error in PHP CLI Script - codegen.cli.php ================================================
mkdir(): No such file or directory
----------------------------------------------------------------------------------------------------------------------------------------
Error Type: E_WARNING
Source File: D:\xampp\includes\qcodo\_core\framework\QApplicationBase.class.php; Line: 666
Version Info: PHP v5.3.8; Zend Engine v2.3.0; Qcodo v0.4.22
Operating System: Windows_NT
Call Stack:
#0 (): QErrorHandler::HandleError()
#1 D:\xampp\includes\qcodo\_core\framework\QApplicationBase.class.php(666): mkdir()
#2 D:\xampp\includes\qcodo\_core\framework\QApplicationBase.class.php(660): QApplicationBase::MakeDirectory()
#3 D:\xampp\includes\qcodo\_core\codegen\QCodeGenBase.class.php(365): QApplicationBase::MakeDirectory()
#4 D:\xampp\includes\qcodo\_core\codegen\QCodeGenBase.class.php(295): QCodeGenBase->GenerateFile()
#5 D:\xampp\includes\qcodo\_core\codegen\QDatabaseCodeGen.class.php(480): QCodeGenBase->GenerateFiles()
#6 D:\xampp\includes\qcodo\_core\codegen\QDatabaseCodeGen.class.php(158): QDatabaseCodeGen->GenerateTable()
#7 D:\xampp\cli\scripts\_core\codegen.cli.php(46): QDatabaseCodeGen->GenerateAll()
#8 D:\xampp\cli\qcodo_cli.inc.php(18): require()
Error Report Generated: Thursday, December 22 2011, 4:19:20.55213800 PM CET
Report NOT Logged
I've added an echo to the QApplication file to show the path mkdir fails to create:
path: D://xampp/htdocs/../includes/data_classes
so mkdir should create a folder in the includes folder above the docroot of my xampp installation, but it fails...
I'm confused and would be very thankful for any hint...
thanx in advance
Jan