codeigniter - doctrine Command Line Interface doesn't work -


i followed instructions on page : http://www.doctrine-project.org/projects/orm/1.2/docs/cookbook/code-igniter-and-doctrine/en

i did things command line interface doesn't work me

when execute doctrine shell script in terminal show me this

define('basepath','.'); // mockup app executed ci ;) chdir(dirname(__file__)); include('doctrine.php'); 

instead of real result :

$ cd system/application $ ./doctrine 

doctrine command line interface

./doctrine build-all ./doctrine build-all-load ./doctrine build-all-reload ./doctrine compile ./doctrine create-db ./doctrine create-tables ./doctrine dql ./doctrine drop-db ./doctrine dump-data ./doctrine generate-migration ./doctrine generate-migrations-db ./doctrine generate-migrations-models ./doctrine generate-models-db ./doctrine generate-models-yaml ./doctrine generate-sql ./doctrine generate-yaml-db ./doctrine generate-yaml-models ./doctrine load-data ./doctrine migrate ./doctrine rebuild-db 

i don't know why?

the first line needs tell script php can found , following written in php

so if have file called doctrine.sh, can place following inside (note first line , opening+closing php tags - had same problem)

#!/usr/bin/env php  <?php   define('basepath','.'); // mockup app executed ci ;)  include(dirname(dirname(__file__)) . '/libs/doctrine/doctrine.php'); ?> 

doctrine.php looks 1 link posted


Comments

Popular posts from this blog

c++ - Convert big endian to little endian when reading from a binary file -

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

unicode - Are email addresses allowed to contain non-alphanumeric characters? -