Akelos Framework v1 forum archive. This forum is no longer maintained. To report bugs please visit https://github.com/akelos/akelos/issues
    • CommentAuthorsuthern
     

    Is there predefined Akelos function that lists the controllers?

    I'd like to create my own script that loops this, replacing xxxxx with each controller name.

    ./script/migrate xxxxxxx install
    

    Thanks!

    (The reasoning behind all of this is so when I copy all the files to the production server, I can then run this to update the MySQL schema)

    •  
      CommentAuthorbermi
     

    Can be more elaborated, but Ak::dir can help you on that

    foreach (Ak::dir(AK_APP_DIR.DS.'controllers', array('dirs'=>false)) as $filename) {
        system('./script/migrate '.preg_replace('/_controller\.php$/', '', $filename).' install');
    }
    
    • CommentAuthorsuthern
     
    Thanks Bermi! and thanks for authoring and maintaining this framework and website.

    I wish you a fantastic weekend! :-)
    •  
      CommentAuthorbermi
     

    Thanks suthern, but this luckily for the project people like Kaste, Arno, Alan among others are doing more for Akelos than I'm doing lately.

    Nice weekend for you as well!