Home /Welocme to CodeHiCode

Message: Declaration of MX_Loader::helpers($helpers) should be compatible with ITF_Loader::helpers($helpers = Array) in CI

While get error after upgrading php 7 We have to change in files /system/core/Loader.php /system/core/Lang.php //function load($langfile = ”, $idiom = ”, $return = FALSE, $add_suffix = TRUE, $alt_path = ”) function load($langfile, $idiom, $return = FALSE, $add_suffix = TRUE, $alt_path) Just remove by default variable see the above line in both files it will … Continue reading

Displaying variables in a blade template

In this section, we will define a name variable and pass it to our blade template view open /app/Http/routes.php modify the blade route to the following [CHC_CODE]Route::get(‘blade’, function () { return view(‘page’,array(‘name’ => ‘The Raven’)); }); [/CHC_CODE] We will now update pages.blade.php is display the variable  Open /resources/views/page.blade.php Update the contents to the following [CHC_CODE]@extends(‘layouts.master’) … Continue reading

Extending the master layout in blade

We will now create a page that extends the master layout.  create a new page page.blade.php in /resources/views/page.blade.php add the following code [CHC_CODE]@extends(‘layouts.master’) @section(‘title’, ‘Page Title’) @section(‘sidebar’) @parent <p>This is appended to the master sidebar.</p> @endsection @section(‘content’) <p>This is my body content.</p> @endsection [/CHC_CODE] HERE, @extends(‘layouts.master’) extends the master layout @section(‘title’, ‘Page Title’) sets the … Continue reading

Ruby ssl certificate verify failed windows

Download (Zip File) Click for Download Exract it and copy this file in your RailsInstaller folder (C:\RailsInstaller\cacert.pem) as a .pem file. Go to your Computer -> Advanced Settings -> Environment Variables Create a new System Variable: Variable: SSL_CERT_FILE Value: C:\RailsInstaller\cacert.pem Close all your command prompts, including your Rails server command prompt, etc. Note: First close … Continue reading

How To Install MySQL / MariaDB on CentOS 7

MariaDB is a drop-in replacement for MySQL. It is easy to install, offers many speed and performance improvements, and is easy to integrate into most MySQL deployments. Answers for compatibility questions can be found at: MariaDB versus MySQL – Compatibility. MariaDB offers more storage engines than MySQL, including Cassandra (NoSQL, in MariaDB Version 10), XtraDB … Continue reading