Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> [ZendFramework] + netbeans, register provider
bmL
post
Post #1





Grupa: Zarejestrowani
Postów: 301
Pomógł: 25
Dołączył: 15.07.2007
Skąd: Olsztyn

Ostrzeżenie: (0%)
-----


Witam, po kliknięciu register provider otrzymuję takie komunikaty:
enable config provider...
Kod
                        User has no config file.                        
                          An Error Has Occurred                        
Client has no persistent configuration.                                

Zend Framework Command Line Console Tool v1.11.3
Details for action "Enable" and provider "Config"
  Config
    zf enable config
    zf enable config.manifest class-name
    zf enable config.provider class-name

create config
Kod
                          An Error Has Occurred                        
Cannot detect user home directory, set ZF_HOME enviroment variable.    

Zend Framework Command Line Console Tool v1.11.3
Details for action "Create" and provider "Config"
  Config
    zf create config

Próbowałem dodawać do httpd.conf
Kod
SetEnv ZF_HOME ********\Zend\ZendServer\share\ZendFramework

Nie wiem czy w ogóle od dobrej strony próbuję to ugryźć... w skryptach mam normalnie dostęp do tej zmiennej którą tu ustawiłem przez getenv...
Jak tworzę nowy projekt w netbeans to wszystko jest ok ale po wybraniu Zend -> execute comand lista jest pusta :/


--------------------
Tutaj miał być jakiś mądry tekst. Miał być... No ale jest głupi tekst.
Go to the top of the page
+Quote Post
IceManSpy
post
Post #2





Grupa: Zarejestrowani
Postów: 1 006
Pomógł: 111
Dołączył: 23.07.2010
Skąd: Kraków

Ostrzeżenie: (0%)
-----


"Cannot detect user home directory, set ZF_HOME enviroment variable."
Dodałeś do zmiennej systemowej ścieżkę do php i do folderu, gdzie znajduje się zf.bat ?

Np tutaj jest opis:
http://www.bogartcomputing.com/web-program...orial-revision/
http://www.kilinjal.com/blog/how-configure...beans?page=show

Ten post edytował IceManSpy 10.07.2011, 17:14:30


--------------------
Go to the top of the page
+Quote Post
bmL
post
Post #3





Grupa: Zarejestrowani
Postów: 301
Pomógł: 25
Dołączył: 15.07.2007
Skąd: Olsztyn

Ostrzeżenie: (0%)
-----


tak obie ścieżki dodane. Instalowałem Zend server i on to dodaje podczas instalacji. W wierszu poleceń mogę używać komend php i zf. jest tylko ten dziwny błąd. Zapomniałem dodać, że pojawił się w NB 7. W 6.9 go nie było. Ale nie wygląda na to żeby ktoś jeszcze miał ten problem po wynikach w google :/

EDIT:

dobra nie wytrzymałem i zmodyfikowałem ręcznie metodę która pobierała tą ścieżkę ZF_HOME...
Kod
/**
     * @return string
     */
    protected function _detectHomeDirectory()
    {
        return 'C:\Users\bmL';
        $envVars = array("ZF_HOME", "HOME", "HOMEPATH");
        foreach($envVars AS $env) {
            $homeDirectory = getenv($env);
            if ($homeDirectory != false && file_exists($homeDirectory)) {
                return $homeDirectory;
            }
        }
        require_once "Zend/Tool/Framework/Exception.php";
        throw new Zend_Tool_Framework_Exception("Cannot detect user home directory, set ZF_HOME enviroment variable.");
    }

o dziwo działa...

Ten post edytował bmL 11.07.2011, 13:53:30


--------------------
Tutaj miał być jakiś mądry tekst. Miał być... No ale jest głupi tekst.
Go to the top of the page
+Quote Post
MaxRipper
post
Post #4





Grupa: Zarejestrowani
Postów: 35
Pomógł: 2
Dołączył: 19.08.2003
Skąd: Białystok

Ostrzeżenie: (0%)
-----


Cytat(bmL @ 10.07.2011, 17:45:32 ) *
Witam, po kliknięciu register provider otrzymuję takie komunikaty:
enable config provider...


Solution > http://pokazywarka.pl/zend-netbeans-provider/ smile.gif


--------------------
eNetwiz.com - Technologie dla biznesu
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 21.08.2025 - 05:45