Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / New
Stats: 3,150,816 members, 7,810,132 topics. Date: Friday, 26 April 2024 at 09:25 PM

Please I Need Help On Ionic Framework Working With A Cakephp Project. - Programming - Nairaland

Nairaland Forum / Science/Technology / Programming / Please I Need Help On Ionic Framework Working With A Cakephp Project. (986 Views)

Cakephp Web Developer Needed For Website Upgrade / IONIC 3 Cordova Build Android Apk Without Android Studio Install / Cakephp (2) (3) (4)

(1) (Reply)

Please I Need Help On Ionic Framework Working With A Cakephp Project. by ehis05(m): 9:17am On Jun 07, 2017
Been asked to build a mobile app using ionic for a project that was done using cakephp, meaning i have to submit to different methods in the controller, Retrieve data as well with from different methods...Please is there anyone that has done something similar or have an ebook that i would find useful.. No much resources about this online..Thanks
Re: Please I Need Help On Ionic Framework Working With A Cakephp Project. by Nobody: 9:43am On Jun 07, 2017
// Create and load the Modal
$ionicModal.fromTemplateUrl
( 'aboutus.html' , function
(modal) {
$scope.taskModal = modal;
}, {
scope: $scope,
animation : 'slide-in-up'
})


//get data from Json
data feed do this for all data store

.controller('feeds', function($scope, $http){
$http.get('js/data/feeds.json').then(function(response){
$scope.feeds = response.data
});



// get data from json
$http.get('https://www.example.com/feeds.json').map(res => res.json()).subscribe(data => {
console.log(data);


    });

 






for the app.js


.state('app.home', {
url: '/home',
views: {
'menuContent': {
templateUrl: 'home/index.html',
controller: 'homeCtrl'

})
;







http://doc.ionicmaterialdesign.com

open command prompt


cd your_project_path/IonicMaterialDesign


ionic plugin add cordova-plugin-inappbrowser

ionic plugin add cordova-plugin-splashscreen




import the code to your code editor



u need to use the command for ionic app in browser plugin

http://sourcefreeze.com/cordova-inappbrowser-plugin-example-using-ionic-framework/



window.location.href="http://Google.com";

can be use to link a site URL to an app.


while
window . open ( 'http://google.com);
link the page to an external browser like chrome.



Or
this method.
for rest api


Incase the scrape data from your the website
with Spinn3r or ParseHub in json and parse the data as an object in the app.
Tools

Cordova /intelxdk/phonegap

need bracket or sublime text for Cordova/phonegap
.Intel xdk is very easy to setup with many features. u can run ,build app using commands or phonegap build. Intel xdk will build it automatically and send the app to your mail .




code and explore!!!!!

(1) (Reply)

App Developer Needed At Astute Financials / How To Become An Ethical Hacker With All Your Needs / Op 5 Trends In Cybersecurity For 2017 And 2018

(Go Up)

Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health
religion celebs tv-movies music-radio literature webmasters programming techmarket

Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10)

Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 9
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or uploads on Nairaland.