CodeIgniter Forums
Eclipse template variables - 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: Eclipse template variables (/showthread.php?tid=27785)



Eclipse template variables - El Forum - 02-20-2010

[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!


Eclipse template variables - El Forum - 02-20-2010

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