How to Add Twitter Timeline into my website?

How to Add Twitter Timeline into my website?

How to embed a timeline

Embedded timeline widgets give you the ability to embed a collection of Tweets (known as a timeline) on your own website. There are five types of embedded timelines available, all of which look and feel like timelines on twitter.com:

 

Firstly::

Go to this link & Enter Your Twitter Url to embedded…

https://publish.twitter.com/#

Embeeded Twitter

 

Then, Just Follow Instruction & Done..!!

 

Example::

  1. Go to https://publish.twitter.com/.
  2. Enter the URL of the timeline or Moment you’d like to embed.
  3. Customize the design by specifying the heighttheme(light or dark), and link color to match your website.
  4. Copy and paste the code into the HTML of your website wherever you would like the timeline to appear.
  5. You’re done!

 

source: https://help.twitter.com/en/using-twitter/embed-twitter-feed

 

How to Get the View Template Content as a String in Variable

How to Get the View Template Content as a String in Variable?

This is For Cakephp, It Loads the Template Content as a string in a variable.

$view = new View($this, false);
$view->set(compact('parameter1', $parameter1));
$view->set(compact('parameter2', $parameter2));
$html = $view->render('view_page_name');

How to Print Last Executed Query in CakePhp?

How to Print Last Executed Query in CakePhp?

 

Here, ModelName is the Query from Model Name

$dbo = $this->ModelName->getDatasource();
$logs = $dbo->getLog();
$log = end($logs['log']);


echo "<pre>"; print_r($log); echo "</pre>"; 
exit();

 

# The Output will come like this….

 

Array
(
    [query] => SELECT * FROM .......
    [params] => Array
                (
                )

    [affected] => 0
    [numRows] => 0
    [took] => 3
)

 

How to Remove SmartGit Update

How to Remove SmartGit Update?

 

# TO REMOVE SMART GIT UPDATE
Requires the Licence File or Key of Purchased.
#goto directory where smartgit is.
[email protected]:~# cd /root/
#remove the updates
[email protected]:~# rm -rf .smartgit/
#Then,run smartgit.sh file
[email protected]:~# sh /home/stack/Desktop/smartgit.sh
FINALLY DONE..!!