Warning: Constant ABSPATH already defined, this will be an error in PHP 9 in /home/killerph/public_html/wp-config.php on line 19

Warning: Cannot modify header information - headers already sent by (output started at /home/killerph/public_html/wp-config.php:19) in /home/killerph/public_html/wp-includes/feed-rss2-comments.php on line 8
Comments on: Setting up an MVC structure with the Zend Framework – part 1 https://www.killerphp.com/articles/setting-up-an-mvc-structure-with-the-zend-framework-part-1/ Thu, 09 Dec 2021 20:55:09 +0000 hourly 1 https://wordpress.org/?v=6.4.14 By: david https://www.killerphp.com/articles/setting-up-an-mvc-structure-with-the-zend-framework-part-1/#comment-467 Mon, 08 Sep 2008 18:18:52 +0000 http://www.killerphp.com/articles/setting-up-an-mvc-structure-with-the-zend-framework-part-1/#comment-467 <Directory “var/www/sites/*/public_html” >
Options FollowSymLinks
AllowOveride ALL
<Directory >
sorry again stefan

]]>
By: david https://www.killerphp.com/articles/setting-up-an-mvc-structure-with-the-zend-framework-part-1/#comment-466 Mon, 08 Sep 2008 18:16:41 +0000 http://www.killerphp.com/articles/setting-up-an-mvc-structure-with-the-zend-framework-part-1/#comment-466 Options FollowSymLinks
AllowOveride ALL

