menu

Sunday 12 November 2017

Validating field with tooltip validation

When using FormValidation with some server-side frameworks such as CakePHPSymfonyRailsSpring, etc, there is a relationship between the model name and the attributename of input.
For example, assuming that a user is modeled by classUser withfirstNamelastName usernameemails[] properties.


git set up command

=========== Use GIT command ==========

>> sudo mkdir foldername
>> cd foldername/
>> git init
>> git remote add origin https://github.com/abc/project.git 


>> git fetch   
[ User : git-user-name , Pwd : git-pwd ]
>> git pull origin HEAD:Branch      [ User , Pwd ]
>> git add file_name.php
>> git commit -m "comment for add file"
>> git push origin HEAD:Branch     [ User , Pwd ]


>> git remote set-url origin https://git-user-name@github.com/abc/project.git    (For Setting Github User)

=============Add sql file in Xamp in ubuntu ===========

/opt/lampp/bin/php start
/opt/lampp/bin/mysql start

/opt/lampp/bin/mysql -h localhost -u root -p

use DatabseName; 
source /home/atul/Downloads/xyz.sql
==============Edit for file permission in wordpress ===============
find /path/to/your/wordpress/install/ a
find /path/to/your/wordpress/install/ -type f -exec chmod 644 {} \;
================== Add IP on host =================

sudo gedit /etc/hostname /etc/hosts
cd /etc
sudo gedit host

====================