Does anyone know if there is a viable library for PDO database access for CodeIgniter? I only ask because I am in the process of migrating over to CI and am having trouble integrating my old Database classes as libraries in the CI framework - can't seem to get them to utilize CI's config constants for database access. Any thoughts? It would help make my implementation a little more database-flexible.
Please refer the following URL:
CodeIgniter - PDO-SQLite3
https://ellislab.com/forums/viewthread/45247/#223844
Step by step adding PDO in Codeigniter Tutorial.
This thread also discusses Using PDO in Codeigniter
Related
I am starting to implement an e-commerce module with PHP. I analyzed and get prestashop is perfact for my requirement. I read almost all documentation of prestashop but I never find mongoDB. I decided to use database mongoDB. But I am not sure how to use it with prestashop.
Can anyone help me here?
I won't be possible because all classes and module use SQL queries;
I would be theoretically possible to build your own Db driver implementation, but then again you couldn't use it since it needs to process SQL.
Currently there are 3 Db driver type: PDO, mysqli and MySQL, the best one is selected based on server PHP version.
I have a question about the neo4j drivers.First of all, I am using CakePHP as a framework and Neo4j graph database.I want to connect neo4j and cakephp but there are no driver or datasource.I tried to implement Neo4j offical driver for Php but It's not worked because of namespaces.The Cakephp not found classes which is related or extended in that driver.How can I fix them? Also, If there are any datasource for cakephp how can I found them?
If you would like to run faster i would just work with the neo4j api.
http://docs.neo4j.org/chunked/stable/rest-api.html
from your code make direct requests to the api. It is not much work and easier to maintain.
Grocery crud for codeigniter works only with mysql db. To integrate with postgresql recommended to use set_model() to set the model which extends original model and overwrite the functions which gives error.
I did the same, but now it gives me error in grocery_crud.php library file:
Fatal error: Cannot access empty property in D:\xampp\htdocs\ilc\application\libraries\Grocery_CRUD.php on line 1556
I am really confused in this library file, which made we asking you.
I have searched web for solution and alternative ways of integrating this crud with postgresql. but there are almost no solution. somebody change core postgresql driver for codeigniter, which seems not good.
Did somebody solved this issue? Thanks
There is an extension for Grocery CRUD that changes it´s models in order to include all the databases that are supported by Codeigniter (i think this extension uses PDO).
You can download and read more about the extension in the link below
https://github.com/goFrendiAsgard/grocery-crud-databases
I am working with core php for at least one year. Now I want to use a framework and I decided to use Zend Framework. But I could not able to configure/use MySQL database with Zend Framework.
Can any one tell me how to do this or give a link or tutorial from where I can do it my own.
Thanks
Enamul
I just provided answer to similar question that might help get you started. The Zend_Db component can be confusing in the beginning because there are so many options for using it. In fact there at least 3 different ways just to connect to a database.
How to use Zend Adapter to retrieve information from database
I need a Codeigniter login library for user authentication. I use MongoDB as my database.
I have gone through some of the recommended libraries like Ion Auth, Tank Auth, DX Auth etc. but all use mysql databases.
Is there a recommended library which uses mongodb as a database?
I began converting one of the libraries above from mysql to mongodb insetions but it is getting too complex- many changes are needed and think I will end up messing it. Need help on a good library using mongodb.
Looks like https://github.com/benedmunds/CodeIgniter-Ion-Auth (Ion Auth) has now a MongoDB support. See the README section on GitHub.
I don't think any use it natively, but before you go converting things yourself you may want to check out this answer I made to a similar (non-dupe) question: oAuth and Codeigniter with MongoDB
It will get you started on a conversion with little work needed. I'd also recommend using ion auth, tank auth is huge and DX auth is outdated.