Is there oauth based Twitter datasource available for CakePHP? - cakephp

There is one available for old basic authentication which doesn't work anymore.

This is a good intro to this kind of thing, in case you want to write your own, or use Neils plugin.
http://tv.cakephp.org/video/CakeFoundation/2010/12/24/neil_crookes_-_designing_cakephp_plugins_for_consuming_apis

GitHub is full of Twitter plugins. Google this:
site:github.com twitter cakephp oauth
Or, if you feel like writing from scratch: http://code.42dh.com/oauth/
It has a small Twitter example.

There is such a project on Google Code: http://code.google.com/p/cakephp-twitter-oauth-datasource/ though I don't know whether it still works as it was released around one year ago.

Related

Can I use React for my UI on a Wordpress project?

I have been playing with wordpress lately and I managed to deploy a simple page via a web hosting company (whc) with a domain name and everything. I love working with React and I am looking to understand how it would work in order to use WordPress with React. I played a bit with the ReactPress plugin and went through some ressources online but I am still unsuccesfull. From my understanding they are two main ways to do such a thing and I think I am mixing them up. I was wondering if there is a clear way to do so. Any info will be very welcome
There's a React framework for WordPress. You may check that.
https://frontity.org/ have a look

Mobile app with codeigniter

I am a first year "computer programmer" college student and I got an internship where I was asked to develop a simple cross platform mobile app. Nothing too complex, consists in a login screen, then a screen with a form where I'm using jQuery UI autocomplete to get some info from the DB, a select box, datepicker and a text area. The other screen is just a table with information with the current day, week and month records of whoever is logged in.
I am using HTML5 and CSS for the front-end and php with Codeigniter to connect to mySQL DB.
The question is: I intend to use phonegap to turn it into a hybrid mobile app. Would you consider this a good approach? Or would it be worth it to delay the project a little more and learn how to do it using Ionic framework for the front-end and learn how to use node.js to connect with the database? Also I could use Ionic for front-end so it feels more like a native app and still use Codeigniter to connect to my server. I'd love to read your opinions and suggestions on this.
Thanks in advance.
I would highly recommend using Ionic for the app, you get a lot of stuff right out of the box that you will otherwise have to figure out your self.
Getting started with ionic is as easy as writing 'ionic start' and choosing a name for your project and a template to start from.
Depending on you level of web development skills you could really quickly end up with a app of spaghetti code without some kind of framework to set up some guidelines on how to structure your project.
As for the backend I will recommend you to use what ever you feel the most comfortable with as long as it easily can expose the REST endpoints you need.
Lucas Berte Schoenardie,
Since jquery mobile is not updated last two years so it will be better to choice IONIC which is using AngularJS (Google product) and App with Ionic is more native than PhoneGap( using jquery).
This reference on StockOverFlow may help you to take appropriate decision.
Thank you!

Twitter Api 1.1 , Get feeds using ngCordova

I have been working on twitter feed in cordova using angularjs.
I have created app in my account and have generated consumer key and secret key and also access token.
User cordova-twitter plugin
cordovaOauth
I have tried this few links but nothing working for me.
Please help me out with this issue as am beginner with this twitter and could'nt find any tutorial for beginners.
Thank you everyone.
I found it difficult to implement twitter in cordova. Hence i went in other way. I have used PHP to get feeds from twitter and then call that api in my app.
Integrating in php was much simpler. But still if some one has better idea please post it here, it might be helpfull in future.

Pluggable-app-style for angularjs website

We are building a website allowing 3rd party (ourselves included) to write plugins and install into the platform. Basically, you can imagine of wordpress written in angularjs, and webmasters have options of install modules (for example Q&A , forum/whatever) into it.
I am thinking about something like this. Using server code to create main-app code (app.js as in standard naming)
angular.module("thePlatform", [
'plugin.forum',
'plugin.musicStore',
'plugin.whatever'
]);
whereas forum/musicStore/whatever are plugin that can be installed/unsinstalled into the platform.
Is that a good choice ? Or should we go for the SinglePage-Solution like that? If you have better approach, please !
Note: I did google before asking but couldn't find any answer:
https://softwareengineering.stackexchange.com/questions/239056/angularjs-structuring-a-web-application-with-multiple-ng-apps
AngularJS websites: single SPA vs multiple SPA apps/components

Using CakePHP 1.3 but have no database

What's a good why to use CakePHP 1.3 for my website, but I have no database, since the site is pretty static?
You can use simple HTML to develop a site which is having all Static Content. And if it having a single contct page or something which you can develop in simple PHP. You don't need to use CakePHP for that.
CakePHP framework is used for web application that needs to interact more with databases.
Although I generally agree with gvLearner's point if you'd like to have a static html site, but still use some of CakePHP's abilities and be able to easily transform the site to a dynamic one in the future you can use Cake's built in Pages Controller.
The CakePHP core ships with a default controller called the Pages Controller that is generally used to serve static pages. Check out the documentation link I sent, I hope it'd would do you good.
Cheers,
Borislav.

Resources