You could try resetting the password and the salt value back to the original installation SQL found in the fuel/install/ folder. The default login and password was "admin" / "admin"
Be sure to specify the domain and the proper from email address in…
If you are putting it in the same model, you'll need to use an array for the func (its using the call_user_func PHP function):
$fields['ip_address'] = array('type' => 'custom', 'func' => array($this, 'my_custom_field'), 'display_label' => F…
Does /fuel/login display?
If so, there a bug that's been fixed in the develop branch that happens in some setups which has to do with the fuel/index.php header redirect pointing to a page called index. Try changing that to 'dashboard'
It depends a little bit on where you want to insert the item. If you create an advanced module, you can add the following to your advanced module's config:
$config['nav']['site']['my_module'] = 'My Module';
This will be inserted under the SITE headi…
2-3.
Unfortunately, FUEL doesn't have a built in way to easily handle that. You would need to manually add the HTML to render the list of images and the button. Something like the following:
function form_fields($values = array(), $related = array(…
What does it look like in your form_fields method and is this a function you have access to in your current PHP environment (was reading that it didn't become available for Windows until 5.3).
The models don't need to be stated. It's just the column names to be used in the specified lookup table. The lookup table should have at least 5 columns like the fuel_relationships table so I'm not sure if that will work with the current setup of io…
1. Does a single image belong to only one project? If so, I'd add a foreign key to the projects_images table of "project_id" and in this case remove the $has_many:
public $foreign_keys = array('project_id' => 'projects_model');. To display the im…
Sure. You can use any normal CI active record you want.
function list_items($limit = NULL, $offset = NULL, $col = 'name', $order = 'desc', $just_count = FALSE) { $this->db->join('fuel_categories', 'fuel_categories.id = category_id', 'lef…
Thanks for the documentation report. That fix has been posted in our develop branch for the next release and is updated on the live site. We'll work on that documentation a little bit as well to add some clarity.
By default, the Base_module_model::_common_query() method (which is inherited by your model) automatically will hide anything with a published status or active status set to no. This can be change by overwriting your _common_query method in your mod…
I don't have an example where you can edit the components in a modal window but the following does provide a list of components in a separate section called "Components" with links to edit them. There is a script tag that you can put your own custom…
For reference, there is a $auto_validate_fields property on a MY_Model which is set by default:
public $auto_validate_fields = array( 'email|email_address' => 'valid_email', 'phone|phone_number' => 'valid_phone' );
This basically says an…
That's a good point. The new 1.0 features allowed us to remove a lot of the hooks that use to need to be manually created and so the tutorial was altered to reflect that. I think the addition of using hooks (and maybe altering the _common_query()) m…
Try changing the type to an empty string and adding the ignore_representative parameter following:
$fields['state'] = array('type' => '', 'rows' => 1, 'class' => 'no_editor', 'ignore_representative' => TRUE);
A type of "text" will actual…
Usually those errors have to do with the Dwoo compiling javascript code. One way to avoid that is to add a space after any { in the javascript. You can also wrap the javascript with:
which will tell Dwoo to avoid processing the templating code.
That sounds like you would need to create a layout with a "weight" field associated with it. Then you would need to create a page assigning the appropriate values to that weight field for each page. To retrieve the pages in a particular order using …
Try adding this to MY_fuel (along with your other settings):
$config['settings']['Slider'] = array('type'=>'fieldset', 'label'=>'Slider', 'class'=>'tab'); $config['settings']['site_name'] = array(); $config['settings']['logo'] = array('type…
The returned values is an array of objects and each object has a reference to the $CI object. Using print_r on it will cause it to go into an infinite loop. Try something like the following:
$a = $CI->fuel->pages->children('our-firm',true);…
The model should have been fuel_pages_model. Also, I just posted a v1.0.2 and you can now try this:
$CI->fuel->pages->children('our-firm'); // returns an array of page locations $CI->fuel->pages->children('our-firm', TRUE); // ret…