Welcome Guest, Not a member yet? Register   Sign In
How to initialize the constructor within the PEAR library
#1

[eluser]webbymonk[/eluser]
Hi guys, how are you guys?

I just tried the pear integration within CI. And i found some difficulties to initialize th e parameter within the constructor.

If we load the CI library, we have $params to pass through the library.
for ex: $this->load->library('library',$params);

as in the http://codeigniter.com/wiki/PEAR_integration/

in the example;
$http_request = $this->pearloader->load('HTTP','Request');

how initialize the class constructor that contains some parameter?

usually we do in the PHP
Code:
$serializer = new XML_Serializer(array(
                'rootName' => $this->_rootName,
                'indent' => "\t",
                'mode' => 'simplexml',
                'prependAttributes' => '_',
                'parseAttributes' => true
            ));

Thanks...


Messages In This Thread
How to initialize the constructor within the PEAR library - by El Forum - 02-17-2009, 11:15 PM



Theme © iAndrew 2016 - Forum software by © MyBB