zf2: как получить сервисный локатор в модели

Этот пример поможет вам.

 
    var testPipe = function(input) { 
       console.log('input => ' + input);
       console.log('single pipe | => ' + (input | 'fallback'));
       console.log('double pipe || => ' + (input || 'fallback'));
       console.log('-------------------------');
    };

    testPipe();
    testPipe('something'); 
    testPipe(50);
    testPipe(0);
    testPipe(-1);
    testPipe(true);
    testPipe(false);

7
задан christiana83 3 July 2013 в 09:44
поделиться

0 ответов

Другие вопросы по тегам:

Похожие вопросы: