1. Go to this page and download the library: Download loadsys/cakephp_sociallinks library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
loadsys / cakephp_sociallinks example snippets
CakePlugin::load('SocialLinks');
public $actsAs = array(
'SocialLinks.SocialLinks' => array(
'blog' => 'blog', //blog field name in the database, or false if you don't have this field
'pinterest' => false, //pinterest field name in the database, or false if you don't have this field
'googleplus' => 'googleplus', //googleplus field name in the database, or false if you don't have this field
'youtube' => 'youtube', //youtube field name in the database, or false if you don't have this field
'linkedin' => 'linkedin', //linkedin field name in the database, or false if you don't have this field
'facebook' => 'facebook', //facebook field name in the database, or false if you don't have this field
'twitter' => 'twitter', //twitter field name in the database, or false if you don't have this field
),
);
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.