2009年7月7日星期二

RE: [fw-mvc] URL - index

Good morning all

Sorry for the delay. There is time diffence so that when it is day here it
is already night there.

Thank for the answers. Dimitry, I will take a look at it and let you know

Erdal YAZICIOGLU
Field Project Engineer Manager
Page Europa
A GENERAL DYNAMICS COMPANY
Ras Laffan Industrial City
Doha, Qatar
Office : +974 492 4010
Mobile: +974 325 4429

-----Original Message-----
From: dmitrybelyakov [mailto:shiftplatform@gmail.com]
Sent: Tuesday, July 07, 2009 4:11 PM
To: fw-mvc@lists.zend.com
Subject: Re: [fw-mvc] URL - index


CEHTURK wrote:
>
> Hello all
>
> How can I disable index on the URL bar. Instead of having
> http://localhost/index/events/1234 I want to do
> http://localhost/events/1234
>
> Shall I do it in .htacess file?
>
>

Hi, actually no. Yo are intended to do it by setting proper Routes.
You can read more on the topic of routing in the reference guide:
http://zendframework.com/manual/en/zend.controller.router.html

If 'index' is the name of your default controller (or is it module?) and
'events' is your action
you should be able to do it without any configuration. Anyways you need to
to read more on setting up controllers/actions and setting up routes.

It's also more productive to start a new topic if you have any questions
specific to your case :)

Good luck,
Dmitry.

--
View this message in context:
http://www.nabble.com/Base-URL---where-is-it-used--tp24372371p24373061.html
Sent from the Zend MVC mailing list archive at Nabble.com.

没有评论: