Akelos Framework v1 forum archive. This forum is no longer maintained. To report bugs please visit https://github.com/akelos/akelos/issues
    • CommentAuthordemaio
     
    Both @$this->params and $this->params seem to work fine when used in a controller ...
    What is the difference between these two lines of cods?

    Another question which is related to loading models in the controller.
    What's the difference between $models = 'model1,model2' and $models=array('model1','model2');

    best regards

    demaio
    • CommentAuthorinsanet
     
    1. the diference is the "@" operator, is used to supress error messages to the var or function you applied it.
    in that particular case is used to supress the "notice" error about not initialized propertie params. but yeah "notice" is not so smart with objects.

    2. there is no difference. just use whichever is easier to you.