The partial view is a special view used to render a portion of view content. It is a reusable view. It reduces code duplication. We can say that a partial view enables us to render a view within the parent view.
In other words, if the view does not contain Read more…
First of all, we need some dummy XML data for parsing as given below:
The above XML has many tags. The first one being the XML tag which lets us know that it is an XML document. Moving on to the next one we have Read more…
CakePHP uses a two-layered approach to validation:
It determines basic validity. It ensures that the data types, size, and format of data are correct. When we call newEntity() or patchEntity() methods, validations are triggered. For example, checking if an email address Read more…
The mysqli_query statement
Generally, we use mysqli_query to execute Mysql queries in PHP. We can use multiple mysqli_query statements to execute multiple operations like insert, update, and select. Sometimes, we store records in more than one table during save operation at the backend, but it is Read more…
Introduction to Laravel 5.4
A log file is a file that keeps a registry or records of events, processes, messages that occur in the operating system or any software runs.
-Laravel provides the robust logging services that allow the user to log Read more…
Problem – Getting “Class ‘MongoDB\Driver\Manager’ not found” error while inserting some data in the collection (Laravel)
Check the following three points in order to resolve the MongoDB driver issue in Laravel:
1. PHP Module
2. MongoDB Extension
3. MongoDB Library
1. PHP Module –Read more…
Methods of Debugging by dumping information
These methods are used for debugging in PHP. We can see the variable values in human-readable form on the console and can find errors in case there are issues due to variables incorrect values. print_r() and var_dump() are used Read more…
Bootstrap Templates, Grid System and Media-queries
What is Bootstrap?
Collections in C#
Arrays are useful for creating and working with a fixed number of strongly typed objects.
Problem with Arrays:
1. Fixed length
2. Insert similar data type elements
Collections are used to create and Read more…
Progress Bar For Large Uploads Using AJAX/PHP
When large files are being uploaded, a server at the back takes time to upload the same file. Users have to wait irrespective of knowing, whether the file is even being uploaded or not and how much Read more…
Collecting Information or data from the system and storing it in a specific file is called logging. It may contain information or data for short or longer periods. Logs are the only way to troubleshoot an issue which the user has with the system.
Do logging correctly:
Creating Read more…
Auto-Renew “Let’s encrypt” SSL Certificate using certbot
Make sure Domain is pointed to the server and should only be using IPv4 version. IPv6 will not work and you must have pre-configured the domain in apache configuration and make sure your default enabled ssl Read more…
Persist Data Using AsyncStorage in React Native
There are various ways to preserve the data in React Native but AsyncStorage is the most recommended way to persist data in your React Native applications as it is a built-in feature.
AsyncStorage is a simple, unencrypted, asynchronous Read more…
How to Create a drop-down with search capability using Devextreme components
Many of you might have seen a drop-down menu with a search capability that appears in Gmail on Move To Button click as shown in the screenshot below.
Similarly below is Read more…
Import Gravity Forms through code – WordPress
Gravity form is a WordPress plugin that is basically used to build and publish the WordPress forms.
Sometimes the situation arises when we need to import Gravity Forms through code.
For instance, I needed gravity forms to be available in Read more…
Totara – How to programmatically Enroll User into Course along with the corresponding Group
As a trainer or a manager, if you go to Gradebook screen you will see the dropdown of group names there, on which you can filter the gradebook records by selecting a group Read more…
Language pack updation in Totara 11
In previous versions of Totara, we were required to update the version of plugin in version.php file to reflect the language file changes. Therefore for a single string change the plugin version needed to be updated.
In Totara 11 Read more…
How to set the values of Metadata(Column fields) of Sharepoint Documents
Here is the code in C# which helps you to change the metadata field values of Sharepoint Files.
//This manager class can be used to obtain a SharePointContext object
OfficeDevPnP.Core.AuthenticationManager authMgr = new Read more…