Understanding How Controller Works!
index.php is main router file
When parameters are passed to this file , It gets Controller and Function for it.
For example
index.php?ctl=user&act=register
here controller is User and action(function) is register
Now to edit this function register under controller
You would need to goto following location
app/Lib/modules/userModule.class.php
You can find register function in it
In each function there is defined a template
In register function there is code for it
$GLOBALS[‘tmpl’]->display(“user_register.html”,$cache_id);
So it is using template file
/app/Tpl/cv4/user_register.html
Another quick way to find template file for any Url
Notice URL when SEF if off
Example
When URL is index.php?ctl=settings&act=security
General syntax for template is ctl_act.html
thus settings_security.html should be the file you need to edit.