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
Related
In our project we don't need a database, so how do we setup cakephp 3.x on a local machine without modifying the database config? I have this issue when I'm running my site.
Error: Class 'PDO' not found
File /usr/share/nginx/dchannel/vendor/cakephp/cakephp/src/Database/Type.php
Line: 100
So please suggest a better way to do disable the database on cakephp 3.x
Thank you in advance.
Theoretically that should be possible if you just avoid to touch anything that interacts with the datbase, or uses PDO related constants and stuff, like the Type classes that are by default involved in the applications bootstrap:
https://github.com/cakephp/app/blob/3.5.0/config/bootstrap.php#L174-L189
Also you cannot use Migrations or DebugKit, as both require PDO:
https://github.com/cakephp/app/blob/3.5.0/config/bootstrap.php#L206-L207
https://github.com/cakephp/app/blob/3.5.0/config/bootstrap.php#L211-L217
If you comment these snippets, and do not touch the model layer anywhere, then it should work. However I don't think that there is a guarantee that this will continue to work. If you want to make sure you can ask the core devs over at Slack or IRC, or maybe even open a ticket on GitHub.
I think it is possible because cakephp use its own design template. so just replace the template with your one .
php default template \src\Template\Pages\home.ctp
I don't think it's possible to set up CakePHP without a database; it is basically a frontend to a database so the tool doesn't work without one, and I think it also uses it to store some of its configuration. If you don't need a database, then I advise you choose a different framework.
Hi i am trying to use Sign me up Plugin for my application. But unable to get it running. There are so many issues and errors.
Plugin i have downloaded is:-
sign_me_up-2.0
But there are so many errors i am getting
Ex:- Declaration of SignMeUpComponent::initialize() should be compatible with Component::initialize(Controller $controller)
I have tried for tutorials and serached for solutions online. But no luck...
Can anyone help me out on how to use this plugin ???
What i reffered :-
http://www.jotlab.com/2011/sign-me-up-a-cakephp-registration-plugin
Thanks in advance
Make sure your version of CakePHP is compatible with the plugin. I understand between version 1.3 and 2, they took advantage of the newer features of PHP which included strongly-typed method parameters. The error you're receiving is that the SignMeUpComponent inherits from the Component class which is in framework core. If the component wants to override the initialize method, it must follow the same method/function signature.
If the plugin is on Git and you feel comfortable in doing so, clone it and update all the components methods, and then put in a pull request so you're changes can be merged in.
Alternatively use an earlier version of CakePHP.
I want to add some more library and helpers file into Pyrocms which is based on codeigniter.Actually i have to add facebook connect and found some good working examples of facebook connect so now i want to implement these codeingiter libraries and other files in Pyrocms.Let let me know where to put these libraries. Your help will be appreciable.
since version 1.3.0 addons/default/libraries
or addons/shared_addons/libraries for the pro version. (This bit will help on the where to put stuff topic...
http://www.pyrocms.com/docs/1.3/manuals/developers/understanding-the-addons-directory )
Then load the lib in your controller, etc as such $this->load->library('cool_facebook_connect_lib');
And, depending on your version you may have to change around a couple lines in MY_loader for it to work, http://www.pyrocms.com/forums/topics/view/18087
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
After inheriting some Zend Framework code it didn't work, after lots of fiddling I've managed to create the schema and rebuild the models, although now I'm getting the following error:
Call to undefined method Criteria::hasSelectClause() in home/richard/library/om/BaseDomainPeer.php on line 329
Why would propel generate files that call unknown methods?
I would think that you have a name collision and you load some other class called Criteria and you don't realize it because of autoloading. Try dumping the methods using get_class_methods()
Turns out the code was built on a system using the beta version of propel, when i forced my system to use the beta version, it worked.
to use the beta version, go here