English 中文(简体)
甲型六氯环己烷
原标题:yii class is not loading
  • 时间:2011-11-23 10:36:29
  •  标签:
  • php
  • yii

在试图将我自己的班级图书馆列入<代码>时 页: 1 我利用该守则在<代码>中列入一个类别档案。 页: 1

Yii::import( application.apis.myapi.* );

我的文件载于[protected/apis/myapi.php]

我不知道我正在发现这一错误:

[YiiBase::include(myapi.php) [<a href= function.YiiBase-include >function.YiiBase-include</a>]: failed to open stream: No such file or directory]
最佳回答

我认为,你们应该进口。

Yii::import( application.apis.* );

它将根据目录(applications/apis/)进口所有文件。

Yii::import( application.apis.myapi ); //only one file

http://stackoverflow.com/questions/12729504/yii-import-Functionity” 进口功能

问题回答

Maybe you override basePath for your application? (look at protected/config/main.cfg)





相关问题
Brute-force/DoS prevention in PHP [closed]

I am trying to write a script to prevent brute-force login attempts in a website I m building. The logic goes something like this: User sends login information. Check if username and password is ...

please can anyone check this while loop and if condition

<?php $con=mysql_connect("localhost","mts","mts"); if(!con) { die( unable to connect . mysql_error()); } mysql_select_db("mts",$con); /* date_default_timezone_set ("Asia/Calcutta"); $date = ...

定值美元

如何确认来自正确来源的数字。

Generating a drop down list of timezones with PHP

Most sites need some way to show the dates on the site in the users preferred timezone. Below are two lists that I found and then one method using the built in PHP DateTime class in PHP 5. I need ...

Text as watermarking in PHP

I want to create text as a watermark for an image. the water mark should have the following properties front: Impact color: white opacity: 31% Font style: regular, bold Bevel and Emboss size: 30 ...

How does php cast boolean variables?

How does php cast boolean variables? I was trying to save a boolean value to an array: $result["Users"]["is_login"] = true; but when I use debug the is_login value is blank. and when I do ...

热门标签