Controller not working

edited October 2017 in Feature Requests
hi i like to ask . im trying to use the controller like in codeigniter .. but in the hosting site.. the controller doesnt work . but in my local it work. is there a configuration should i do in the hosting

Comments

  • edited 8:14PM
    What do you mean by it doesn't work? Is the controller's first letter of the file name capitalized?
  • edited October 2017
    no ,, its not capitalize. i think the controller doesnt recognize on the controller. what i did i do an inline coding in the page for temporary solutions. but i want to use the controller
  • edited 8:14PM
    Is there a specified route in the routes.php file for this Controller?
  • edited October 2017
    Seem like you are not removing index.php from your URLs.
  • edited 8:14PM
    hi admin, sorry its ok now. i follow the suggestion you made the capitlized thingy its working now.

    i have new question:
    how can i get the global var in the controller.
  • edited 8:14PM
    To get the variables for a page including global variables you can use pagevars:
    $CI->fuel->pagevars('mylocation');
  • edited 8:14PM
    Thanks admin
Sign In or Register to comment.