Showing posts with label phalcon. Show all posts
Showing posts with label phalcon. Show all posts

Friday, July 22, 2016

Phalcon tool

2. create project
cmd: phalcon project 
2.generate a model
cmd: phalcon model 
$ phalcon --help

Phalcon DevTools (3.2.0)

Help:
  Lists the commands available in Phalcon devtools

Available commands:
  info             (alias of: i)
  commands         (alias of: list, enumerate)
  controller       (alias of: create-controller)
  module           (alias of: create-module)
  model            (alias of: create-model)
  all-models       (alias of: create-all-models)
  project          (alias of: create-project)
  scaffold         (alias of: create-scaffold)
  migration        (alias of: create-migration)
  webtools         (alias of: create-webtools)
  console          (alias of: shell, psysh)

Tuesday, July 5, 2016

Thay đổi startSymbol & endSymbol trong AngularJS

Default trong angular sử dụng {{}} để xuất dữ liệu ra view,
nhưng trong 1 số trường hợp bị trùng code của ngôn ngữ server ví dụ trong framwork phalcon.Cách sửa là chúng ta thay đổi startSymbol và endSymbol trong config của angula:

var ngModule = angular.config(function($interpolateProvider) {
        $interpolateProvider.startSymbol('[[');
        $interpolateProvider.endSymbol(']]');
    });