I already ran yii2 in yii1 application according to this tutorial. It works, but what kind of functionality of yii2, can I use?
Can I create new controllers, modules or ActiveRecords and so on as in yii2?
Related
Is it possible to connect to a MySQL database directly from an Ionic application without an integration/api layer?
All the answers I found online suggest to create API in php or nodejs, but I would like to develop a sql client and the whole point of the application is to be able to make queries directly from the client device.
I cannot use the node mysql library from client side.
I am using Ionic 6 React.
No, as noted by Mostafa Harb, you cannot directly access a MySQL database in the cloud from a device. You'll need to use some kind of API.
The basic flow:
Ionic app authenticates to the API if necessary.
Ionic app uses Axios or Fetch to use the API to query the cloud database.
The API returns the response in a format the Ionic app understands.
The good thing about Ionic is that it is mostly framework-agnostic, so you can use any API you like.
Personally, I use Drupal, which is a PHP-based CMS that has support for providing access to Ionic via REST, JSON:API, or GraphQL (or a mix of the three).
I would like to use one application from 3rd party in my react project. For example: there is a "mindomo" webapp. Now I want to use this webapp in my react project to complete my project. I tried searching for API also but I couldn't find any. How should I do it?
I have to create a application with 1). a webinterface and 2). an ios/android app. I will use Laravel as backend framework.
Now I can use Laravel for the webinterface and the API, and Ionic for the app (that communicates with the Laravel API).
The "problem" is: I have to create 2 webinterfaces... (the Laravel online webinterface AND the Ionic webinterface (= offline in a ios/android WebView)).
Thats why my question is: can I run Ionic (or another alternative) as frontend framework in my Laravel? So I can run this Ionic interface in my app webview? I need the same functionalities, like camera, GPS, push, etc. as the "normal" Ionic.
Or is there an alternative with the same look and feel as Ionic, but 100% online? So I can run my webapplication in a WebView container.
I wanna make a web application using Yii2 framework. I want to make a subdomain for mobile like m.khaana.af just with one installations yii in primary domain khaana.af.
Just like mobile.de
Yii2 advanced template is useful for building multiple domains or subdomains with one time Yii installations.
Ex:- you want to build 3 domains like example.com, m.example.com, blog.example.com
Yii2
Frontend
Backend
Mobile
Blog
Create a sub folder like above then setup Document Root of sub domain to newly created folder.
For more info about Yii2 advanced application structure
Yii2 Advanced Structure
I hope, you will be clear about this.
I have installed a yii2 advanced setup and wanted to setup themes for frontend and backend. i have already checked yii official website but unable to find proper tutorial. Please someone help me to resolve it.
you can use:
search doingiteasy in youtube have great video tutorial in yii2
yii2 forum community
yii2 tutorial Guide
pdf yii2 tutorial
and you can also use stack over flow!!!!
Updated Part:
as my perspective the frontend is for your application
and backend is for your admin panel
and common part it's the part that is share between those!!!