English 中文(简体)
自动载荷 2.1.0
原标题:auto-loading the doctrine 2 with codeigniter 2.1.0

i ve a problem in auto-loading the doctrine 2 with codeigniter 2.1.0, i was following this tutorial http://www.phpandstuff.com/articles/codeigniter-doctrine-from-scratch-day-1-install-and-setup i was supposed to open the autoload.php file and load the doctrine like this :

$autoload[ plugin ] = array( doctrine );

但是,问题在于,在我卸载时没有美元载荷。 php

因此,如何把理论装上?

最佳回答

That phpandstuff article is too old and for doctrine1. Use this for CI2 and Doctrine2 https://github.com/rubensarrio/codeigniter-hmvc-doctrine

你们需要设置一个图书馆班级和设置理论班轮。

问题回答

If I m right since the version 2.0 of CodeIgniter the plugin has been removed and has been added the helper class which is almost the same thing.
I thin you should transform your plugin in a helper:

yourplugin_pi.php =>yournewhelper_helper.php

之后,您可在助手科的自动载荷中添加:

rel=“nofollow”http://codeigniter.com/user_guide/installation/up levels_200.html





相关问题
PHP Framework: Ebay Like Site

I am going to be builiding a site like ebay - with all the features of ebay. Please note my payment method is limited to paypal. What would be the best PHP framework to use to build this quickly, ...

What s the proper MVC way to do this....?

Quick question about general MVC design principle in PHP, using CodeIgniter or Kohana (I m actually using Kohana). I m new to MVC and don t want to get this wrong... so I m wondering if i have ...

Check session from a view in CodeIgniter

What is the best way to check session from a view in CodeIgniter, it shows no way in their user guide, otherwise I will have to make two views on everything, which is kinda weird...still a newbie to ...

Using SimplePie with CodeIgniter and XAMPP

I am using CodeIgniter 1.7.2 with XAMPP 1.7.2 on a Windows computer. I am trying to make use of SimplePie. I followed all the instructions I could find: a copy of simplepie.inc is in my applications/...

CodeIgniter adding semicolons

How do I stop CodeIgniter adding semicolons ; to data sent via POST that contains ampersand &? For example it is converting "a=1&b=2&c=3" into "a=1&b;=2&c;=3". From looking on the forums ...

Best way to make Admin pages in CodeIgniter?

I m working on an app in CodeIgniter, and I want to have admin pages for several of the objects in the application, and I m wondering what would be the better way to put these into an MVC structure. ...

CodeIgniter form verification and class

I m using the form validation library and have something like this in the view <p> <label for="NAME">Name <span class="required">*</span></label> <?...

热门标签