Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [ZendFramework]Strona nie istnieje
user123
post 23.09.2009, 15:59:45
Post #1





Grupa: Zarejestrowani
Postów: 231
Pomógł: 2
Dołączył: 2.08.2006
Skąd: Poznań

Ostrzeżenie: (10%)
X----


Witam,

utworzyłem w application/controller plik TestController.php oraz w views/scripts katalog test wraz z plikiem index.phtml ale po wejściu na localhost/.../test otrzymuje komunikat:

An error occurred
Page not found
Exception information:

Message: Action "index" does not exist and was not trapped in __call()
Stack trace:

#0 /home/nertos/public_html/zend/library/Zend/Controller/Action.php(514): Zend_Controller_Action->__call('indexAction', Array)
#1 /home/nertos/public_html/zend/library/Zend/Controller/Dispatcher/Standard.php(288): Zend_Controller_Action->dispatch('indexAction')
#2 /home/nertos/public_html/zend/library/Zend/Controller/Front.php(945): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http))
#3 /home/nertos/public_html/zend/library/Zend/Application/Bootstrap/Bootstrap.php(77): Zend_Controller_Front->dispatch()
#4 /home/nertos/public_html/zend/library/Zend/Application.php(328): Zend_Application_Bootstrap_Bootstrap->run()
#5 /home/nertos/public_html/zend-test/1/public/index.php(26): Zend_Application->run()
#6 {main}


Request Parameters:

array(3) {
["controller"]=>
string(4) "test"
["action"]=>
string(5) "index"
["module"]=>
string(7) "default"
}


co może powodować nieznalezienie index?


--------------------
Youtube - Miedzynarodowa wersja: Wyposażenie siłowni
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi (1 - 3)
seth-kk
post 23.09.2009, 16:34:11
Post #2





Grupa: Zarejestrowani
Postów: 444
Pomógł: 79
Dołączył: 26.05.2009

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


to ze nie udalo sie wywolac metody 'indexAction'


--------------------
Go to the top of the page
+Quote Post
user123
post 23.09.2009, 16:39:13
Post #3





Grupa: Zarejestrowani
Postów: 231
Pomógł: 2
Dołączył: 2.08.2006
Skąd: Poznań

Ostrzeżenie: (10%)
X----


ale akurat IndexAction nie jest mi tutaj potrzebny(chyba, że coś źle myślę), po wejsciu na:


http://127.0.0.1/~user123/zend-test/1/public/
http://127.0.0.1/~user123/zend-test/1/public/guestbook

wszystko działa poprawnie, zaś po wejściu na http://127.0.0.1/~tomek/zend-test/1/public/test, mam błąd, którego treść wkleiłem w poprzednim wpisie

Ten post edytował user123 23.09.2009, 16:40:01


--------------------
Youtube - Miedzynarodowa wersja: Wyposażenie siłowni
Go to the top of the page
+Quote Post
seth-kk
post 23.09.2009, 17:55:56
Post #4





Grupa: Zarejestrowani
Postów: 444
Pomógł: 79
Dołączył: 26.05.2009

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


blad sugeruje ze jest potrzebny, ale ciezko przejzec te 'logike'


--------------------
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 Wersja Lo-Fi Aktualny czas: 23.06.2025 - 03:52