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:
Go to this link & Enter Your Twitter Url to embedded…
Then, Just Follow Instruction & Done..!!
- Go to https://publish.twitter.com/.
- Enter the URL of the timeline or Moment you’d like to embed.
- Customize the design by specifying the height, theme(light or dark), and link color to match your website.
- Copy and paste the code into the HTML of your website wherever you would like the timeline to appear.
- You’re done!
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);
$html = $view->render('view_page_name');
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>";
# The Output will come like this….
[query] => SELECT * FROM .......
[params] => Array
[affected] => 0
[numRows] => 0
[took] => 3
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