the url looks like this: http://localhost/events/show/1234
You don't need a customized rule for the router then and the url still
looks good ;)
Uli
dmitrybelyakov wrote:
>
>
> 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.
>
没有评论:
发表评论