May 7, 2010 12:29 am
Carl ForsmanI 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 StuckleCarl 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";
> }
> }
> 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
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
May 7, 2010 5:00 am
Chintan ShahYou 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:
> 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 -
> > I created a <zend framework project> by doing
> > New project > PHP > Zend Framework Project
>> > New project > PHP > Zend Framework Project
> > then I added a UserController.php
> > test4 > application > controllers > UserController.php
>> > test4 > application > controllers > UserController.php
> > but when I made request to
> >http://localhost/test4/application/cont... roller.php
>> >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?
>> > UserController?
> > ======================
> > <?php
> > class UserController extends Zend_Controller_Action
> > {
> > ? ? public function init()
> > ? ? {
> > ? ? }
>> > <?php
> > class UserController extends Zend_Controller_Action
> > {
> > ? ? public function init()
> > ? ? {
> > ? ? }
> > ? ? public function indexAction()
> > ? ? {
> > ? ? ? ? echo "aaa";
> > ? ? }
> > }
>> > ? ? {
> > ? ? ? ? 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 Forsmanzend.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