Skip to main content

Posts

Flash Message

https://packagist.org/packages/tamtamchik/simple-flash Demo:  http://demo.tamtamchika.net/simple-flash/examples/ Install Via  Composer . $ composer require tamtamchik/simple-flash Inside your project make sure to start a session and load  Composer  autoload to make everything work. <?php // Start a Session if( !session_id() ) @session_start(); // Initialize Composer Autoload require_once 'vendor/autoload.php'; Warning!  This library contains global  flash()  function, that potentially can break your function with this name. Now you are warned! Usage There are 3 ways to use library: use \Tamtamchik\SimpleFlash\Flash; // Instance $flash = new Flash(); $flash->message('Tea.'); // Static Flash::message('Earl Gray.'); // Function flash()->message('Hot!'); Messages added by calling  message($message, $type = 'info')  method. In case of calling a function  flash()  you can pass  $message, $type ...

What is the difference betweeb GitHub,GibLab and BitBuckect ?

GitHub vs GitLab vs BitBucket Server (Formerly Stash) 11 Replies This article will try to compare  GitHub ,  GitLab  and  BitBucket Server  (previously called Stash) installed on your own servers. Similar comparison of cloud offerings is outside the scope of this article. I won’t try to go feature by feature in some kind of a table so that you can count who has more features. I find that approach often misleading even though it’s very commonly used among companies (especially where there is a software architect around). Instead, I’ll give my opinionated view. GitHub GitHub has a great, intuitive, informative and, to many, familiar UI. Its big advantage is that most of us already used GitHub.com  (if not as a repository than at least to clone someone some code or to look at snippets). If installed on our own servers, most developers will feel at home. It features LDAP integration, integration with JIRA and many other features important to tod...

What is Different Between Lamp,Wamp,Mamp and Xampp

The major Difference Between WAMP, LAMP, MAMP AND XAMPP   is operating system. Lamp is for Linux operating system Wamp is for windows operating system Mamp is for Mac OS X operating system. xampp is  for x-os, apache, mysql, php , perl.  What is LAM P SERVER ? 1.Full form of LAMP is  L inux,  A pache,  M ySQL and  P HP. 2.This is a open source platform. 3. LAMP Server is work on Linux Operating System only. 4. LAMP is a combine package of   L inux,  A pache,  M ySQL and  P HP. 5. Apache is the web server 6. Mysql is the relational database management system. 7. PHP is the object-oriented scripting language. What is WAM P SERVER ? 1.Full form of WAMP is Windows,  A pache,  M ySQL and  P HP. 2.This is a open source platform. 3. WAMP Server is work on Windows Operating System only. 4. LAMP is a combine package of  Windows,  A pach...

enable and disable submit but after submit form

< html > < head > < script type = " text/javascript " src = " jquery-1.4.2.min.js " > </ script > < style type = " text/css " > .submit { padding : 8px ; border : 1px solid blue ; } </ style > </ head > < body > < h1 > Disabled submit form button after clicked with jQuery </ h1 > < form action = " # " > < p > I'm a form ~ </ p > < input type = " submit " value = " Submit " > </ input > < button > Enable Submit Button </ button > </ form > < script type = " text/javascript " > $ ( 'input:submit' ) . click ( function ( ) { $ ( 'p' ) . text ( "Form submiting....." ) . addClass ( 'submit' ) ; $ ( 'input:submit' ) . attr ( "disabled" , true ) ; } ) ; $ ( 'button' ) . click ( function...