Quantcast

Zend_Tool: zf create action doesn't work

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Zend_Tool: zf create action doesn't work

akrabat
Hi,

Using svn trunk (revision 15159) Anyone else seeing this problem with  
zf create action:


$ zf create project zftest
Creating project at /www/tmp/zftest

$ cd zftest/
$ zf create action test

Fatal error: Class 'Zend_Controller_Action' not found in /www/tmp/
zftest/application/controllers/IndexController.php on line 3

Call Stack:
     0.0011      75992   1. {main}() /usr/local/ZendFramework/bin/
zf.php:0
     0.0087     581304   2.  
Zend_Tool_Framework_Client_Console::main() /usr/local/ZendFramework/
bin/zf.php:77
     0.0087     581384   3. Zend_Tool_Framework_Client_Abstract-
 >dispatch() /usr/local/ZendFramework/library/Zend/Tool/Framework/
Client/Console.php:86
     0.4661    3456136   4. Zend_Tool_Framework_Client_Abstract-
 >_handleDispatch() /usr/local/ZendFramework/library/Zend/Tool/
Framework/Client/Abstract.php:210
     0.4662    3458616   5. call_user_func_array() /usr/local/
ZendFramework/library/Zend/Tool/Framework/Client/Abstract.php:291
     0.4662    3458616   6. Zend_Tool_Project_Provider_Action-
 >create() /usr/local/ZendFramework/library/Zend/Tool/Framework/Client/
Abstract.php:0
     0.4662    3460168   7. Zend_Tool_Project_Provider_Abstract-
 >_loadProfile() /usr/local/ZendFramework/library/Zend/Tool/Project/
Provider/Action.php:37
     0.4663    3460440   8. Zend_Tool_Project_Profile->loadFromFile() /
usr/local/ZendFramework/library/Zend/Tool/Project/Provider/
Abstract.php:116
     0.4665    3463784   9. Zend_Tool_Project_Profile_FileParser_Xml-
 >unserialize() /usr/local/ZendFramework/library/Zend/Tool/Project/
Profile.php:179
     0.4715    3504400  10. Zend_Tool_Project_Profile_FileParser_Xml-
 >_lazyLoadContexts() /usr/local/ZendFramework/library/Zend/Tool/
Project/Profile/FileParser/Xml.php:110
     0.4723    3505104  11. Zend_Tool_Project_Profile_Resource-
 >initializeContext() /usr/local/ZendFramework/library/Zend/Tool/
Project/Profile/FileParser/Xml.php:217
     0.4723    3505688  12. Zend_Tool_Project_Context_Zf_ActionMethod-
 >init() /usr/local/ZendFramework/library/Zend/Tool/Project/Profile/
Resource.php:226
     0.4724    3506688  13.  
Zend_Tool_Project_Context_Zf_ActionMethod::hasActionMethod() /usr/
local/ZendFramework/library/Zend/Tool/Project/Context/Zf/
ActionMethod.php:87
     0.4724    3506776  14.  
