Code Generation

thread: 7 messages  |  last: a year ago  |  started: wednesday, march 31, 2010, 12:58 pm pdt


#1  |  phpcoder India
Wednesday, March 31, 2010, 12:58 PM PDT

Hi

I am new in php. I have downaloded qcodo-0.4.14 and trying to build a sample application.
I create all steps according to documentation and Readme files

my qcodo location is
C:\wamp\www\qcodo\cli
C:\wamp\www\qcodo\includes
C:\wamp\www\qcodo\www
-----------------------------------------------------------
Created configuration files and setting according to this link

http://www.qcodo.com/wiki/guide/getting_started

-----------------------------------------------------------
Configuration file information is
switch (SERVER_INSTANCE) {
   case 'dev':
       define ('__DOCROOT__', 'C:/wamp/www/qcodo/www');
       define ('__VIRTUAL_DIRECTORY__', '');
       define ('__SUBDIRECTORY__', '');
       define('DB_CONNECTION_1', serialize(array(
           'adapter' => 'SqlServer',
           'server' => 'localhost',
           'port' => null,
           'database' => 'global_sample',
           'username' => 'sa',
           'password' => 'pwd123#',
           'profiling' => false)));
       break;

--------------------------------------------------------
My SQL Server database contain sample database
http://examples.qcodo.com/examples/view_source.php/0/1/sql_server.sql

---------------------------------------------------------
Ececuted following command

C:\wamp\www\qcodo\cli\qcodo.bat

---------------------------------------------------------

copy all scripts to scripts folder and executed only

qcodo codegen.cli.php

---------------------------------------------------------

after these when I open this http://localhost/qcodo/www/ link I am getting this message
--
Qcodo Development Framework
Start Page

It worked!

If you are seeing this, then it means that the framework has been successfully installed.


Make sure your database connection properties are up to date, and then you can add tables to your database. To codegen, you will want to run the codegen using the qcodo codegen CLI tool from the command-line:

$ C:/wamp/www/qcodo/www/../cli/qcodo codegen --help
After codegenning, you can use either of the following tools to view the “generated” draft pages of your database application:
/drafts - to view the generated Form Drafts of your database
/drafts/dashboard - to view the generated Panel Drafts “dashboard” of your database
For more information, please go to the Qcodo website at: http://www.qcodo.com/


---------------------------------------

How do I generate classes for given database, am I missing any thing?

Thanks in advance

-Mohan

#2  |  Mike Ho (Sunnyvale, CA) United States of America Qcodo Administrator
Thursday, April 1, 2010, 12:28 PM PDT

When you ran the qcodo.bat codegen in the shell, what response did you get?

#3  |  phpcoder India
Thursday, April 8, 2010, 7:50 AM PDT

Now its working
I was using wrong way to generate the code

Thanks

#4  |  Leonardo (Minas Gerais) Brazil
Friday, April 9, 2010, 5:49 AM PDT

Hello, I'm enjoying this topic, to know one thing.

In CodeGen now, so it works from the command line before it could be a hit for the web page. QPM there any way you can switch to old

#5  |  Gaspar Attila (Odorheiu Secuiesc, RO) Romania
Friday, April 9, 2010, 9:15 AM PDT

Hello Leonardo,

From v0.4.14 the old web based codegen is in:
/assets/php/_core/codegen.php

I tested it, and works.

Attila

#6  |  kentpachi (France, EU) France
Sunday, April 11, 2010, 10:02 AM PDT

Maybe it's workin, but mine is askin for codegen.xml which seems to have disapeared

Weird

#7  |  kentpachi (France, EU) France
Sunday, April 11, 2010, 10:06 AM PDT

Well, i renamed the xml-dist to .xml in settings and worked like a charm



Copyright © 2005 - 2012, Quasidea Development, LLC
This open-source framework for PHP is released under the terms of The MIT License.