Part of the EllisLab Network
   
16 of 42
16
DataMapper ORM v1.8.2
Posted: 08 February 2012 12:03 PM   [ Ignore ]   [ # 151 ]  
Summer Student
Total Posts:  4
Joined  08-22-2010

I’m speak english very bad, sorry.
I install DataMapper from the Sparks, and catch error like that http://codeigniter.com/forums/viewreply/959058/
I have a fresh installation of CI, and put bootstrap into an index.php

Yes, when i install Datamapper without using Sparks, all working.

Profile
 
 
Posted: 09 February 2012 04:03 AM   [ Ignore ]   [ # 152 ]  
Summer Student
Total Posts:  4
Joined  08-22-2010

hm… when i copy folder “sparks/DataMapper-ORM/1.8.2/third_party” to application folder, all working.
But it’s no Sparks way.

Profile
 
 
Posted: 09 February 2012 04:42 AM   [ Ignore ]   [ # 153 ]  
Sr. Research Associate
Avatar
RankRankRankRankRank
Total Posts:  4108
Joined  11-04-2008

Sounds like a path issue somewhere?

 Signature 

WanWizard.eu | Modular CI, an HMVC solution | DataMapper ORM

Profile
 
 
Posted: 09 February 2012 07:45 AM   [ Ignore ]   [ # 154 ]  
Summer Student
Total Posts:  4
Joined  08-22-2010

Yes, bootstrapping from sparks enviropment not working. I wrote in index.php direct path то bootstrap.php, but it not work.
Help me, please, if you can.

Profile
 
 
Posted: 13 February 2012 09:40 AM   [ Ignore ]   [ # 155 ]  
Summer Student
Avatar
Total Posts:  11
Joined  11-10-2009

Hi, one quick question, is it now field “root_id” mandatory in tables for Nested Sets Extension, because I had a problem with dump_tree() method, until I returned value NULL for $ _rootfield in nestedsets.php

Profile
 
 
Posted: 13 February 2012 04:05 PM   [ Ignore ]   [ # 156 ]  
Sr. Research Associate
Avatar
RankRankRankRankRank
Total Posts:  4108
Joined  11-04-2008

root_id is optional. It is needed when you store multiple trees in a single table, where this id acts as the tree selector.

 Signature 

WanWizard.eu | Modular CI, an HMVC solution | DataMapper ORM

Profile
 
 
Posted: 13 February 2012 05:36 PM   [ Ignore ]   [ # 157 ]  
Summer Student
Avatar
Total Posts:  11
Joined  11-10-2009

and why doas not work for me, I used fresh copy of CI, Datamapper 1.8.2, and simplest example… and everything works except dump_tree and dump_dropdown

Profile
 
 
Posted: 14 February 2012 05:51 AM   [ Ignore ]   [ # 158 ]  
Sr. Research Associate
Avatar
RankRankRankRankRank
Total Posts:  4108
Joined  11-04-2008

Please define “not work”? What happens? Error messages?

 Signature 

WanWizard.eu | Modular CI, an HMVC solution | DataMapper ORM

Profile
 
 
Posted: 14 February 2012 09:44 AM   [ Ignore ]   [ # 159 ]  
Summer Student
Avatar
Total Posts:  11
Joined  11-10-2009

that is the problem, no errors, just an blank page, but when I change a variable “$_rootfield” to NULL (nestedsets.php) all starts to work

Profile
 
 
Posted: 14 February 2012 04:28 PM   [ Ignore ]   [ # 160 ]  
Sr. Research Associate
Avatar
RankRankRankRankRank
Total Posts:  4108
Joined  11-04-2008

Well, this is exactly what you should do if your table doesn’t have a root column.

In the config, set ‘root’ to NULL.

(p.s. it should be NULL by default, as written in the manual. I don’t know why it is not so in the code, might be a leftover of some testing).

 Signature 

WanWizard.eu | Modular CI, an HMVC solution | DataMapper ORM

Profile
 
 
   
16 of 42
16