태그 : memo

memo/php] from zend coding convention

from Zend PHP Framework Manual

Appendix B. Zend Framework Coding Standard for PHP

Scope
  • PHP File Formatting
  • Naming Conventions
  • Coding Style
  • Inline Documentation
end.

by 낭망백수 | 2009/02/03 02:17 | fr_code | 트랙백 | 덧글(0)

memo/php] zend framework screencast summary

http://framework.zend.com/docs/screencasts

1. installing
  • zend framework 압축파일 중에서 library 만 있으면 된다.
  • rewriterule 과 pretty url
  • front controller 는 PUBLIC_HOME 폴더에,
  • application 서비스 로직은 application 폴더에.
2. bootstrapping
  • Error_Reporting
  • include_path
  • loading Zend_Loader
  • setup Front Controller Zend_Controller_Front
  • uri : http://domain.com/applicationRoot/controllerName/actionName
3. controllers & views
  • writting my own first controller
  • ㄴclass IndexController extends Zend_Controller_Action
  • ㄴpublic function indexAction
  • with view
  • ㄴHOME_PATH/application/views/scripts/index/index.phtml
  • writting my own Error Controller
  • ㄴclass ErrorController extends Zend_Controller_Action
  • ㄴㄴpublic function errorAction
  • ㄴHOME_PATH/application/views/scripts/error/error.phtml
4. extending
  • Example about Runtime Environment Configuration
  • importing Zend_Config_Ini
  • ㄴZend_Loader::loadClass('Zend_Config_Ini');
  • ㄴ$config = new Zend_Config_Ini('../application/config.ini', 'testGroup');
end.

by 낭망백수 | 2009/01/31 18:34 | fr_code | 트랙백 | 덧글(4)

javascript/jQuery] jQuery() 함수의 4가지 용법

fr. http://www.ibm.com/developerworks/library/x-ajaxjquery.html

jQuery() 함수 즉, $() 함수는 크게 4가지 기능을 갖고 있다.

  1. selector
    현재 jQuery 는 CSS1~3 까지;CSS3(CSS selector 는 하위호환 보장함.) selector 를 완전히 지원하고 있을 뿐 아니라, XPath 도 일부 기본적인 지원이 이루어진 상태다. 매개변수로 CSS selector 나 XPath query 를 그대로 넘겨주면 된다. CSS selector 의 완전 지원은 John Resig 에 의하면, 원조격인 Dean Edwards 의 cssQuery() 의 영향을 받았다고 한다.

  2. object context
    매개변수로 element 나 element 의 배열을 넘기면, 따라오는 method 를 각각의 context 로 실행한다.

  3. DOM Ready Listener
    일반적으로 2번의 형태로 DOM Ready Listener 를 다음과 같이 작성하게 되는데,
    $(document).ready(function() { ... } );
    매개변수로 function 만 그대로 넘겨도 동일하다.
    $(function(){ ... });

  4. DOM creator
    다음과 같이 string 매개변수에 의해 해당 element 를 생성할 수 있다.
    $('<p></p>').html('Hey world!').css('background', 'yellow').appendTo("body");


.

by 낭망백수 | 2008/12/30 23:09 | fr_code | 트랙백 | 덧글(0)

◀ 이전 페이지          다음 페이지 ▶