Welcome Guest, Not a member yet? Register   Sign In
Beginner .. Codeigniter load all files in controllers folder?
#1

[eluser]hawkeye000[/eluser]
Hello
Just i want to ask if Codeigniter load all files in controllers folder to find the class which i need ??
#2

[eluser]CroNiX[/eluser]
No, it tells by the URL, or if you have a route defined for the url, the route.
#3

[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 ???
#4

[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.
#5

[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
#6

[eluser]CroNiX[/eluser]
Unless you use a route.
#7

[eluser]hawkeye000[/eluser]
[quote author="CroNiX" date="1332515170"]Unless you use a route.[/quote]

Thank you dear




Theme © iAndrew 2016 - Forum software by © MyBB