Welcome Guest, Not a member yet? Register   Sign In
A simple question ..
#1

[eluser]gops[/eluser]
When I use something like

echo form_open('email/send');

this in my CI code. How code igniter will find send function ?

1) Will it first search for a email controller and then send method ?

Or

2) Will it search for a email folder and within it , send controller ?

How can I change the behavior ?

Thanks.
#2

[eluser]Glen Swinfield[/eluser]
It will load the 'email' class and call the 'send' method of that class. You can't change this functionality without re-writing the core of CI, but you can use routes.php to to alter what points where. Check the manual for Routes.
#3

[eluser]Developer13[/eluser]
# 1 is the correct answer (class/method).

However, you can change this behavior by using _remap.




Theme © iAndrew 2016 - Forum software by © MyBB