Dougal
Dougal

Reputation: 1067

Zend Framework's "zf" CLI tool - why nothing from quickstart works?

I am going through the Zend Framework "quickstart" tutorial at the mo'.

I have PHP and Zend Server Framework on my Ubuntu machine (all installed from Synaptic).

The following zf usage has worked.

zf create project projectToCreate

But, after that, nothing works! For example:

zf enable layouts (it moans "Action 'enable' is not a valid action.")

zf configure db-adapter blahblah (it moans "Action 'configure' is not a valid action.")

SO, my question is, is this an error in the tutorial or is there something fishy with my installation of Zend Framework? If so, any hints are appreciated.

Thank you.

Upvotes: 2

Views: 423

Answers (2)

Satya Prakash
Satya Prakash

Reputation: 3502

It all happening due to XAMPP's version of Zend tool. Remove the Zend folder in php/PEAR/ and also overwrite files at php/ (where php.exe reside) from ZendFramework\bin*.

Upvotes: 0

Iznogood
Iznogood

Reputation: 12843

After you create the project try changing directory to projectToCreate.

cd projectToCreate

I think on linux

Then run your zf commands.

Upvotes: 3

Related Questions