[eluser]Alface[/eluser]
I'm making an ajax pagination for my news page.
all notices have (year, month, state)
I create the ajax part as well, but I notice.. the url stays
localhost/news
all the time.. and for seo and best user navegation and SEO I want to populate ajax aplication with url values too (not just the form)
to get directly access like this:
localhost/year/month/state/page
Ex: localhost/2010/04/01/2
late I replace 04 on the url to April.. just for keep simple
My problem:
Code:
<?php
class Site extends Controller {
function Site(){
parent::Controller();
function news($year = NULL, $month = NULL, $state, $page = NULL){
}
}
The problem is year, month and state is optional..
and if I do not set year, month wil turn to year.
and if I do not set month, state wil turn to month.
undertand?
If I got keys (like $_GET) the problem was solved. But the is another way?
Thanks for everthing