Problem is not with subsequent (ajax) requests but with first one
which loads app with regard to address typed in a browser.
Right now only index/index can load app. Actually this done by layout
script's javascript only and index action does nothing and index view
has nothing.
I use Zend_Navigation and as I see there are no methods to set it's
state with regard to arbitrary controller/action.
So to make all controllers load app I need whether play with request
params as I mentioned earlier (what ruins Zend_Navigation inner logic)
or suppress actions processing for all none-ajax requests (what I dont
know how to do globaly).
>> I have one-page application and want all requests to be processed by
>> index/index.
>> Now I'm juggling with request params to get/set them back and forth to
>> process with index/index and then with really requested
>> controller/action.
>> This looks like s...
>> How can I do it in a right way?
>
> Have you tried with ajax? I think if you use ajax you can use more
> than one method to handling requests.
>
> -- Csanyi Andras -- http://sayusi.hu -- Sayusi Ando
没有评论:
发表评论