Re: Problem with Config package?
| From: | Tony Bibbs | Date: | Thu, 14 Nov 2002 22:36:45 +0000 |
| Subject: | Re: Problem with Config package? | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-10809@lists.php.net to get a copy of this message | ||
Please note the code snippets in README.Config uses the same bit of code I
have (which I assume just needs updating).
Also, the single example in the file iniCommented.php in the docs/
directory only shows the parse portion. It'd be nice to see a few other
method calls in there (unless, of course, your intention is to add that to
the README.Config).
--Tony
On Thu, 14 Nov 2002, Bertrand Mansion wrote:
> <tony@tonybibbs.com> wrote :
>
> > I have a simple PHP script with this:
> >
> > <?php
> >
> > require_once('Config.php');
> >
> > $confParser = new Config('IniFile');
> > $confParser->parseInput('foo.ini');
> >
> > ?>
> >
> > Which gives me this error:
> >
> > Fatal error: Called to undefined function parseInput()
> >
> > This is version Config v1.1
>
> API for Config has changed and is not backward compatible. If you want to
> use your old scripts, use version before 1, otherwise use version from 1.
> In which case, you might want to check the examples in the docs directory.
> Note that v1 is still beta and I didn't get much feedback yet. One of these
> days, I will implement an insertItem method...
>
> Bertrand Mansion
> Mamasam
>