Tag › php


Create Angular 5 and Laravel 5.6 CRUD app
A tutorial showing how to create an Angular 5 and Laravel 5.6 via CRUD app from installing Node, NPM, and through to the final app.


PHP convert stdClass() object into JSON data
I recently had a problem that I had to convert an stdClass() object into a JSON data using php. The reason being that jQuery could only read the JSON.


Pass email in CodeIgniter url with jQuery and php
Sometimes when trying to pass characters in a CodeIgniter url it causes the error - 'The URI you submitted has disallowed characters.' Here is my fix.


Reset cookies expiry date is not working in php
Recently I was trying to unset a cookie by resetting its expiry date back an hour. But for some reason it would not work. But this is the fix I used.


Hide google analytics on preview posts/pages
Here is how to hide google analytics code on the 'footer.php' file in WordPress, so it stops appearing when previewing the posts and pages in admin.


Add widget to header in WordPress
If you want to add a widget to your WordPress theme header and in your admin (Appearance -> Widgets) then this is the php code to use.


jQuery datepicker disable dates
Here is a nifty little script for disabling dates using jQuerys datepicker. Plus a script in php to output the date range.


Call CodeIgniter MySQL query inside a helper file
This is a short snippet of php code if you want to use a CodeIgniter database query inside a helper file/function: application/helpers/. Very easy to use.


Should we be using CodeIgniter?
Are you wondering if it's a steep learning curve for CodeIgniter... I suspect It's probably very similar to what you already coding in php classes.


Passing data between jQuery and PHP
Here is a basic example of passing form data to a PHP file via jQuery and then passing data back to jQuery from the PHP file via an ajax style script.


PHP code for outputting twitter RSS feed
A PHP script for a twitter RSS feed. It allow you to backup the RSS feed as an xml file on the server plus schedule backups and number of feeds to output.


Change number of products per row on search results page
The problem I had was to change the number of products on each row on the search results page from 4 to 3. I was also using version 1.4.x of OpenCart.