How to access native xml database (eXist-db) from codeigniter - codeigniter

For my final project I have to use native xml database processed by xquery, of course. I also want to use the codeigniter framework. The problem is I don't know how to connect to the exist database and how to manipulate the xml files with xquery under codeigniter. Please, do tell any hint. I'm struggling for so long to come up with a solution. Thank you.

Assuming that a PHP library would work for you, the eXist-db documentation links to https://github.com/CuAnnan/php-eXist-db-Client.

Related

Is it possible to incorporate QuickBooks PHP DevKit into CodeIgniter

Specifically speaking, is it possible to use Consolibyte's Quickbooks PHP DevKit into an app using the CodeIgniter framework? If so, where would I place it in my directory structure, and how would I access it? I'm just doing some preliminary research into whether or not this could be used to integrate my app with Quickbooks Online.
Thanks for any input!
is it possible to use Consolibyte's Quickbooks PHP DevKit into an app using the CodeIgniter framework?
Yes, of course!
If so, where would I place it in my directory structure, and how would I access it?
Entirely up to you. Usually people put it in a library/quickbooks/ directory or something. Then, just use require_once 'path/to/library/quickbooks/QuickBooks.php'; like you would with any other PHP script.
I'm just doing some preliminary research into whether or not this could be used to integrate my app with Quickbooks Online.
It can be used for that.
You'll need a controller that kicks off the OAuth process. So basically you'll use the code from here:
https://github.com/consolibyte/quickbooks-php/blob/master/docs/partner_platform/example_app_ipp_v3/index.php#L134
To show the connect button, and then put this code into a controller to kick off OAuth:
https://github.com/consolibyte/quickbooks-php/blob/master/docs/partner_platform/example_app_ipp_v3/oauth.php
From there, you can use the other example code snippets to exchange data with QuickBooks.
If you have trouble, post your code so we can see what you're doing (feel free to use our support forums if you need more detailed help/discussion: http://www.consolibyte.com/forum/)

Need solution to make multi-language website using codeigniter, that contents from database should also convert into selected language

I want to implement the option for multi-language on my website. I am using codeigniter framework, and I already implement the codeigniter language library that convert all labels to desire language. But I want my website should also be able to convert the contents from database into desired language.
How can i do that?
Thanks.
Have a look on this tutorial.
Creating multilingual website using codeigniter

Using Code Igniter active record in Wordpress

Need to move some code from Code Igniter to Wordpress. It is heavily using CodeIgniter's db classes to handle the database. I would like to use them like this, instead of translating to WP's wpdb.
Is there any way of using Code Igniter active record/db classes and keep the nice CI db usage in Wordpress?
Thanks
If you are using WordPress 3.3 and above, then you can make use of the following library WordPressIgniter
Usually, it's not as straight forward as you think, because both of them have their own code structure. But many have tried it and are successful. It depends on what features you want to use and to what depth.
Following links may come handy for you:
SO - CI WodrePress Integration
http://www.marketingadept.com/blog/integrating-codeigniter-and-wordpress/

Application to display information from database

I understand that this is a very broad question and could get flagged but I need inputs from experienced programmers and will ask it anyway. If there is another forum where I can post this question, please let me know.
Currently we manage all our application information in an Excel spreadsheet. At a high level it contains an app id, the server names that it is hosted on and the name of the environment. The Excel spreadsheet has become too large and I am looking to build a simple application for it.
Ideally, I would like to write this app on Windows as everyone uses Windows but dont know how to go about it in Windows. I then thought of using MySQL and PHP or Perl (CGI) to build this but thought of exploring something new. I read about Joomla and a few other CMS products which make it very easy to build websites but am not sure whether these allows me to pull information from a database.
I am seeking inputs on what would be a good way to way to build this application.
Use Joomla! CMS is a good choice and to pull data from database you may use webservice calls. So, you will able to create a CMS website using joomla and will able to pull data easily from database with the help of webservice.
You can get webservice support in joomla by installing component redCORE in joomla.
Component: https://github.com/redCOMPONENT-COM/redCORE
Wiki: http://redcomponent-com.github.io/redCORE/?chapters/webservices/overview.md
Other videos: https://www.youtube.com/watch?v=UzJkC7f9fJE
https://www.youtube.com/watch?v=1NRT5jh3Ewc
Joomla dev group discussion https://groups.google.com/d/msg/joomla-dev-cms/3OctbkIZlQw/5d_1MLrzbgYJ
You can also post questions in Joomla forum http://forum.joomla.org/
I think Joomla is a great option to handle big loads of information. If you already know PHP and don't need to reinvent the wheel, it's cool. The way of handling data in Joomla is using Components.
If you want to try, it would be as easy as installing a local copy of Joomla, building the field structure on component-creator.com installing it and importing the data inside the component using phpmyadmin.

Converting zend_rest's output to json

I am developing a REST api in joomla using Zend_Rest. As Zend components can be decoupled, I am not using the whole Zend framework in my joomla installation but rather the Zend_Loader and the Zend_Rest in creating my application.
The main issue is - due to requirements, I need to have the output data the server spits out in json format as opposed to the xml tree this component spits out.
If i were using the whole framework, from what I gather a contextSwitch helper would have just done the easy porting for me.
So how then do I port these outputs into Json knowing fully well I dont have the Controller Action in place and I am not developing within the ZF.
I will appreciate any help regarding this. Thanks

Resources