0

Please help in View I want to call controller function Beacuse I have to use this in short code

In controller

public function __construct() {
    parent::__construct();
    $this->Front = & get_instance();
}
public function view() {
    $this->index();
    $this->load->view(view');
}

In view

<?=$this->Front->view();?>
0

1 Answer 1

0
  <script type="text/javascript">
        $(document).ready(function () {
            var site_url = "<?php echo base_url('/controller'); ?>";
            $("#season").load(site_url);
        });
    </script>
<div id="season"> </div>

Try this might help you .

Sign up to request clarification or add additional context in comments.

1 Comment

Thank you @ghugu