We are resurrecting some old code that used the Zend framework. The old code extends several Zend classes, invokes getOptions() and uses some other Zend functions. We tried installing Zend Framework with XAMPP (click here) without the Zend Server. We have loads of errors that prevent the legacy site from rendering properly.
Is Zend Server necessary to use all the methods, etc. of Zend Framework?
Yes, you can run Zend Framework without Zend Server (and I'd guess this is a much more common setup than using both together). The only thing I can think of in ZF that would require Zend Server would be the Zend Server Cache Backend.
It's more likely that your issue is down to a difference in configuration between your old server and new. If you can give examples of some of the errors you're getting we might be able to suggest where to look.
Related
I've so far been unable to find a working answer for this... And, let me say, I'm brand new to Zend/MVC.
I've installed Zend Server CE on CentOS, running Apache. I'm able to use the Zend GUI interface (with the options like "Monitor, Applications, Server Setup, etc.). PHP is running and executing fine.
All is ok, except when I try to instantiate any Zend Custom Classes. For instance when I try to create a Zend_Rest_Controller class, I receive the following message:
Fatal error: Class 'Zend_Rest_Controller' not found in /mnt/hgfs/API/index.php on line 15
This stays the same for any class I try. I read things about altering the php.ini file, or including the Zend library in the index.php page, but nothing has helped so far.
My question is: What steps in addition to installing Zend do I need to do to let me use the Zend classes?
Sorry if this is an ignorant question, but I appreciate the help.
There are two different products of Zend, which I think you are confusing. There is Zend Server CE (which you just installed). And there is the Zend Framework. As far as I know, Zend Server CE is distributing the Zend Framework with it, but it probably distributes version 2. And, looking at the name of the class you are referring to, that is a class from version 1 of the Zend Framework. Since version 2, the Zend Framework uses namespaces, and thus the class Zend_Rest_Controller does no longer exist. If you want to use version 1 Zend Framework, you will have to install that seperately.
I am new to php zend framework, I think I can get zend worked in my local computer but I am not sure how to deploy zend on line. if I have a web sever and filezilla ftp transfer tool, what I need to do to be able to get zend work online like i did locally? any help will be greatly appreciated.
The beauty of Zend Framework is that it is very non-intrusive by nature. It is more a class set than a framework but you can use the MVC framework too to build awesome apps. My knowledge of the Zend Framework is that you simply have to upload your source on the server like it was in your original site on your machine.
If you are using a non-conventionnal way to detect or set the path of the autoloader then you MIGHT have issues to fix. But if you use the define(APPLICATION_PATH, realpath(dirname(FILE)) strategy and set the includepath correctly, there should be no problem at all.
I am considering to use Zend Framework in a future project in a Linux Environment. I did the introduction tutorial and quite liked the framework. Yet there's one question i couldn't really find an answer around.
What is the benefit of using Zend Server CE , besides that it wraps up MsSQL and PHP and Apache? As far as i figured out , you still need to include or link zend framework in your application. I couldn't find any facilities which will make deployment any easier either.
It would be nice if someone could give some pointers / resources about pros/cons of using Zend Server.
Thanks
If the plan is to set up a live server my tip would be to not use the Zend Server CE. It is quite heavy, I would use apache/mysql and then add your ZF dir to include path in the php.ini
I used Zend Server CE on my Mac earlier, just for development, but i throw it out and now i use MAMP instead.
What I liked about Zend Server CE is the admin interface, read more about it here http://www.zend.com/en/products/server-ce/
I have to convert a site in zend framework. Site is big I can't convert the site at a time in zend It will take abt 6 months. Is it possible that I update it module by module (parts) and keep on uploading in live site so some module of my site will run on zend and some on core php. Can I do any setting for url in zend framework so both on my url can work.
partially migrating onto a/another framework is strongly discouraged. Don't mess with live-sites (especially not big ones) unless you really(!) need to. You should better set up a testing/migration site in your local office and do a full migration, and thorough testing, before you release anything into the wild.
If you really want to do this you should start looking into .htaccess conditional request rewriting to redirect the request either to zend or to your proprietary PHP application.
Cheers,haggi
I am just wondering if I could run CodeIgniter applications on Zend Server Community Edition without any issues.
I don't want to mess everything up by experimenting. Please let me know if you have faced any problems running CI on ZendServer CE.
Thanks
Zend Server isn't really a server. It's just a preconfigured PHP installation for Apache/IIS. When deploying a Zend Framework application, you have to include the Zend Framework libraries along with your application as if you were deploying it on a regular Apache/PHP server.
You can treat it as a stock installation of PHP.
I don't know enough about Zend Server to say for sure (e.g. I've seen someone manage to wedge CI into Joomla before), and while I'm sure it's possible, I imagine it would require a lot of tinkering. What you can do is pick and choose your favorite bits of CI or Zend and reuse the code as libraries. Are you being forced to use Zend but would prefer to use CI? If that's the case, I feel for you, but I'm not sure the best solution is to use two entire frameworks with all the overhead that comes with them...it would probably end up being really unwieldy.