I have moved my project files to another server, and now i'm getting this in all my pages, it's like i have missed some config, does anyone know what can i do?
I'm using Zend Framework 1.11.11 !
Which informations did you need?
SOLVED! I was using a different framework version! All my code was in 1.12, and i had configured 1.11.
Related
The problem is that I can't find the version.php file on the server within the Zend folder. The developer left so all I got is the source code which are also encrypted. I tried to call echo Zend_Version::VERSION; but Zend said "version.php" is not there. So I am out of means.
So I need to know:
What is the Zend Framework number? ( 1.? or 2.?)
As encrypted as the source code now is from what I see on the server, is it possible for someone to keep developing it? (I know PHP but not Zend Framework.)
Appreciated.
I think you can identify ZF major version by looking at directory structure even files are obfuscated.
ZF 1.12 Directory Structure
ZF 1.12 module Structure
ZF 2.0 Directory Structure
For ZF2 < 2.5 you can go to vendor/zendframework/zendframework/library/Zend/Version/Version.php
For Zf2 >= 2.5 you can go to
vendor/zendframework/zend-version/src/Version.php
And then in this class Version.php you have a constant wich tells you what version do you have (complete form with minor)
For Zf1 I have no clue, since I'm not using it.
For ZF1, you can check via /library/Zend/Version.php
I have an project that is used by many users and it's written in Codeigniter. I'm very happy with my application but I'm getting lost with Codeigniter because of the functionality of the framework and my application is getting too big for Codeigniter (that is what I think).
I want to go from Codeigniter to Zend, but the application is too big to begin all over again because there is still more functionality to come.
I don't know if someone has experienced or tried it, but does anybody know if it is possible to integrate Codeigniter into Zend as an module and migrate in steps to the Zend Framework 2?
Sorry for my bad english by the way :-)
Having experience with small and medium-scale projects with both CodeIgniter (CI) and Zend Framework (ZF), I can tell you that using one framework over the other will not solve any problem you might be having.
If you are looking for the added functionality provided by the ZF components, such as a ready-made class for Date or the Form verification class, know that you can use ZF components in Code Igniter. You will need to create a special class in CI that will jumpstart the ZF class autoloader. From there you can simply include ZF classes and use them as if you were inside a ZF application.
See http://www.beyondcoding.com/2008/02/21/using-zend-framework-with-codeigniter/ and http://fr.slideshare.net/samsonasik/codeigniter-using-third-party-components-zend-framework-components for more details.
"Integrate" means you want to put your app running on CodeIgniter withing ZendFramework. So basically you changed nothing and there's no much sense of doing so.
You perhaps could consider porting your app from CI to ZF, but that will require rewriting of your code. But I'd first try to find out what the bottleneck in your app really is and ensure that you will benefit from the switch
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 use YII framework and I needed to echo out query that is generated with the method insert($attributes=null) in CActiveModel class which, as it's told in documentation, is in framework/db/ar/CActiveRecord.php.
Well, my task was not hard, so I opened this file and edited this method, but nothing happened. After a little head-ache I've found out that my application was importing this class from the folder where I downloaded YII first.
What could be the reason of this behavior? I've solved my problem by changing path but I wonder, is it good solution?
Thank you in advance.
It's on index.php where you tell your application where to find the classes of the framework, so that's the line you should edit.
// change the following paths if necessary
$yii=dirname(__FILE__).'/../yii/framework/yii.php';
There was a great post that applied to CI 1.7.2 about using CI models outside CI. It worked like a charm.
http://codeigniter.com/wiki/Calling_CI_models_from_outside_script/
Then I upgraded to 2.0 and the code written in the above post was no longer applicable. I am having a hard time trying to get this to work in 2.0. The Config.php file is no longer in the libraries folder in addition to the Language.php and Model.php files.
Does anyone have an idea of how to port this to 2.0 ?
I only need the models. I was using them in an incoming email extension to our application and using the CI models that we had written saved a lot of time. Any help would be greatly appreciated. . .
I have no idea what this package does, or what issues you're having (forgot to say?), but in 2.0 you need to be looking in the "core" directory rather than the "codeigniter" directory.