Zend_CodeGenerator_Php_File::fromReflectedFileName() /usr/local/
ZendFramework/library/Zend/Tool/Project/Context/Zf/ActionMethod.php:194
     0.4728    3534856  15. include('/www/tmp/zftest/application/
controllers/IndexController.php') /usr/local/ZendFramework/library/
Zend/CodeGenerator/Php/File.php:120




Regards,

Rob ...
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Zend_Tool: zf create action doesn't work

Mario Guenterberg-3
On So, Apr 26, 2009 at 08:54:26 +0100, Rob Allen wrote:

> Hi,
>
> Using svn trunk (revision 15159) Anyone else seeing this problem with zf
> create action:
>
>
> $ zf create project zftest
> Creating project at /www/tmp/zftest
>
> $ cd zftest/
> $ zf create action test
>
> Fatal error: Class 'Zend_Controller_Action' not found in /www/tmp/
> zftest/application/controllers/IndexController.php on line 3

Hi Rob,

I got the same error with Rev. 15149 from yesterday.

Greetings Mario

--
-----BEGIN GEEK CODE BLOCK-----
Version: 3.12
GCS/CM d- s++: a+ C++++>$ UBL*++++$ P++ L+++ E--- W+++ N+ o-- K- w O- M-
V-- PS++ PE++ Y PGP+++ t--- 5 X++++ R++ tv- b+++ DI D++++  G++ e* h----
r+++ y++++
------END GEEK CODE BLOCK------
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Zend_Tool: zf create action doesn't work

weierophinney
Administrator
In reply to this post by akrabat
-- Rob Allen <[hidden email]> wrote
(on Sunday, 26 April 2009, 08:54 AM +0100):

> Using svn trunk (revision 15159) Anyone else seeing this problem with zf
> create action:
>
>
> $ zf create project zftest
> Creating project at /www/tmp/zftest
>
> $ cd zftest/
> $ zf create action test
>
> Fatal error: Class 'Zend_Controller_Action' not found in /www/tmp/
> zftest/application/controllers/IndexController.php on line 3

Ralph confirmed this on Friday, and if he doesn't have a fix in yet, he
should have one in sometime today.

Basically, with the advent of Zend_Application, we don't need to use
require_once statement within our controllers (since autoloading is on
by default). The trick, then, is getting autoloading setup correctly per
your application when doing class reflection -- which is what Ralph is
working on.

--
Matthew Weier O'Phinney
Project Lead            | [hidden email]
Zend Framework          | http://framework.zend.com/
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Zend_Tool: zf create action doesn't work

akrabat

On 26 Apr 2009, at 16:44, Matthew Weier O'Phinney wrote:

> Basically, with the advent of Zend_Application, we don't need to use
> require_once statement within our controllers (since autoloading is on
> by default). The trick, then, is getting autoloading setup correctly  
> per
> your application when doing class reflection -- which is what Ralph is
> working on.

That make sense. I wondered if it was related to the zf create project  
problem, but then wasn't sure as that got fixed :)

Regards,

Rob...
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Zend_Tool: zf create action doesn't work

Ralph Schindler-2
In reply to this post by Mario Guenterberg-3
Can you try r15204 from trunk?  I think all these problems are solved now :)

-ralph

Mario Guenterberg wrote:

> On So, Apr 26, 2009 at 08:54:26 +0100, Rob Allen wrote:
>> Hi,
>>
>> Using svn trunk (revision 15159) Anyone else seeing this problem with zf
>> create action:
>>
>>
>> $ zf create project zftest
>> Creating project at /www/tmp/zftest
>>
>> $ cd zftest/
>> $ zf create action test
>>
>> Fatal error: Class 'Zend_Controller_Action' not found in /www/tmp/
>> zftest/application/controllers/IndexController.php on line 3
>
> Hi Rob,
>
> I got the same error with Rev. 15149 from yesterday.
>
> Greetings Mario
>
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Zend_Tool: zf create action doesn't work

Ralph Schindler-2
In reply to this post by akrabat
Hey Rob,

can you try r15204 in trunk?

-ralph

Rob Allen wrote:

>
> On 26 Apr 2009, at 16:44, Matthew Weier O'Phinney wrote:
>
>> Basically, with the advent of Zend_Application, we don't need to use
>> require_once statement within our controllers (since autoloading is on
>> by default). The trick, then, is getting autoloading setup correctly per
>> your application when doing class reflection -- which is what Ralph is
>> working on.
>
> That make sense. I wondered if it was related to the zf create project
> problem, but then wasn't sure as that got fixed :)
>
> Regards,
>
> Rob...
>
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Zend_Tool: zf create action doesn't work

Mario Guenterberg-3
In reply to this post by Ralph Schindler-2
On Mo, Apr 27, 2009 at 11:47:05 -0500, Ralph Schindler wrote:
> Can you try r15204 from trunk?  I think all these problems are solved now :)
>
> -ralph
>

Done! And it works fine ... :-)

Thanks...

Mario

--
-----BEGIN GEEK CODE BLOCK-----
Version: 3.12
GCS/CM d- s++: a+ C++++>$ UBL*++++$ P++ L+++ E--- W+++ N+ o-- K- w O- M-
V-- PS++ PE++ Y PGP+++ t--- 5 X++++ R++ tv- b+++ DI D++++  G++ e* h----
r+++ y++++
------END GEEK CODE BLOCK------
Loading...