PHP forum

Zend framwork project fail to run

May 7, 2010 12:29 am
Carl Forsman

I created a <zend framework project> by doing
New project > PHP > Zend Framework Project

then I added a UserController.php
test4 > application > controllers > UserController.php

but when I made request to
http://localhost/test4/application/cont ... roller.php

-OR-

http://localhost/test4/public/user

-OR-

http://localhost/test4/user

all link will return 404 or 500 error code

which URL should I use to get the "aaa" get print out from
UserController?

======================
<?php
class UserController extends Zend_Controller_Action
{
public function init()
{
}

public function indexAction()
{
echo "aaa";
}
}

May 7, 2010 1:04 am
Jerry Stuckle
Re: zend framwork project fail to run

Carl Forsman wrote:
> I created a <zend framework project> by doing
> New project > PHP > Zend Framework Project
>
> then I added a UserController.php
> test4 > application > controllers > UserController.php
>
> but when I made request to
> http://localhost/test4/application/cont ... roller.php
>
> -OR-
>
> http://localhost/test4/public/user
>
> -OR-
>
> http://localhost/test4/user
>
> all link will return 404 or 500 error code
>
> which URL should I use to get the "aaa" get print out from
> UserController?
>
> ======================
> <?php
> class UserController extends Zend_Controller_Action
> {
> public function init()
> {
> }
>
> public function indexAction()
> {
> echo "aaa";
> }
> }

Might I recommend you ask the Zend support structure? People there are
much more familiar with the frameworks then anyone here. In fact, i
would suspect few here have ever used Zend frameworks.

When dealing with a package, support structure for that package is
almost always the best place to start.

==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
May 7, 2010 5:00 am
Chintan Shah
Re: zend framwork project fail to run

You can check mod rewrite is enabled in apache.

Provide us copy of .htaccess

Decosian,
Decos technology group,
Site: http://www.decossoftdev.com/


On May 7, 6:04?am, Jerry Stuckle <jstuck...@attglobal.net> wrote:
> Carl Forsman wrote:
> > I created a <zend framework project> by doing
> > New project > PHP > Zend Framework Project
>
> > then I added a UserController.php
> > test4 > application > controllers > UserController.php
>
> > but when I made request to
> >http://localhost/test4/application/cont... roller.php
>
> > -OR-
>
> >http://localhost/test4/public/user
>
> > -OR-
>
> >http://localhost/test4/user
>
> > all link will return 404 or 500 error code
>
> > which URL should I use to get the "aaa" get print out from
> > UserController?
>
> > ======================
> > <?php
> > class UserController extends Zend_Controller_Action
> > {
> > ? ? public function init()
> > ? ? {
> > ? ? }
>
> > ? ? public function indexAction()
> > ? ? {
> > ? ? ? ? echo "aaa";
> > ? ? }
> > }
>
> Might I recommend you ask the Zend support structure? ?People there are
> much more familiar with the frameworks then anyone here. ?In fact, i
> would suspect few here have ever used Zend frameworks.
>
> When dealing with a package, support structure for that package is
> almost always the best place to start.
>
> --
> ==================
> Remove the "x" from my email address
> Jerry Stuckle
> JDS Computer Training Corp.
> jstuck...@attglobal.net
> ==================- Hide quoted text -
>
> - Show quoted text -



May 7, 2010 6:31 am
Carl Forsman
Re: zend framwork project fail to run

zend.conf
==================================

LoadModule zend_enabler_module "C:\Program
Files\Zend\ZendServer\bin\ZendEnablerApache.dll"
ZendEnablerConfig "C:\Program
Files\Zend\ZendServer\etc\ZendEnablerConf.xml"
AddHandler zend-enabler-script .php
AddType application/x-httpd-php .php

Listen 10081

NameVirtualHost *:10081

<VirtualHost *:10081>
Alias /ZendServer "C:\Program Files\Zend\ZendServer\GUI\html"
DocumentRoot "C:\Program Files\Zend\ZendServer\GUI\html"
RewriteEngine On
RewriteRule ^/$ /ZendServer/ [R]
RewriteRule ^/Login$ /ZendServer/Login [R]
<Directory "C:\Program Files\Zend\ZendServer\GUI\html">
AllowOverride All
Allow from all
</Directory>
</VirtualHost>

AllowEncodedSlashes On


.htaccess
================================
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [NC,L]
RewriteRule ^.*$ index.php [NC,L]




Previous Thread: Array
Next Thread: Obvious question

Related Forum Topics
Framwork
kindly suggest me which is best framework for erp development.


Why do examples fail to work?
http://www.w3schools.com/php/php_file.asp

<?php
$file = fopen("welcome.txt", "r") or exit("Unable to open file!");
//Output a line of the file until the end is reached
while(!feof($file))
{
echo fgets($file). "<br />";
}
fclose($file);
?>

for my efforts, my result is...
Why does relative include fail?
disc@puff:~/php$ ls
a.php data include

disc@puff:~/php$ tree
.
├── a.php
├── data
│ └── d.php
└── include
├── b.php
└── c.php

2 directories, 4 files

disc@puff:~/php$ cat a.php
...
Need a PHP collaborator for a new project
Hello all,

I want to develop a new online project but I need a PHp collaborator
to work with. For more details, please contact me. Note that you will
be part of the project but I don't have a budget for this.


How much time for a project
hi,

i was asked about developing something similar to mobile.de.
I must say in advance how long it 'd take.
For these, who knows this service: is 2-3 month ok (for 1 person)?
Or is it too long/too ... short?

TIA
Greetings
Raul Bada


Updating Zend 5.0 to use PHP 5.3.9
Hi there,

For a client I need to update Zend 5.0.3 to use PHP 5.3.9. Zend itself
should not be updated.
Point is, the PHP included in the Zend 5.0.3 repo is 5.3.3.
The most up2date 5.3.9 is in the 5.6.0_Hotfix4 repo.

Has anyone ever done this update before?

Thanks in...
Redirect on zend
Hi,

I have 2 pixel tracking pages, page 1 has a link like <a href=tracking/?page=1&url=host1.com> and the other has <img src=tracking/?page=1&url=host2.com>. I am using Zend as my stack.

When I click on the href in page 1, it does the pixel tracking and redirects the page to host1.com. I...
PHP / LaTeX project
Hello,

I hope I can send this question to this newsgroup:
I'm searching some interessting people that would like to do a
project in their free time. I'm a very big fan of LaTeX and PHP
based frameworks, so I would create a CMS to using LaTeX within a browsers for
editing and creating PDF...
Zend Studio for Eclipse
Does anyone have good or bad experience working with the most recent
version of Zend Studio for Eclipse? I have been using Dreamweaver CS3
for static HTML and CSS site development, but now I am looking for an
IDE that does a good job of managing full site development and
maintenance for...
Major Project Refactoring
I've recently been tasked with refactoring (rewriting, almost) an
ancient set of custom tools. They were originally written in good ol'
straight PHP, but there is a lot wrong with it. No includes (or
framework) so duplicate code everywhere; horrible architectural
decisions; horribly designed,...