Welcome Guest, Not a member yet? Register   Sign In
Eclipse template variables
#1

[eluser]VinceVe[/eluser]
Hey guys I'm a user of Eclipse and I want to make templates.

This is what I got so far
Code:
<?php

class ${file} extends Controller {
    
    function ${file}()
    {
        parent::Controller();
    }
    
    function ${index}()
    {
        ${cursor}
    }
}

/* End of file ${file}.php */
/* Location: ./system/application/controllers/${file}.php */


But the ${file} doesn't seem to work... Maybe you guys got another template that can realise this ?

Thanks in advance!
#2

[eluser]JoostV[/eluser]
I 'file' is reserved. Have yout tried another variable name, like
Code:
${class_name}




Theme © iAndrew 2016 - Forum software by © MyBB