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 | | 1266 Viewer | Category : Git

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 | | 12645 Viewer | Category : Laravel Pingpong

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 | | 2817 Viewer | Category : PHP Javascript jQuery

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 | | 1392 Viewer | Category : Javascript HTML jQuery

Codeigniter Angularjs http post not working

Sometimes, you face problem you can't get post data using $this->input->post(), when you fire $ using AngularJS or Jquery. I also face this issue, i can't receive post value when i fire $ 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 | | 3242 Viewer | Category : PHP jQuery AngularJS Codeigniter

Query array_change_key_case Animation Website Validation Links split 500 error page MassAssignmentException Homepage tagsinput.js ACL Event slice() Xampp Generate Custom Strip Tags Bootstrap Notify Plugin Field ServiceProvider Demo Chat Datepicker Scroll PingPong preg_match Bootstrap Tokenfield Plugin Database Seeder getQueryLog Command Eloquent-Sluggable Package Setup Request Method pop() Loop Message Cross Dropzone.js Chart.js Reset Null CASE_LOWER Laravel 5 dompdf Pagination Pull PHPUnit Sublime text 3 node.js Issue Javascript HTML RSS Feed PostgreSQL Image Paging Element Bootstrap Confirmation js plugin Composer API Controluser FIND_IN_SET() SUBSTRING_INDEX() select2.js Google Map Multi Auth Chart Library Resize Image Controller setInterval() date_format() ppa Query Builder Jquery Dialog Box max_file_uploads hasTable Kyslik/column-sortable package Log Jquery Modal Index XML SEO Exists PHP API Calculate Specific Ajax pngquant summernote marker Popup Box Auth Sub-Domain Div file_exists Custom Command guzzle http client Package Inserted Id clearInterval() Stripe xoxco tags input Mail Gravatar Image Collapse webpatser/laravel-uuid Namespace ajaxStart Sql thujohn/twitter package File Bitbucket Import User Update Dialog box Cache Limit Attribute Special Version Each bplist-parser Parsleyjs Number Repository Pattern Base URL csrf_token Module Now PayPal enableQueryLog DATEDIFF() Redirect phpmyadmin Percentage Autocomplete oauth Zoho mail Trans Helper daterangepicker Accordion Export ngclipboard.js meta http-equiv tag file_exists() php.ini