Posts Tagged ‘Zend Framework’

Zend Framework as PEAR accessible repository on Plesk server

October 3rd, 2008  | 

Posted in Zend Framework

1 comment »

Tags:

Why we want to install ZF as PEAR ? Because is too boring and time consuming to move all ZF files up and down for each script you want to install , there are a lot of files.

Also that way we can forget about the need to update ZF at latest versions, and keep tracks of which version and on which server we have ZF.  Of course, backward compatibility  can be an issue in future ZF releases ( like 2.0 branch for PHP > 5.3)

  1. Install PEAR if is not installed  already .
  2. Follow the instructions for ZF PEAR . Simply use: pear install zend/zend
  3. Create a vhosts.conf file in /var/www/vhosts/dotkernel.com/conf  or where is your vhost configuration folder located.
  4. In that file, remove the open_basedir :
  5. php_admin_value open_basedir "/var/www/vhosts/dotkernel.com/httpdocs:/tmp:/usr/share/pear"
  6. rebuild all vhosts:  /usr/local/psa/admin/sbin/websrvmng -a
  7. Restart httpd
  8. Call directly the preloader:
     require_once 'Zend/Loader/Autoloader.php';

A New framework (dotKernel) vs. Zend Framework ?

March 28th, 2008  | 

Posted in DotKernel

No comments »

Tags:

1.What is a framework ?
(a)a standard library of components that you can drop into your application

2. What is Zend Framework(ZF) ?
(a)is a PHP library for building PHP web applications
(b)is really a hybrid framework and as such can be used in a much larger range of projects than strict “application frameworks”. While many components in Zend Framework can be used stand-alone like a component library; it is, at its core an implementation of the “Model-View-Controller” (MVC) pattern.