Welcome Guest, Not a member yet? Register   Sign In
generate calendar!
#1

[eluser]husni[/eluser]
i have generate the calendar but i cannot make a link to view the calendar of the next and previous month.. i have followed the tutorial in codeigniter tutorial but maybe i have not enough requirement to make the link..anyone can help me?
#2

[eluser]theprodigy[/eluser]
per the user_guide:
Code:
$prefs = array (
               'show_next_prev'  => TRUE, // this option is for showing next and previous links
               'next_prev_url'   => 'http://example.com/index.php/calendar/show/' // this option is for the url of the next and previous links
             );

$this->load->library('calendar', $prefs);

echo $this->calendar->generate($this->uri->segment(3), $this->uri->segment(4));
#3

[eluser]husni[/eluser]
[quote author="theprodigy" date="1267405425"]per the user_guide:
Code:
$prefs = array (
               'show_next_prev'  => TRUE, // this option is for showing next and previous links
               'next_prev_url'   => 'http://example.com/index.php/calendar/show/' // this option is for the url of the next and previous links
             );

$this->load->library('calendar', $prefs);

echo $this->calendar->generate($this->uri->segment(3), $this->uri->segment(4));
[/quote]

Code:
'next_prev_url'   => 'http://example.com/index.php/calendar/show/'
that code link to that url? i don't have the /calendar/show..
#4

[eluser]theprodigy[/eluser]
in that example, the calendar points to the controller, and the show points to the method. If you don't have that method, then change the url. That is just the example given in the url. You need to put the url that you have created for showing the calendar.

For a really good screencast on the calendar, go to http://net.tutsplus.com/tutorials/php/co...r-library/
#5

[eluser]husni[/eluser]
[quote author="theprodigy" date="1267427029"]in that example, the calendar points to the controller, and the show points to the method. If you don't have that method, then change the url. That is just the example given in the url. You need to put the url that you have created for showing the calendar.

For a really good screencast on the calendar, go to http://net.tutsplus.com/tutorials/php/co...r-library/[/quote]

ok thanks..i'll try.. :-)




Theme © iAndrew 2016 - Forum software by © MyBB