Welcome Guest, Not a member yet? Register   Sign In
How to call another controller?
#5

[eluser]John_Betong_002[/eluser]
Try this:

Code:
// http://ellislab.com/codeigniter/user-guide/helpers/url_helper.html
  $this->load->helper('url');

  <?php
        // ocd_view
        echo anchor
        (
           'ocd_controller/func_FIRST/' .$params,
           'func_FIRST located ocd_controller'
        };
  ?>        
  
// the ocd_controller controller loads another view. named highAndLow_view
// and when i click a button
// it calls another controller named hourlyheights_controller.
  <?php
      // highAndLow_view
      echo anchor
      (
        'hourlyheights_controller/func_TWO/' .$params,
        'func_TWO located in hourlyheights_controller'
      };
  ?>


 
edit renamed incorrect link.
 


Messages In This Thread
How to call another controller? - by El Forum - 07-13-2011, 10:18 PM
How to call another controller? - by El Forum - 07-13-2011, 10:39 PM
How to call another controller? - by El Forum - 07-13-2011, 11:18 PM
How to call another controller? - by El Forum - 07-13-2011, 11:20 PM
How to call another controller? - by El Forum - 07-13-2011, 11:34 PM
How to call another controller? - by El Forum - 07-14-2011, 02:00 AM
How to call another controller? - by El Forum - 07-14-2011, 02:38 AM
How to call another controller? - by El Forum - 07-14-2011, 04:30 AM
How to call another controller? - by El Forum - 07-14-2011, 04:53 AM
How to call another controller? - by El Forum - 07-14-2011, 05:01 AM
How to call another controller? - by El Forum - 07-14-2011, 05:03 AM



Theme © iAndrew 2016 - Forum software by © MyBB