It sounds like you need to grab all category type permissions from the logged in user first and then loop through those to generate your query. Permissions for the logged in user can be obtained like so:
$this->fuel_auth->get_permissions()
We hear ya. We eventually would like to create a user contributed area for people to download those types of things but we have a bit of work to do before that happens.
The {image_folder} is a placeholder for the $_POST['image_folder'] value, so in your case, you may want to use {album_name} or whatever your fields name is.
The get_img_path() method is found on the record level class of the project (not shown abov…
The built in Assets module, only looks for the file names on the server and does not have a separate table that stores that meta information with it.
I think you are on the right track. You could create a module that has an image and caption field …
You can overwrite the "options_list" method on your model and add additional active record query conditions like so:
function options_list($id, $name, $where, $order){ $this->db->where('xxxx', 'xxxx'); return parent::options_list($id, $n…
So you are saying the validation you have in place isn't returning false when it should (the passwords don't match for instance)? Can you debug what is getting passed to the is_equal_to function (in the validator_helper functions)?
When add a rule that is a method on an object, you need to use an array syntax like so:
$this->validator->add_rule('email', array($my_obj => 'is_not_existing_unique_field'), 'That e-mail address is already registered by someone else', array…
You will need to create the permission for the module and assign the user that permission. Step #6 on this page talks a little bit about it.
http://www.getfuelcms.com/user_guide/modules/tutorial
Yeah. I think in order for that to work, the precedence field needs to be added as a column so that it sorts on that. To do that you can add the following to the MY_fuel_modules.php or simply change the table_headers value of the module in the fuel/…
One way to handle record level permissions may be to do the check on the model. So for example, you can create a "list_items" method on your model (used for displaying the list view in FUEL), that only returns their specific categories. You can filt…
Yes you can. You essentially just run it twice in your controller and pass the $vars array to your view:
$this->form_builder->use_form_tag = FALSE; $this->form_builder->set_fields($fields1); $vars['form1'] = $this->form_builder->re…
That's correct. You can set your default_controller in your routes configuration file to something like this:
$route['default_controller'] = 'blog_home';
Then you can create a controller in your applications directory that inherits from the blog con…
CodeIgniter has a $this->db->insert_id() method. In your case you could do the following:
$this->examples_model->db()->insert_id();
Alternatively, if you use MY_Model's "save" method instead, it will automatically return the insert_id…
Fuel helper should be autoloaded already (it's in the autoload.php file in the config folder). Did you get an error with fuel_var or did something simply not appear? The markers should be stripped out during the rendering process but there seems to …
What are the values in the DB for the how-it-works navigation item (e.g. location, parent, and nav_key in particular)? Also, can you test if the active is being set for the navigation by checking the $active value on line 379 in the fuel/modules/fu…
Are there any PHP errors in the page (perhaps do a view source and search for any errors)? If the execution of the page is exited because of an error, those markers will show up.
The cancel actions are set by FUEL with javascript. You may be able to insert some javascript to remove the binding from the cancel button and use your own.
To insert javascript you need to add your javascript file to the "js" parameter in your mod…
Since you are operating outside of the application folder, the opt-in controller method won't work as easily. However, the blog module sounds like it may have a solution similar to what you are looking for. In particular the _render method in the li…