Thanks for your reply.
This has become a headache. I have two computers, a laptop and a desktop. I originally had AMP setup on both, but when I started running into the Zend setup issues I've mentioned above, I decided to try another route on my laptop and use WAMP only to run into the same exact issue - 'zf' command attempted to open a code editor.
I followed the instructions here:
http://framework.zend.com/manual/en/zen ... itool.html as well as your instructions (which were the same really) and I'm still getting the same problem regardless. A fellow coder offered a suggestion that actually worked but not exactly.
He stated:
My first thought is that if running from the command line, you need to actually invoke PHP and pass the zf.php file as the argument:
- Code: Select all
> cd \directory\where\zf.php\lives
> php zf.php
When I did this, it laid out the same information in the CLI tool as the command 'zf' would lay out with the exception of an error that reads like this:
- Code: Select all
An Error Has Occurred
An action and provider is required.
Zend Framework Command Line Console Tool v1.11.12
Usage:
zf [--global-opts] action-name [--action-opts] provider-name [--provider-opt
s] [provider parameters ...]
Note: You may use "?" in any place of the above usage string to ask for more
specific help information.
Example: "zf ? version" will list all available actions for the version prov
ider.
Providers and their actions:
Version
zf show version mode[=mini] name-included[=1]
Note: There are specialties, use zf show version.? to get specific help on t
hem.
Config
zf create config
zf show config
zf enable config
Note: There are specialties, use zf enable config.? to get specific help on
them.
zf disable config
Note: There are specialties, use zf disable config.? to get specific help on
them.
Phpinfo
zf show phpinfo
Manifest
zf show manifest
Profile
zf show profile
Project
zf create project path name-of-profile file-of-profile
zf show project
Note: There are specialties, use zf show project.? to get specific help on t
hem.
Application
zf change application.class-name-prefix class-name-prefix
Model
zf create model name module
View
zf create view controller-name action-name-or-simple-name module
Controller
zf create controller name index-action-included[=1] module
Action
zf create action name controller-name[=Index] view-included[=1] module
Module
zf create module name
Form
zf enable form module
zf create form name module
Layout
zf enable layout
zf disable layout
DbAdapter
zf configure db-adapter dsn section-name[=production]
DbTable
zf create db-table name actual-table-name module force-overwrite
Note: There are specialties, use zf create db-table.? to get specific help o
n them.
ProjectProvider
zf create project-provider name actions
I'm not even sure what to do at this point. I want to learn Zend and not any other framework.