DevArticles.In

Tips, Tricks, References and Bookmarks

  • Home
  • Hindi to Unicode
  • About
  • Contact

Month: March 2015

CakePHP deleteButton when SoftDelete Behavior in Effect

Arvind KumarCakePHPLeave a Comment on CakePHP deleteButton when SoftDelete Behavior in Effect

Here is a piece of code placed as a helper function. Useful to create a delete button/link while having SoftDeleteBehavior enabled for a Model. For example, placed in data management page (view page such as admin_index.ctp or index.ctp) of your…

Read More→

Bootstrap 3 List group horizontal

Arvind KumarHTML and CSSLeave a Comment on Bootstrap 3 List group horizontal

This page http://goo.gl/262QmJ has a css to make a list-group floating horizontally and sticking together like it does for list-group to render vertically by default. In order to float list-group-items float horizontally one may add a “list-inline” style to UL…

Read More→

Fully-formatted Time Difference between two Dates

Arvind KumarPHPLeave a Comment on Fully-formatted Time Difference between two Dates
A simple way to debug a php application in production mode

An useful php function to calculate a time difference between two dates given in sql format. If the newer date is not passed as second argument it would calculate the different between the old date and current time. So it…

Read More→

Form Helper: custom decimal field format in number field

Arvind KumarCakePHPLeave a Comment on Form Helper: custom decimal field format in number field

I have a database table field defined as decimal(10,5). I want to use it for various purposes so I don’t want to change the datatype. In most of the forms however I want to keep this field showing none or very…

Read More→

ACL: Checking Permissions in Views, Fixed

Arvind KumarCakePHPLeave a Comment on ACL: Checking Permissions in Views, Fixed

Following the post (http://goo.gl/PLeNJR) for ACL: Checking Permissions in Views like some others I faced a “undefined index User…” and some other PHP warnings when trying to implement this example. After doing some testing following the working code I came…

Read More→

  • Useful Linux Commands
  • Disk Space Usage Commands
  • Top Directory Linux commands

Recent Posts

  • How to Remove Appends Attributes from Laravel Eloquent Model
  • How TO – Remove a Property from an Object in JavaScript
  • Array Destructuring With or Without List Function in PHP
  • Git Cannot open .git/FETCH_HEAD: Permission denied Solution
  • How to Check Laravel Version using CLI and File System

About Arvind

Arvind Thakur is a Full Stack Web Developer. He founded and runs a Software Development company by the name Inimist Technologies in Chandigarh, India. >> know more
Copyright © All rights reserved.
Blog Kit by WP Charms