Hej Chris Morrell 

Den Sat, 20 Mar 2010 11:22:52 -0400 sendte du en mail til mig, angÄende
Re: [fw-general] Zend_Tool doesn't find my providers

>You now have to add custom providers in the ZF config file.  Edit ~/.zf.ini
>and add:
>
>php.include_path =
>".:/path/to/zf/library:/path/to/your-tool/library:/path/to/pear"
>basicloader.classes.1 = "Your_Tool_Project_Provider_Manifest"

That did it!

However, with a few problems .....

My provider now looks like:
<?php
require_once 'Zend/Tool/Framework/Provider/Interface.php';

class HelloProvider
  implements Zend_Tool_Framework_Provider_Interface
{
  public function say()
  {
      echo 'Hello from your provider!';
  }
}

And is added to my .zf.ini:

basicloader.classes.1 = "HelloProvider"

But, when running zf --help the output is:

  ello
    zf say ello

Why is it eating the H ? A bug?

Also, if my .zf.ini looks like:

basicloader.classes[] = "HelloProvider"

This provider is not found. Shouldn't you be able to specify arrays like
this in ini-configfiles?


But thanks for pointing me in the right direction - now at least I can
get my providers working.

-- 
Mads Lie Jensen - [email protected] - ICQ #25478403
Gartneriet - http://www.gartneriet.dk/

Reply via email to