Welcome Guest, Not a member yet? Register   Sign In
Question about the calender class
#11

[eluser]fajarsulaksono[/eluser]
hi guys i have a question about fetching calendar event data from database to controller

here is the controller function :

Code:
function index()
    {
        $query_kalender = $this->mhome->getCalenderEvent();


         $this->db->orderby('id', 'desc');
        $this->db->limit(10);
        
        $news = $this->db->get('event');
        
         $events    = array();
        foreach($news->result_array() as $row)
        {
                $events[("j",$row['tgl'])]  = ''.base_url().'index.php/news/'.$row['id'].'';
        }
        
        var_dump($events);
    
        $data = array(
        'kalender' => $this->calendar->generate('','',$data_kalender),
        );
        
        $this->parser->parse('home', $data);
    }

the problem is
Code:
var_dump($events);
always shows the 31 date (variable $events actually contain todays date) and $row[tgl_1] is date formatted mysql column.
anyone can help me ?

thx


Messages In This Thread
Question about the calender class - by El Forum - 12-05-2008, 08:48 AM
Question about the calender class - by El Forum - 12-05-2008, 11:20 AM
Question about the calender class - by El Forum - 12-05-2008, 01:09 PM
Question about the calender class - by El Forum - 12-05-2008, 04:07 PM
Question about the calender class - by El Forum - 12-07-2008, 02:29 PM
Question about the calender class - by El Forum - 12-07-2008, 03:48 PM
Question about the calender class - by El Forum - 12-07-2008, 04:17 PM
Question about the calender class - by El Forum - 12-07-2008, 05:09 PM
Question about the calender class - by El Forum - 12-09-2008, 10:31 AM
Question about the calender class - by El Forum - 12-09-2008, 10:55 PM
Question about the calender class - by El Forum - 01-20-2009, 07:30 PM
Question about the calender class - by El Forum - 01-20-2009, 08:59 PM



Theme © iAndrew 2016 - Forum software by © MyBB