Category: PHP Frameworks
Application Structure comparison between Laravel and Cakephp 3.x
Cakephp and Laravel are MVC frameworks for php. Both frameworks have totally different application structure. In the following document I have described all the important folders and their respective locations in Cakephp and Laravel (project_name is the root folder of
Moodle/Totara | Different ways to enable/disable maintenance mode
There are multiple ways to enable/disable maintenance mode in Moodle. From UI Enable Maintenance Mode: * Go to the Site Administration. * Click on Server. * Click on Maintenance Mode option: * On the next screen: Maintenance mode ->Select “Enable”
WordPress | How To change login (wp-admin) page css in WordPress
In wordpress, we can also change the appearance of wp-login page. There are so many plugins available for this purpose like Alter – White Label WordPress plugin. We can change the appearance of wp-login page through this plugin like I
CakePHP | Send Email using SMTP in cakephp 3
1. Open config/app.php file inside your project and then modify the default email configuration and setup your SMTP account there: ‘EmailTransport’ => [ ‘default’ => [ ‘className’ => ‘SMTP’, // The following keys are used in SMTP transports ‘host’ =>
Cakephp 3.0 | Methods to get base and application url
In cakephp we do not need to set hard coded relative paths.There are methods by calling which we can build the url dynamically. use Cake\Routing\Router; To get the base url use Router::fullBaseUrl(); => http://localhost //Output To get the Application Url
PHP | Send mail through Gmail SMTP server and phpmailer
We have mail() function to send emails in PHP. It uses built in sendmail command that uses local mail server to send emails. PHPMailer, on the other hand, is very different. Rather than relying on sendmail, it communicates directly with
Couple of different ways to rename table name through UI in phpmyadmin
First method: 1. Click on the database (from list of databases on the phpMyAdmin home screen) in which you want to rename table name. 2. You will see a list of tables on click of the database. 3. Select the
What is PDO? Why PDO should be used in PHP?
PDO stands for PHP Data Objects. PDO is a consistent way to access databases. Today, mostly websites or desktop based applications store their data in databases. Therefore, PHP has also provided the way to connect with databases. PHP supports following
Moodle | Hyperlinks in course summary
In Moodle when we create a new course we have an option to add summary/description of course. We can use this summary anywhere while showing courses. This summary could be anything. It can be simple text, image, multimedia or hyperlinks.