Welcome Guest, Not a member yet? Register   Sign In
Fill calendar events with database, dont show events with day less than 10 [SOLVED]
#3

[eluser]Asinox[/eluser]
thanks for replay.

not the explode is fine

the problem is that if the date from database is something like 2009-10-04, the day have a 0 and this is the problem, the example in the user_guide is without 0 if the number is less than 10.
Code:
$this->load->library('calendar');

$data = array(
               3  => 'http://example.com/news/article/2006/03/',
               7  => 'http://example.com/news/article/2006/07/',
               13 => 'http://example.com/news/article/2006/13/',
               26 => 'http://example.com/news/article/2006/26/'
             );

echo $this->calendar->generate(2006, 6, $data);

in the example the day 3 and 7 are without 0, so i think the problem is there.

thanks

Sorry with my English.


Messages In This Thread
Fill calendar events with database, dont show events with day less than 10 [SOLVED] - by El Forum - 03-13-2009, 10:50 AM



Theme © iAndrew 2016 - Forum software by © MyBB