Welcome Guest, Not a member yet? Register   Sign In
Unable to load the requested class: Calender
#1

An Error Was Encountered
Unable to load the requested class: Calender


How to make this Unable to load the requested class: Calender works?


views/welcome_message.php


PHP Code:
<body>

<?
php

//$this->load->library('calendar');
echo $this->calendar->generate(20066);
?>


<div id="container">
    <h1>Welcome to CodeIgniter!</h1>

    <div id="body">
        <p>The page you are looking at is being generated dynamically by CodeIgniter.</p>

        <p>If you would like to edit this page you'll find it located at:</p>
        <code>application/views/welcome_message.php</code>

        <p>The corresponding controller for this page is found at:</p>
        <code>application/controllers/Welcome.php</code>

        <p>If you are exploring CodeIgniter for the very first time, you should start by reading the <a href="user_guide/">User Guide</a>.</p>
    </div>

    <p class="footer">Page rendered in <strong>{elapsed_time}</strong> seconds. <?php echo  (ENVIRONMENT === 'development') ?  'CodeIgniter Version <strong>' CI_VERSION '</strong>' '' ?></p>
</div>

</body>
</html> 


controllers/Welcome.php



PHP Code:
    function __construct()
    {
        
parent::__construct();
        
        
$this->load->library('calender');
    }
     
     
    public function 
index()
    {
        
        
$this->load->view('welcome_message');
    } 
" If I looks more intelligence please increase my reputation."
Reply
#2

Spell it right.
http://www.codeigniter.com/user_guide/li...endar.html
Reply




Theme © iAndrew 2016 - Forum software by © MyBB