Comments (9)
It looks like you used Zf2for1\Application\Zf2Bootstrap. This bootstrap is an override that actually runs zf2 application and it is not meant to be used in zf1 application.
Its purpose is to allow smooth gradual refactoring to full zf2 app after initial switch.
from zf2-for-1.
Thanks for writing . I got another error .
Fatal error: Uncaught exception 'Zend_Application_Bootstrap_Exception' with message 'Unable to resolve plugin "zf2"; no corresponding plugin with that name' in /var/www/zf2-for-1-example/vendor/zendframework/zendframework1/library/Zend/Application/Bootstrap/BootstrapAbstract.php:330 Stack trace: #0 /var/www/zf2-for-1-example/vendor/zendframework/zendframework1/library/Zend/Application/Bootstrap/BootstrapAbstract.php(314): Zend_Application_Bootstrap_BootstrapAbstract->getPluginResource('zf2') #1 /var/www/zf2-for-1-example/vendor/roave/Zf2for1/src/Zf2for1/Application/Zf2Bootstrap.php(27): Zend_Application_Bootstrap_BootstrapAbstract->hasPluginResource('zf2') #2 /var/www/zf2-for-1-example/vendor/zendframework/zendframework1/library/Zend/Application.php(325): Zf2for1\Application\Zf2Bootstrap->__construct(Object(Zend_Application)) #3 /var/www/zf2-for-1-example/vendor/zendframework/zendframework1/library/Zend/Application.php(184): Zend_Application->setBootstrap('/var/www/zf2-fo...', 'Bootstrap') #4 /var/www/zf2-for-1-example/ve in /var/www/zf2-for-1-example/vendor/zendframework/zendframework1/library/Zend/Application/Bootstrap/BootstrapAbstract.php on line 330
Could you please let me know what's going on. How do i resolve this and use zf2 form in zf1 application.
from zf2-for-1.
have you registered it in application config?
resources.zf2 =
from zf2-for-1.
Sorry , Are you talking about application.ini right?. If so , Here is my configs/application.ini
[production]
phpSettings.display_startup_errors = 0
phpSettings.display_errors = 0
phpSettings.date.timezone = "UTC"
; bootstrap
bootstrap.path = APPLICATION_PATH "/Bootstrap.php"
bootstrap.class = "Bootstrap"
; namespace for the Zend_Application_Module_Autoloader
appnamespace = ""
; provide path to resources required to initialize Zf2for1
pluginpaths.Zf2for1_Resource = APPLICATION_PATH "/../vendor/roave/zf2for1/src/Zf2for1/Resource"
;config options with defaults
resources.zf2.zf2_path = APPLICATION_PATH "/../vendor/zendframework/library/Zend"
resources.zf2.config_path = APPLICATION_PATH "/../config/"
;register service manager to Zend_Registry under key service_manager
resources.zf2.add_sm_to_registry = 1
resources.view[] =
resources.frontController.controllerDirectory.default = APPLICATION_PATH "/controllers"
resources.frontController.moduleDirectory = APPLICATION_PATH "/modules"
resources.frontController.defaultModule = "default"
resources.frontController.prefixDefaultModule = 1
[staging : production]
[testing : production]
phpSettings.display_startup_errors = 1
phpSettings.display_errors = 1
phpSettings.error_reporting = E_ALL
resources.frontController.params.displayExceptions = 1
[development : production]
phpSettings.display_startup_errors = 1
phpSettings.display_errors = 1
phpSettings.error_reporting = E_ALL
resources.frontController.params.displayExceptions = 1
Do i miss something?.
from zf2-for-1.
find me in irc, #roave on freenode
from zf2-for-1.
I joined http://en.irc2go.com/webchat/?net=freenode&room=roave&nick=arjun . Unfortunately , i haven't seen anyone there?. Shall we chat on Skype?.
Sorry, I got you on IRC.
from zf2-for-1.
Hey , While i am running this example it work fine . But while i am running it own my real application i got Fatal error: Class 'Zend\Mvc\Application' not found in /var/www/firsthelp/vendor/roave/zf2-for-1/src/Zf2for1/Resource/Zf2.php on line 52 Could you please let me know how do overcome that error?.
from zf2-for-1.
Could you please push zf2-for-1-nocomposer example to some github of your repository i can clone it and take look how do you configure it.
So that i can configure it on my project as same way that you configure.
from zf2-for-1.
While i am trying to configuration from zf2-for-1 without composer this gave me exception like that
Fatal error: Uncaught exception 'Zend_Application_Bootstrap_Exception' with message 'Unable to resolve plugin "zf2"; no corresponding plugin with that name' in /var/www/firsthelp/library/Zend/Application/Bootstrap/BootstrapAbstract.php:330 Stack trace: #0 /var/www/firsthelp/library/Zend/Application/Bootstrap/BootstrapAbstract.php(382): Zend_Application_Bootstrap_BootstrapAbstract->getPluginResource('zf2') #1 /var/www/firsthelp/library/Zend/Application/Bootstrap/BootstrapAbstract.php(394): Zend_Application_Bootstrap_BootstrapAbstract->getPluginResources() #2 /var/www/firsthelp/library/Zend/Application/Bootstrap/BootstrapAbstract.php(625): Zend_Application_Bootstrap_BootstrapAbstract->getPluginResourceNames() #3 /var/www/firsthelp/library/Zend/Application/Bootstrap/BootstrapAbstract.php(586): Zend_Application_Bootstrap_BootstrapAbstract->_bootstrap(NULL) #4 /var/www/firsthelp/library/Zend/Application.php(355): Zend_Application_Bootstrap_BootstrapAbstract->bootstrap(NULL) #5 /var/www/firsthelp/public/index.php(51): Zend_Appl in /var/www/firsthelp/library/Zend/Application/Bootstrap/BootstrapAbstract.php on line 330
I guess i am configure well according to no composer (Alternative) way, config, init_autoloader.php and application.ini as per above documentation.
Please let me know how do i run zf2-for-1 in the my application without composer?.
Thanks in advance.
from zf2-for-1.
Related Issues (3)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from zf2-for-1.