An ORM library for CodeIgniter that builds on CodeIgniter's existing ActiveRecord library.

learn more… | top users | synonyms

0
votes
0answers
9 views

CodeIgniter/DataMapper: reuse object

I use this to count all active users in a database, works like it should: $ouser = new User; $data['users_active'] = $ouser->where(array('active'=>1))->count(); Now I also want to use the ...
-1
votes
0answers
17 views

Unable to load the requested class: lang_detect

An Error Was Encountered Unable to load the requested class: lang_detect Please tell me how to solve it urgent.. You can check the detail of the problem from here
0
votes
1answer
51 views

CodeIgniter ORM on existing application

I have an existing application built on CodeIgniter which leverages the default CI ActiveRecord approach for handling database records from the models. I'd like to make this more object driven by ...
0
votes
2answers
21 views

Using valdiation error messages to return warnings

In datamapper you can use $u->error_message('custom', 'This is a custom error message.'); to set an error message when validation fails upon a save. However I would like to be able to use this ...
0
votes
1answer
33 views

Update database by sending emails in codeigniter

I am using codeigniter with datamapper orm i want to update things using email messages for example there are tables named "projects" and "messages" projects id / name messages id / content / ...
0
votes
1answer
40 views

Setting database dynamically based on current user

I've this project where a different database should be used based on the current user. I'm using codeigniter with the Datamapper extension. Ideal would be to set a different connection group in a ...
0
votes
0answers
40 views

Relations with custom names don't work

I'm having a problem with relationships (1-to-many, many-to-many) in CodeIgniter's DataMapper. And can't figure out, what's going wrong. Two models: class Servicefield_model extends DataMapper { ...
0
votes
1answer
26 views

Error 1054 in Codeigniter 2.1.3

I have the 1054 error in Codeigniter and I don't know why. I want to create a login form and check if the user is logged or not. But I only create a simple view and controller and the following error ...
0
votes
1answer
46 views

CodeIgniter core changes

CI looks for Segment[1] for controller (in controller dir) and Segment[2] for Method. Now, I have specific requirement by business application which needs that I do not want CI to look or by force go ...
0
votes
1answer
86 views

CodeIgniter Datamapper save one to many 1:n

I'm using codeigniter and datamapper to create an invoicing app. an Invoice has_many Invoice_item I'm trying to save new Invoice_items against an Invoice. If i do the following: $invoice = new ...
0
votes
1answer
221 views

CodeIgniter DataMapper Error: You must use the “set” method to update an entry

I'm using codeigniter/datamapper to develop an invocing application and I'm getting an error that i don't understand if I do the following: $i = new Invoice(); $i->save(); Then i get the ...
0
votes
0answers
23 views

Join on non standard field with wanwizard datamapper

I have a table that defines modules in the system modules. There are two columns that are important. id: This column is the autoincrement field, this increments every time a new module is installed ...
0
votes
1answer
50 views

CodeIgniter datamapper selecting empty columns

I am trying to select empty columns using datamapper. Below is what I tried: $u = new test(); $u->where("id",1); $u->select('name'); $u->get(); $u->result_count(); I am ...
0
votes
0answers
35 views

Joining tables in different databases with the CI DataMapper ORM

I did search for a solution, but found nothing helpfull. This question was about using multiple databases with datamapper but I already use that method. user model: class User extends DataMapper { ...
0
votes
1answer
37 views

CodeIgniter DataMapper order of related items

I'm writing an invoicing application in CodeIgniter/DataMapper. Each customer has many invoices. In the view, I want to be able to display customer data and then a table of the invoices for that ...

1 2 3 4 5 9
15 30 50 per page