my bad

]]>
By: david https://www.killerphp.com/articles/setting-up-an-mvc-structure-with-the-zend-framework-part-1/#comment-465 Mon, 08 Sep 2008 18:15:32 +0000 http://www.killerphp.com/articles/setting-up-an-mvc-structure-with-the-zend-framework-part-1/#comment-465 stripped my <‘s and >’s
so it would be
<Directory “var/www/sites/*/” >
Options FollowSymLinks
AllowOveride ALL
<Directory >
and the v.hosts are
<VirtualHost 127.0.0.1 >
DocumentRoot “/var/www/html”
ServerName localhost
<VirtualHost >
<VirtualHost 127.0.0.1 >
ServerAdmin admin@zendtest
DocumentRoot “/var/www/sites/zendtest/public_html”
ServerName zendtest
ErrorLog /var/www/sites/zendtest/logs/error_log
CustomLog /var/www/sites/zendtest/logs/access.log common
<VirtualHost >
<VirtualHost 127.0.0.1 >
DocumentRoot “/var/www/sites/zendtest/tests”
ServerName zendtest.test
<VirtualHost >

]]>
By: david https://www.killerphp.com/articles/setting-up-an-mvc-structure-with-the-zend-framework-part-1/#comment-464 Mon, 08 Sep 2008 18:05:44 +0000 http://www.killerphp.com/articles/setting-up-an-mvc-structure-with-the-zend-framework-part-1/#comment-464 @Andy I struggled with this to. I use linux so what I eventually ended up doing was making a new folder called virtualhost in my httpd directory or in the parent directory of where your httpd.conf file is i.e.
->httpd “folder”
->->conf “folder”
->->->httpd.conf “file”
->->virtualhost “folder”
->->->v.hosts.conf “file”

And after backing up my httpd.conf file to httpd.conf.backup I went down to section 3 of my httpd.conf file and cut the whole section out and put it in my v.host.conf file and then where section 3 was I ended up putting include virtualhosts/*.conf
Now depending on your directory root of your virtualhost, if it is above your default directory root you might have to add

Options FollowSymLinks
AllowOveride ALL

The “*” means any folder I drop in sites that has a public_html folder will read .htacces files with the AllowOveride set to All. The Options can be overridden by the virtual host configuration file.
In my host file I added the 127.0.0.1 “whatever”
and in the v.host.conf file I have this setup
NameVirtualHost 127.0.0.1

#
# VirtualHost example:
# Almost any Apache directive may go into a VirtualHost container.
# The first VirtualHost section is used for all requests that do not
# match a ServerName or ServerAlias in any block.
#

DocumentRoot “/var/www/html”
ServerName localhost

ServerAdmin admin@zendtest
DocumentRoot “/var/www/sites/zendtest/public_html”
ServerName zendtest
ErrorLog /var/www/sites/zendtest/logs/error_log
CustomLog /var/www/sites/zendtest/logs/access.log common

DocumentRoot “/var/www/sites/zendtest/tests”
ServerName zendtest.test

]]>
By: Jon Lebensold https://www.killerphp.com/articles/setting-up-an-mvc-structure-with-the-zend-framework-part-1/#comment-463 Sat, 24 May 2008 15:43:30 +0000 http://www.killerphp.com/articles/setting-up-an-mvc-structure-with-the-zend-framework-part-1/#comment-463 @Andy:

Thanks for the feedback. Doing a MAMP video sounds like a great idea. I’ll put something together in the coming weeks.

]]>
By: Andy https://www.killerphp.com/articles/setting-up-an-mvc-structure-with-the-zend-framework-part-1/#comment-462 Sat, 24 May 2008 07:47:03 +0000 http://www.killerphp.com/articles/setting-up-an-mvc-structure-with-the-zend-framework-part-1/#comment-462 I found your tutorial on ZF very helpful for my 1st forray into this new framework.

The one part I struggled with is where you set up your Virtual hosts with MAMP. You had a custom httpd.conf file but I tried to replicate your your syntax with the help of the apache manual on setting up virtual hosts with no luck.

Is there any possibility of you doing a screen cast or tutorial on how you set up your MAMP virtual hosts please. I did a google search and there is a lot of people having similar problems and the MAMP forum isn’t very helpful 🙁

keep up the good work, thanks.

]]>
By: Setting up an MVC structure with the Zend Framework - part 1 | PHP Podcasts https://www.killerphp.com/articles/setting-up-an-mvc-structure-with-the-zend-framework-part-1/#comment-461 Wed, 09 Apr 2008 13:01:01 +0000 http://www.killerphp.com/articles/setting-up-an-mvc-structure-with-the-zend-framework-part-1/#comment-461 […] Original Post […]

]]>
By: Stefan Mischook’s Blog: Setting up an MVC structure with the Zend Framework - part 1 | Development Blog With Code Updates : Developercast.com https://www.killerphp.com/articles/setting-up-an-mvc-structure-with-the-zend-framework-part-1/#comment-460 Wed, 26 Mar 2008 17:22:53 +0000 http://www.killerphp.com/articles/setting-up-an-mvc-structure-with-the-zend-framework-part-1/#comment-460 […] Stefan Mischook has just posted a new video in his set of PHP-related presentations – part one of a look at setting up the MVC structure in a Zend Framework application. This video is a little more basic than the previous Zend videos. […]

]]>
By: acido69 https://www.killerphp.com/articles/setting-up-an-mvc-structure-with-the-zend-framework-part-1/#comment-459 Tue, 25 Mar 2008 22:21:10 +0000 http://www.killerphp.com/articles/setting-up-an-mvc-structure-with-the-zend-framework-part-1/#comment-459 trackback: “Un vídeo bastante ilustrativo para empezar a trabajar en MVC con ZF; está en ingles pero es bastante fácil de entender.”

http://cuatroxl.wordpress.com/2008/03/25/empezando-en-la-estructura-mvc-con-zend_framework-i-video-tutorial/

]]>
By: Setting up an MVC structure with the Zend Framework - part 1 | Development Feeds https://www.killerphp.com/articles/setting-up-an-mvc-structure-with-the-zend-framework-part-1/#comment-458 Mon, 24 Mar 2008 22:05:07 +0000 http://www.killerphp.com/articles/setting-up-an-mvc-structure-with-the-zend-framework-part-1/#comment-458 […] Visit Original: Setting up an MVC structure with the Zend Framework – part 1 […]

]]>