我有一个用api_helper.php编写的API助手。我正在jQuery中使用AJAX执行前端API调用。现在,我还需要调用在getDataFromAPI()中定义的特定函数api_helper.php,因为我正在执行后端API调用-
在api_helper.php中
function getDatafromAPI($ gstNo){
$response = fun($gstNo); // some xyz function for getting API data
return $response;
}
$gstNo= $_GET[
我已经在我的yii2高级项目上创建了一个自定义小部件
在后端dir中创建新的dir名称组件之后,在components dir name视图中再次创建新dir。
在后端/组件中,我创建了新的SideBWidget.php文件名
<?php
namespace backend\components;
use yii\base\Widget;
use yii\helpers\Html;
use common\models\Content;
class SideBWidget extends Widget{
public function run(){
$mod
我有两个php页面来更新帐户,一个前端和一个后端。
前端(重要部分):
<?php
session_cache_limiter('none');
session_start(); //session gets started
include_once 'includes/db_connection.php';
include_once 'includes/signin.php'; //file that deals with login and creates the session variables
include