컨트롤러의 해해! 기본var myApp = angular.module('myApp',[]); myApp.controller('GreetingController', ['$scope', function($scope) { $scope.greeting = 'Hola!'; }]); {{ greeting }} Adding Behavior to a Scope Objectvar myApp = angular.module('myApp',[]); myApp.controller('DoubleController', ['$scope', function($scope) { $scope.double = function(value) { return value * 2; }; }]); Two times equals {{ double(num..
출처 : http://speckyboy.com/2013/01/08/useful-htaccess-snippets-and-hacks/1. Controlling Access to Files and DirectoriesPassword protection is one thing, but sometimes you may need to completely block users from having the option of accessing a particular file or directory. This usually happens with system folders, such as the includes folder for which applications will need access but no users wi..
jQuery 1.8 이상 부타는 두번째 파라미터에 다양한 오브젝 속성을 추가할수 있다. $( "", { "class": "my-div", on: { touchstart: function( event ) { // Do something } }}).appendTo( "body" ); Attribute values in selector expressions must follow the rules for W3C CSS selectors; in general, that means anything other than avalid identifier should be surrounded by quotation marks.double quotes inside single quotes: $('a[rel="nofollow..
// Override show_404 method function show_404(){ // Load Router and Core classes. $RTR =& load_class('Router', 'core'); // Get class and method for 404 from routes.php $x = explode('/', $RTR->routes['404_override']); $class = $x[0]; $method = (isset($x[1]) ? $x[1] : 'index'); // Get current class and method for callback $callback_class = $RTR->fetch_class(); $callback_method = $RTR->fetch_method..