Welcome Guest, Not a member yet? Register   Sign In
changing an element in the dom
#1

I have a page where I want to change the text in the blue box from NONE to something else. I am using grocery crud and codeigniter simplicity. 


$output = $crud->render();
$dom=new DOMDocument();
$dom->loadHTML($output->output);
$dom->validateOnParse = true;
$img_nodes=$dom->getElementById('myCamp');
$this->_configure_output($output)


My plan was to search through the HTML of the DOM and then modify the text of the HTML before output. But it seems that when I search ById, the $Output doesn't have the "Active Campaign:NONE" prepended to it yet.I guess it gets add somewhere in _configure_output. But I don't want to modify the core code. 

Is there a better way to do this? 

Attached Files Thumbnail(s)
   
proof that an old dog can learn new tricks
Reply




Theme © iAndrew 2016 - Forum software by © MyBB