Avatar

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Lance

About

Username
Lance
Joined
Visits
214
Last Active
Roles
Member

Comments

  • You'd need your advanced folder name in there: $route[FUEL_ROUTE . 'store/helmets/(.*)'] = STORE_FOLDER . 'helmets/$1'; Assuming you've followed the config/constants.php convention from the other modules.
  • When the modules are set like that they use the default values. The default values can be seen here: http://www.getfuelcms.com/user_guide/modules/simple You'll see the default_col defaults to: The default is the second column of the table (e.g. …
  • Leave the list items and controllers, create a table filter instead. Checkout the /fuel/navigation page to view a working example.
  • If it were me I'd leave the fuel backend for site administration and write a front end user profile area for students. You'd include your auth library of choice for the front end area. You could use the FUEL backend for managing the gallery module …
  • You should be fine if you set the prefix in the /fuel/application/config/database.php config file and then in your MY_fuel.php config file overwrite the fuel tables: $config['tables'] = array( 'archives' => 'prefix_fuel_archives', …
  • Hmm that actually looks 'hard' coded in the MY_model::form_fields() around line 1744 $field_values = (!empty($values['id'])) ? array_keys($CI->$lookup_model->find_all_array_assoc($CI->$related_model->short_name(TRUE, TRUE).'_id', array…
  • Do you have anything set for $foreign_keys on your model? Try setting your models $key_field to the correct key.
  • Assuming this is in a module, have you tried using jQuery? Maybe something like: $("#target").keypress(function() { if ($(this).val() > 100) alert(); }); Without any context, personally I'd leave the validation and notifications the 'FUEL' …
    in Alert message Comment by Lance May 2012
  • If this line: if ( ! empty($CI->upload)) { Is false (meaning it is empty) the path of the selected file will be in $values['product_first_image_upload'] or that may be $values['product_first_image'] sorry I don't use the assets like that. Yo…
    in SELECT ASSETS Comment by Lance May 2012
  • Any console errors? What are your filters? And can you post your models list_items method.
  • You don't. You're right that __construct() is a 'magic' method that runs on load (first/instantiation). When you then run the initialize() method you'll reset it's $table value. Since your doing this in five individual blocks, you don't need to do…
  • Sounds like it might be routing problem. Any routes set that may redirect? I'm assuming you have a custom fuel controller of products with a getsubcats method? Can we see that?
  • I understand what you're wanting to do, personally I'd split the models. Models map to tables.. You could use the initialize() method on the model like: # Load $CI->load->model('banner_rechts_model'); # $table = Figure out what table you n…
  • Are you able to navigate to the url that path is parsed to EG: http://localhost/project/fuel/products/getsubcats/a_category
  • Can we see the complete files? Sure you're returning an array of objects and not arrays? By the looks of that $vars['gdata'] is going to be an array of objects (or arrays) keyed with 'table'. Is the second $gdata['table'] = ... there a mistake? if…
  • It will work fine but it's not perfect.. IMO. There's a few calls to redirect() in there for example and the show_error() that won't work as well as the fact that with just that line, you're still actually rendering the form without using it. Last…
  • Not for a search but I used the textboxlist library for some autocomplete of user names. Worked well: http://www.devthought.com/projects/jquery/textboxlist/
  • You're right JSON is being returned but then so is the markup for the create page. galleries/create isn't a custom controller is it? If not I think you're going to need one. If you don't it'll use the default of /modules/fuel/controllers/module.php…
  • I can't see that pic here. I figure you're meaning from the list items. That will be much trickier. I don't think an extra url component will get it done for you. I think you're best bet is to have a look at the create_function() call in /modules/…
  • Ah right gotcha. You could include a checkbox in the after_html form field. Then check for it's existence in $this->normalized_save_data (or plain old $_POST) in the models on_before_save() hook. If there, unset your pdf field and save.
  • Sweet, thanks for sharing edival! Might be worth noting to change prop() to attr() for older (1.5.1/fuel default) versions of jQuery. Edit: really liked that so banged it into a project. Few little changes I made for me: Config: .... 'list_actio…
  • Why did you want to extend the CI_Controller class? What you have working now looks correct to me. Anyway, I tried it and had no errors with: Createthumbs.php in /modules/my_module/libraries/ class Createthumbs extends CI_Controller { functi…
  • This works for me: Module config: $config['modules']['pcc_links'] = array( 'module_name' => 'Pcc Links', 'model_name' => 'pcc_links_model', 'default_col' => 'title', 'table_headers' => array( 'id', 'tit…
  • Great, glad you got it sorted! What's your module config like? You'll want STORE_FOLDER in your route. Using the members module config from above, the route's I have for that are: $route[FUEL_ROUTE.'members/members'] = MEMBERS_FOLDER.'/_fuel/user…
  • You can over write the enterMode with: config.enterMode = CKEDITOR.ENTER_BR; config.shiftEnterMode = CKEDITOR.ENTER_P; Normal enter will add <\br >'s shift enter for <\p >'s
  • Oh sorry dude, I see what your asking now.. Yeah the cancel and submit buttons there are just links with an id of cancel and submit. In the init funcion above it has this._submit which is defined in the BaseFuelController file, it's this code: _s…
  • Can you link me to a zip of what you have? I just did a quick test in my advanced module (members) and it worked fine for me. My steps: 1) members_fuel_modules.php: $config['modules']['members_members'] = array( 'module_name' => lang('memb…
  • Sorry I'm not quite getting it.. Have you created a custom field to hold the pdf or something? Can you screen shot the form? Just trying to understand why the normal delete for a form doesn't work for you. It's purpose is to delete rows from the d…
  • You'll need a form_fields() method in your model to alter the 'create' fields.. In there you could load the model for your other table and run it's form_fields() method and merge the two, something like: public function form_fields($values = arra…
  • No problem. The init function there is running/bringing into scope the BaseFuelController methods as defined in /modules/fuel/assests/js/fuel/controller/BaseFuelController.js To answer your question though, the form is being submitted with the pla…