![]() |
Beginner .. Codeigniter load all files in controllers folder? - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Beginner .. Codeigniter load all files in controllers folder? (/showthread.php?tid=50333) |
Beginner .. Codeigniter load all files in controllers folder? - El Forum - 03-22-2012 [eluser]hawkeye000[/eluser] Hello Just i want to ask if Codeigniter load all files in controllers folder to find the class which i need ?? Beginner .. Codeigniter load all files in controllers folder? - El Forum - 03-22-2012 [eluser]CroNiX[/eluser] No, it tells by the URL, or if you have a route defined for the url, the route. Beginner .. Codeigniter load all files in controllers folder? - El Forum - 03-23-2012 [eluser]hawkeye000[/eluser] So where is the file here ? http://example.com/[controller-class]/[controller-method]/[arguments] And i make this file any.php and it contains class News Whats the right way to call functions in this class ??? Beginner .. Codeigniter load all files in controllers folder? - El Forum - 03-23-2012 [eluser]aquary[/eluser] I don't understand your question... Have you try reading the basic of CI, and tried making some basic code, and see it yourself? That is the fastest way to learn than asking someone else, starting from 0. Beginner .. Codeigniter load all files in controllers folder? - El Forum - 03-23-2012 [eluser]hawkeye000[/eluser] Just i asked what if controller class name is not matching controller file name?? Ok i found the answer : Class names and file names must match. Thank you Beginner .. Codeigniter load all files in controllers folder? - El Forum - 03-23-2012 [eluser]CroNiX[/eluser] Unless you use a route. Beginner .. Codeigniter load all files in controllers folder? - El Forum - 03-23-2012 [eluser]hawkeye000[/eluser] [quote author="CroNiX" date="1332515170"]Unless you use a route.[/quote] Thank you dear |