Search found 6 matches

by juanmatias
09 Nov 2017, 12:17
Forum: General Help
Topic: Table constraints and module dependencies
Replies: 2
Views: 641

Re: Table constraints and module dependencies

Ok, me again. I want to share my solution for the issue with DB constraints. I will drop here an example to you to see. I stripped out code to make clear what I've done. I'm creating a parent table and then a child one. The second one has two contraint, one to parent and one to users. In the $tables...
by juanmatias
08 Nov 2017, 12:04
Forum: General Help
Topic: Can't get anything but index.php to load
Replies: 3
Views: 739

Re: Can't get anything but index.php to load

Hi, maybe a stupid question but... Is the base_url set? I had a similar issue working with LAMPP and virtual hosts. The problem was I accessed with my URL (I've set it in my /etc/hosts ) with no problem... but all internal references were made with the IP since base_url was not set. Since I was work...
by juanmatias
08 Nov 2017, 11:55
Forum: General Help
Topic: Table constraints and module dependencies
Replies: 2
Views: 641

Re: Table constraints and module dependencies

Ok, I'm here again to post an idea on my problem. For item 1 , I think I can use sql and get the db prefix from config/database.php 'dbprefix' => 'bf_', For example, in migrations file: $this->dbforge->add_field('CONSTRAINT FOREIGN KEY (parent_id) REFERENCES '.$db_prefix.'parent(id)'); Now I must fi...
by juanmatias
07 Nov 2017, 18:10
Forum: General Help
Topic: Table constraints and module dependencies
Replies: 2
Views: 641

Table constraints and module dependencies

Hello, bonfirepeople. I have two little questions. 1. What's the proper way to insert "foreign keys" in migrations. I was reading but it seems to be that the only way it with plain sql. I know that BF insert a preffix on tablenames, so I'd like to know if there is a proper way to go. My main concern...
by juanmatias
07 Nov 2017, 16:08
Forum: The Lounge
Topic: Hello, everybody.
Replies: 3
Views: 703

Re: Hello, everybody.

Very warm welcome to the Forums Juan. Yeah, Bonfire has a great set of features to kickstart your project. Some handy links just in case you didn't see them. http://cibonfire.com/learn https://www.codeigniter.com/user_guide/ All the best and wishing you good luck on your next project. Thanks! I'm r...
by juanmatias
06 Nov 2017, 18:33
Forum: The Lounge
Topic: Hello, everybody.
Replies: 3
Views: 703

Hello, everybody.

Hello... I'm new to Bonfire.... My name is Juan Matías I was researching for a new project I have (I'm working for a little company), and looking for a PHP framework to work with (I've experience with Kohana and Yii)... but I found Bonfire... dudes, what an amazing tool.... I'm playing a little righ...