Skip to content

Instantly share code, notes, and snippets.

View wastemobile's full-sized avatar

wastemobile wastemobile

View GitHub Profile
@wastemobile
wastemobile / EventTutorial.md
Created April 20, 2012 16:50 — forked from brendo/EventTutorial.md
Symphony Events: A Detailed Look

Forms have been an integral part of any interactive site since the dawn of time, they promote interactivity and are usually the most common way users interact with a site. It's commonplace that when a form is submitted, the website will take 'action' and do something with the data and then provide a user with the result. Symphony provides this logic layer via Events.

「輸入表單」一直以來都是動態網站的重要部分,表單也提供了最基本的互動功能。最常見的就是當使用者提交一個表單之後,網站會執行某種「動作」、做了某些事,接著將結果呈現在使用者眼前。Symphony CMS 透過「事件(Events)」提供這樣的邏輯層。

This tutorial assumes you have a basic understanding of how Events work in Symphony (if not, this may be a good introduction) and are semi comfortable writing some PHP code. I'll be showing you some of the lesser known features of Symphony Events, including event priority, event chaining and a brief demonstration of how to write a custom Event. The difficulty level progresses as we go through, but with any luck you'll be able to learn a thing or two :)

這份教學文章假設你已經對

@wastemobile
wastemobile / hack.sh
Created March 31, 2012 13:12 — forked from erikh/hack.sh
OSX For Hackers
#!/usr/bin/env sh
##
# This is script with usefull tips taken from:
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
#
# install it:
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh
#
@wastemobile
wastemobile / A-Symphony-Workflow.markdown
Last active September 29, 2015 19:28 — forked from designermonkey/A-Symphony-Workflow.markdown
在安裝 Symphony CMS 之前,預先準備好三重主機(開發、測試、正式)的環境,主要是理解 Symphony 如何處理 Manifest 目錄的原理,就能順利規劃工作流程。但事情並不單純,若是安裝過程中移除了安裝檔(為了安全),後續的升級就會出現問題;資料庫的整合也不太容易。總而言之,Symphony CMS 在升級與部署這兩部分,還需要認真思考、並導入更便利的程序才行。

Symphony CMS 工作流程

原文是 John Porter 寫的《A Symphony Workflow》,參考了許多網路上的文章以及 O'Reilly's Version Control with git 一書的內容。

目的是建置一個 Symphony CMS 的開發與部屬環境,規範自己的工作方式,同時作為未來每一專案的開發基礎。

ps.Symphony CMS 確實只是個 PHP 的程式,而 PHP 的部署又遠比其他程序簡單,但 Symphony CMS 之所以部署起來複雜的原因,是因為使用了 git submodules 管理所有的外掛,外掛的安裝有可能會修改資料庫結構。Symphony CMS 的升級流程遠比想像中複雜難搞,這可能是未來的 Symphony CMS 必須審慎思考並重新架構的環節。

免責聲明