-->



Monday, October 12, 2015

Codeigniter--Dynamic-Calender

After MD5 login-form, We will be learning about creating Dynamic Calendar.

1.  Rename your Codeigniter folder as "CalenIgniter".

2.  Now configure your files.Go to C:\xampp\htdocs\CalenIgniter\application\config. 
     Now select  autoload.php and make changes as follows.

                  $autoload['libraries'] = array('xmlrpc','calender');
                  $autoload['helper'] = array('url', 'file','form');

3.  Select config.php and make the changes as follows.

                   $config['base_url'] = 'http://localhost/CalenIgniter/';

4.  Select routes.php and make the changes as follows.

                    $route['default_controller'] = "calender_control";
                    $route['404_override'] = '';

5.  Create a new folder named "css" in C:\xampp\htdocs\CalenIgniter.

6.  Create a new file control_calender.php in C:\xampp\htdocs\CalenIgniter\application\controllers
     and copy and paste the given code below.

                                                  control_calender.php

                         
      

7.  Create a new file view_calender.php in C:\xampp\htdocs\CalenIgniter\application\views.Copy and paste the code given below.

                                            view_calender.php


                         

8.  Create a new file styles.css in C:\xampp\htdocs\CalenIgniter\css. Copy and paste the code given below.
               
                                                          styles.css


        

9.  Now navigate the link to http://localhost/CalenIgniter/. You should get the following screen.

                       

10. That's it!!, we have successfully finished developing a dynamic calendar. In the next tutorial, we will be learning about encryption and decryption in data.

No comments:

Post a Comment