Tag: Business Website
CakePHP Security Component
CakePHP Security Component is very useful and provides an easy way to enable very tight security in our application: 1. It can restrict which HTTP methods our application accepts. 2. It provides Form Tampering Protection. 3. It can force to
Jquery | How to create/edit Jquery Datatable dynamically
How to create/edit Jquery Datatable dynamically? HTML code: <div class=”col-md-12 col-sm-12 col-xs-12″> <table id=”table”> <tbody> <tr> <th>Rules</th> </tr> </tbody> </table> </div> <button id=”go”>Go</button> Here is the javascript function: function addData() { var data=[this array contains all the values that we
Selenium Webdriver script | Open new browser tab and switch between tabs
In Selenium Webdriver script how to open a new browser tab and then switch between first browser tab and 2nd browser tab? Solution: This is the script to achieve it, go through comments in the code to understand how the
Totara | How to enroll audience to Course/Program
Problem: I want to enroll audience in course/program and I do not know that how we can enroll audience in course/program. To enroll audience in course/program, I have followed the below steps: Solution: 1.Click Audiences link. To click on Audience
Shopify webhook getting fired multiple times and then getting deleted from shopify store
In our Shopify store we have an order creation webhook that points to a cakephp action URL. The action that webhook points to fetches the order data and then saves this to the database. The problem that we were facing
Sorting Alphanumeric Data in PHP
While fetching data from database, in SQL query I had ‘order by’ clause but the results were not sorted when the data was in alphanumeric form. The reason for this is that SQL sorts character by character from left to
CakePHP | How to handle special characters (like apostrophes) in queries
Let us take an example: We have table employees with following fields: id int primary key, name varchar(50), city varchar(50) We have following records in the table: (1, isha, amr); (2, Hamlet’s, ghy); (3, éhjj, amr); 2nd and 3rd records
Why HTML tables are discouraged and HTML DIVs are promoted?
Sometimes we have a choice to use <table> tag or <div> tag but there are many advantages of using <div> tag over <table> tags. Firstly when browser loads a table it waits for entire table text to reach browser side
PostgreSQL | Create a connection to a local postgres database in pgAdmin |||
Steps to create a connection to a local postgres database in pgAdmin ||| : 1. Make sure PostgresSql and its components should be installed in ubuntu system. 2. Check what databases are available in postgresSql through terminal 3. Login to