Welcome Guest, Not a member yet? Register   Sign In
Controller not working as expected
#3

[eluser]StefanAlexandru[/eluser]
Thanks for your fast reply, so this is how i've made it, maybe others will encounter this problem too:

routes.php
Code:
$route['ad/:num']= '/ad/adbyid';

controller:
Code:
<?php
class Ad extends CI_Controller {


        public function index(){
              
        }

       public function adbyid(){
          $this->load->model('General');
           $data['anunt']=$this->General->adbyID();
           $this->load->view('anunt', $data);
}
                
      
}
?>


Messages In This Thread
Controller not working as expected - by El Forum - 07-21-2011, 10:34 AM
Controller not working as expected - by El Forum - 07-21-2011, 10:38 AM
Controller not working as expected - by El Forum - 07-21-2011, 11:04 AM
Controller not working as expected - by El Forum - 07-21-2011, 11:57 AM
Controller not working as expected - by El Forum - 07-21-2011, 12:01 PM



Theme © iAndrew 2016 - Forum software by © MyBB