Welcome Guest, Not a member yet? Register   Sign In
$replaceContent = new jquery('replace') and =& get_instance() confusion!!!
#2

[eluser]xwero[/eluser]
If the main function is to create an xml file why do you need the CI object? Can't you just write to the xml file directly?

Code:
$slideDown = new taconite('slideDown');
$slideDown->set('#my_div');
Would generate something like
Code:
<slideDown select="#example4" value="100" />
i assume. So your helper could only add one tag per object.

If you want to store the tags you better have one object where you add all the tags for the xml file to.
Code:
$this->tactonite->open_tag('slideDown');
$this->tactonite->set('#my_div');
$this->tactonite->close_tag('slideDown');
// or with php5 method chaining
$this->tactonite->open_tag('slideDown')->set('#my_div')->close_tag('slideDown');
// ...
$this->tactonite->create_xml('path/to/file/filename');
So a library would be better than a helper.


Messages In This Thread
$replaceContent = new jquery('replace') and =& get_instance() confusion!!! - by El Forum - 02-24-2009, 04:02 AM



Theme © iAndrew 2016 - Forum software by © MyBB