Welcome Guest, Not a member yet? Register   Sign In
Calendaring Class???
#1

[eluser]JimmyJ[/eluser]
Hey, i'm very new to cl and i'm going through the documentation.

I really really like it, but i'm stuck at something very simple!!

I'm going through the simple blog tutorial and i can't figure out how to spit out a simple calendar (or any other class for that matter) into my blogview.php page.

Code for blog.php is:

Code:
<?php
class Blog extends Controller {

    function index()
    
    {
        
        $this->output->cache(60);
        
        $data['todo_list'] = array('Clean House', 'Call Mom', 'Run Errands');

        $data['title'] = "My Real Title";
        $data['heading'] = "My Real Heading";
        
        
        $this->load->view('blogview', $data);
        
        
        $this->load->library('calendar');
    }
    
}
?>

And my blogview.php is

Code:
<html>
<head>
<title><?php echo $heading;?></title>
</head>
<body>
<h1>&lt;?php echo $heading;?&gt;</h1>
    
<h3>My Todo List</h3>    

<ul>
&lt;?php foreach($todo_list as $item):?&gt;

<li>&lt;?php echo $item;?&gt;</li>

&lt;?php endforeach;?&gt;
</ul>
    &lt;?php echo $this->calendar->generate(); ?&gt;
&lt;/body&gt;
&lt;/html&gt;

How do i spit out the calendar to the page?


Messages In This Thread
Calendaring Class??? - by El Forum - 11-26-2007, 04:09 PM
Calendaring Class??? - by El Forum - 11-26-2007, 04:19 PM
Calendaring Class??? - by El Forum - 11-26-2007, 04:24 PM
Calendaring Class??? - by El Forum - 03-06-2008, 09:25 AM
Calendaring Class??? - by El Forum - 03-06-2008, 10:02 AM
Calendaring Class??? - by El Forum - 03-06-2008, 11:09 AM
Calendaring Class??? - by El Forum - 03-06-2008, 11:55 AM
Calendaring Class??? - by El Forum - 03-06-2008, 01:01 PM



Theme © iAndrew 2016 - Forum software by © MyBB