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

    Hey there,

    I just noticed a bug in the scaffold generator while trying to execute the following command:

    ./script/generate scaffold List Lists
    

    This will return the following PHP error:

    Parse error: syntax error, unexpected T_LIST, expecting T_STRING in [...]/app/models/list.php on line 3
    

    The model list.php looks like this:

    <?php
    
    class List extends ActiveRecord
    {
    
    }
    
    ?>
    

    Other model/controller names work just well (Word, Words for example). So I guess the parser does not like "List" in there...

    Keep up the good work and thanks for Akelos!

    Best wishes, Philipp

    •  
      CommentAuthorwilliamn
     
    Philipp,

    list is an PHP reserved word, try something else.