PHP Classes

example request

Recommend this page to a friend!

      PHP XML Database Manager  >  All threads  >  example request  >  (Un) Subscribe thread alerts  
Subject:example request
Summary:example request
Date:2014-09-01 04:50:27


  1. example request   Reply   Report abuse  
Picture of danidani danidani - 2014-09-01 04:50:27
can you provide me an example
thank u

  2. Re: example request   Reply   Report abuse  
Picture of carlos carvalho carlos carvalho - 2014-09-25 01:32:02 - In reply to message 1 from danidani
use with codeigniter framework

add application/config/xml.php
//configurando path do arquivo database xml
$config['path'] = APP.'db/xml/';
$config['bases'] = array('portal');
//configurando elementos xml para linha da base de dados
$config['table']['row']['element'] = 'table';
//attributos das linhas
$config['table']['row']['attribute'] = 'name';
//configurando os elementos de das colunas para base de dados
$config['table']['column']['element'] = 'column';
//configurando os atributos
$config['table']['column']['attribute']= 'name';

add file application/controllers/home.php

class Home extends CI_Controller{

function index(){

$q = $this->xml_data_manager->select('*')->from('users')->get();