ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

[TO DO]CodeIgniter Generator for Windows

April 14, 2010 4:34am

Subscribe [2]
  • #1 / Apr 14, 2010 4:34am

    Mareshal

    230 posts

    I was thinking yesterday, to write a CodeIgniter 2.0 Generator for Windows.

    What this should do?

    Select ROOT Folder of your CodeIgniter Application

    Generate Controller by name(this should create controller_name.php, with all the code inside)

    Generate a Model by name(this should create model_name.php, with all the code inside)

    Options when generation Controller, to include a Model with the same name and a views folder with the same name

    Extend a CI Base Class and put the code inside /controllers , /core, /libraries or /models

    Every CodeGeneration can be custom made by anyone with some .php files that could be recognized the program.


    What do you think? Would be useful

  • #2 / Apr 14, 2010 5:19am

    Mat-Moo

    350 posts

    It would be if it was built around an editor 😊 other wise t would be yest another thing to run that mose editors can do with templates anyway (ok maybe slighly faster/better)

  • #3 / Apr 14, 2010 5:23am

    Mareshal

    230 posts

    I want just to create a simple tool like Cake/Symfony consoles

  • #4 / Apr 14, 2010 5:27am

    Yorick Peterse

    537 posts

    I made the following tool, it’s really basic but does the job fairly well: http://gist.github.com/365582

    Usage:

    ignite.php controller controller_name
    
    or
    
    ignite.php controller controller_name method1,method2
    
    or 
    
    ignite.php model model_name
    
    or
    
    ignite.php model model_name method1,method2
  • #5 / Apr 14, 2010 5:31am

    Mareshal

    230 posts

    Ok, Yorick. Thank you very much. I’m having a look over it right now 😛

  • #6 / Apr 14, 2010 9:38am

    Mareshal

    230 posts

    The first version of the generator is almost finished. A few more tweaks needed. I’ll put it to download tonight 😛

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases