Latest Post

How to revoke 'git add' before 'git commit' ?

Sometimes you need to undo your git file before you git comment command. Because you made a some misteck or wrong code and you did git add using "git add ." command then you think how to undo your code before git commit command. But you can do that using git reset command, if you need to undo all file Or you may need to undo just one then you can do using git reset command, you can see bellow command. <strong>Example:</strong> <pre> // For Spesific file git reset <filename> // For all files git reset </pre>

By Hardik Savani | February 28, 2016 | | 703 Viewer | Category : Git
READ MORE

How to create laravel 5 widgets ?

In this post you can learn how to create your own widgets in laravel 5.2, First thing why we are create widgets, So we can use widget because when we can create re-usable code, for example you have manu items and comes from database like home, items, products, aboutus, contact us etc. you require to display in top header, in sidebar and in footer. But in top you have to just display home and aboutus, and in sidebar products and items same that way in footer. So, basically you have to display in three place in your site page. widgets through you can make one function or view and call just one w.....

By Hardik Savani | February 27, 2016 | | 5362 Viewer | Category : Laravel Pingpong
READ MORE

How to get ckeditor value with tags on ajax-submit ?

If you are use ckeditor for textarea and you need to fore ajax submit or form js submit, but you can't find ckeditor value in your controller or php file. So, first you have to update field using CKEDITOR.instances. so you can try to following code. <pre class="language-javascript"> for ( instance in CKEDITOR.instances ) CKEDITOR.instances[instance].updateElement(); </pre>

By Hardik Savani | February 26, 2016 | | 1299 Viewer | Category : PHP Javascript jQuery
READ MORE

How to get max attribute value in jquery?

Sometimes, you have a many tag with same class and attribute with value, but you need to find maximal value of attribute from that comman class, In bellow you have same html tag: <pre class="code language-html"> <ul> <li class="test" data-id="3">hi</li> <li class="test" data-id="5">hey</li> <li class="test" data-id="1">hello</li> </ul> </pre> Now, you require to get max value, i mean you need to 5, because that is big value from other, so you can get maximal value from this way: <pre class="language-javascript"> var max = 0; $('.test').each(fu.....

By Hardik Savani | February 23, 2016 | | 649 Viewer | Category : Javascript HTML jQuery
READ MORE

Codeigniter Angularjs http post not working

Sometimes, you face problem you can't get post data using $this->input->post(), when you fire $http.post() using AngularJS or Jquery. I also face this issue, i can't receive post value when i fire $http.post in AngularJS, But i found how to receive post data or json data in Codeigniter controller. in following example through you can solve your problem: <pre class="language-php"> public function store() { $this->load->database(); $_POST = json_decode(file_get_contents('php://input'), true); $posts = $this->input->post(); $this->db->insert('posts', $posts); } </pre>

By Hardik Savani | February 22, 2016 | | 1829 Viewer | Category : PHP jQuery AngularJS Codeigniter
READ MORE


Jquery Plugin RAND() Fetch POST Ajax Chosen JS Pagination strtolower RSS Confirm Box Column Laravel Resource marker Authentication HTML nl2br Limit Query After Script Variable enableQueryLog Laravel 5 Solve Class screenshotmachine.com API Config Email Verification Setup MySql Repo Value AngularJS Directive PHP dompdf Contact US Form Join Strings Where Not In Query refspec Excel Ip Address Letter Percentage Client side validation Request Method Form Validation Flash Message Parsleyjs Image Upload Protection Enable SEO Origin Sitemap Tooltip Billing groupBy() Cross Inserted Id Highchart PHPUnit Mysql Concat filesize() Message Socialite Ionic framework Cache Blocked file_exists() Executed Select Query Node JS Object to Array COUNT() Apache clearbit API uppercase chmod Timepicker Current mysqld.sock colorpicker Capitalize thujohn/twitter package thomaswelton/laravel-gravatar Form Jquery File Upload Index Force preg_match Technology Bootstrap maxlength plugin Example csv Chart.js First Bootstrap show password Plugin Linux Google Map Namespace tagsinput.js Allow oauth public_path Image Gallery split Log Bootstrap Notify Plugin Sortable Bootstrap Plugin timestamps Mail php artisan serve Scout Package Admin Bootstrap Theme Package Attribute Middleware HTML to PDF ID ANDROID_HOME setInterval() Div roumen/sitemap Record Commit Sql Jquery UI Sublime text 3 Global Variable Number Remote Resize Image Language SweetAlert Plugin laravel-elixir roumen/feed package ajaxComplete Ubuntu 14.04 Zip Highlight JS Local Controluser execute query Mailgun API Artisan Command JS node.js DB MySQL Subquery