English 中文(简体)
Howto Install PHPLinq Library on Zend Framework
原标题:Howto Install PHPLinq library on Zend Framework

我今天一直在打着。 是否有办法安装PHPLinq,以便与Zentd图书馆自动载荷公司合作?

或者,如果我只需要使用的话,那么,我是否可以确保其他人在PHPLinq图书馆的路上。

很显然,PHP有新意,而仅仅让这一图书馆在泽德获得承认,就成了一天的杀手。 永远 在互联网上工作的天数:

提前感谢!

问题回答

可在泽德使用支持泽德命名公约的任何图书馆。 也就是说,在课堂上课,然后在课堂上课。

FOLDER_SUBFOLDER_FILENAME

模式。 因此,需要:

MyLib > LevelName.php

必须叫上班。

MyLib_ClassName

如果这些要求是ok的,那么仅仅做的是:

// Define path to application directory
defined( APPLICATION_PATH ) || define( APPLICATION_PATH , realpath(dirname(__FILE__) .  / ));

// Ensure /libraries is on include_path
set_include_path(implode(PATH_SEPARATOR, array(
    realpath(APPLICATION_PATH .  /libraries ),
    get_include_path(),
)));

//Include the Zend Autloader
include( Zend/Loader/Autoloader.php );

//Create the autoloader and register the Activis_ namespace
$autoloader = Zend_Loader_Autoloader::getInstance();
$autoloader->registerNamespace( YourFirstLevelFolder_ );

然后,如果你登记了你的名字空间,并确保你的班子与命名公约一起工作,那么,使用“新”来装满你。

uck





相关问题
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 ...

热门标签