Posts

Showing posts from December, 2014

Angular table with edit,update and delete

<!DOCTYPE html> <html lang="en" ng-app='MyApp' > <head> <title></title> <script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.3.5/angular.min.js"></script> <script> var app=angular.module('MyApp', []); app.controller('maincontroller',function($scope){ $scope.items=[ { name:"John Doe", city:'Ludhiana', state:'new York' }, { name:"John cena", city:'hariana', state:'USA' }, { name:"sunny", city:'Bombay', state:'Punjab' } ]; $scope.del=function(item){ console.log(item); }; $scope.add=true; $scope.addEnabled=function(){ $scope.add=false; } $scope.addItem=function(item){ console.log(item); $scope.items.push(item); $scope.add=true; };

Create Bundle in Symfony

Image
Youtube Li nk

Eloquent inside Codeigniter

Ever the diplomat, I’ve been doing my best to use components of the wonderful Laravel in CodeIgniter apps that I’ve been working on for clients. Whilst I’ve switched almost completely to using Laravel as of late, I still work on legacy CI apps (and still work with clients who use CI for new apps, for that matter.) At any rate, Laravel is designed in a modular fashion , allowing me to plug my favourite components into CodeIgniter and use them without too much friction. The most important of these components is, of course, the wonderful Eloquent ORM , which has provided me with as much joy as ActiveRecord did in the land of Ruby. Thankfully, getting Eloquent running inside CodeIgniter was easy. I’ll assume you have Composer installed – if you don’t, you really should. You’ll need to add Laravel’s database component to your composer.json (which includes Eloquent): { " require ": { " illuminate/database ": "4.2.6" } } I al