Avatar

Howdy, Stranger!

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

admin

About

Username
admin
Joined
Visits
8,800
Last Active
Roles
Administrator

Comments

  • Running the above should have generated the following in the fuel/modules/promotions/config/promotions_fuel_modules.php file: <?php $config['modules']['leads'] = array( 'preview_path' => '', // put in the preview path on the site e.g produc…
  • I think in this case, since you are not using the "module" controller (for a simple module with the table list view that you click to the edit screen), you'll need a different route. Something like the following: <?php $user_controllers = array('…
  • You can add the parameter 'class' => 'no_editor' to your form field
  • Hmm... that is really strange. And this is with a fresh install of the fuel/install/fuel_schema.sql file and you are pointing to the correct database? "pconnect" is set to TRUE by default and changing db_debug shouldn't cause that login problem. The…
  • I would recommend using Form_builder to create your form instead of just the HTML and load in the custom form fields in your advanced module's admin controller like so: $values = array(); // this would be the saved field values $this->load->li…
  • I don't know if I've seen Flexi cart. Looks like it could be a good solution for an advanced module which it sounds like you built.
  • Is this form being used in the front end or the backend CMS?
  • How is your form being rendered? Is it using the form_fields method from a model or some other manner?
  • you can specify on the $nav menu item the "attributes" parameter if done using the $nav array or under the "Attributes" field in the CMS which will be specific attributes to the link surrounding the menu item: $nav['my_menu_item'] = array('label' =&…
  • In your MY_fuel.php file, you can change your $config['text_editor'] to be 'ckeditor' instead of markitup. Additionally, you can set the "editor" parameter for your form fields on a textarea to be either 'ckeditor' or 'markitup': $field['textarea_e…
  • It is possible that some of the values that you are needing to be set in the form aren't getting passed in the first $values parameter. By default, simple modules have an "edit_method" property you can set on them. By default, it uses the find_one_a…
  • So does this mean that $related_vals variable is getting set correctly but you are still having a problem with the values being set in the form? If so, are those values in the $values parameter of your model's form_fields method (the first parameter…
  • On line 2762 in MY_Model, the values for the has_many relationship should be getting set. $related_vals = ( ! empty($values['id'])) ? $this->get_related_keys($values, $related_model, 'has_many', $rel_config) : array(); If you output $related_val…
  • Try the following instead of $record->values(): $this->classes_model->find_one_array(array('id' => $id));
  • This sounds like it is being encoded by the Form->prep() method for display purposes and security. The CI form_helper uses a similar method to encode HTML values (like quotes). It uses htmlspecialchars function. Perhaps running htmlspecialchars_d…
  • I haven't heard of anyone integrating those two together. It may be better to look at CodeIgniter based shopping cart systems to try an integrate somehow but to be honest, I don't think it would be very straight forward (see link below for someone t…
  • Hmm... I'm having a hard time replicating the issue. I locally tested by changing the editable_asset_filetypes configuration to what you listed above and it uploaded a jpg image OK. I would perhaps do some debugging in the CI Upload class in the Upl…
  • After you've initiated the form_builder object, you can change the submit_value property on the Form_builder instance like so: $this->form_builder->submit_value = 'Edit'; Regarding the UTF-8 encoding, it appears that the forum used "Diseñador…
  • Are you getting this error in the Assets module and if so, what folder are you trying to upload to?
  • That was added relatively recently.
  • The "register" view file should just include the contents of what you want to appear in the "body" variable. The controller is simply just loading the view file "render" and doesn't know anything about the "main" layout. Using the code specified abo…
  • To load the layouts, you have to use the Fuel_pages object like so: $this->fuel->pages->render('register', $data); More on using a controller to display your page content from the CMS can be found here: http://docs.getfuelcms.com/general/p…
  • That is done when fuel_mode is set to 'views' instead of 'auto'.
  • Is there a way to extract out functionality into a base controller class and/or base the view on the URI path so that is dynamically set by something like the uri_path() function? Or perhaps use something like the _remap method on the controller: ht…
  • Hmm... why are you creating a controller method instead of letting it render normally through the CMS?
  • As an FYI, the _render method is just a convenience method on the Blog_base_controller.php that assembles the views and variables. You can also use the following: $this->load->module_view('module_name', 'view_file', $vars); For the magic meth…
  • Alright... hopefully third times a charm here. I've posted another fix for that so please test it out and let me know if you have any other issues. There was also an issue with the links when the module_uri module parameter was different from the mo…
  • OK. Thanks for the report.
  • That's a bug. A fix for that has been pushed to the develop branch: https://github.com/daylightstudio/FUEL-CMS/commit/7215165839dc6cb3537850b249af4b59e8c0ca5e
  • Are you saying that you are actually seeing the untranslated {img_path(... function in the HTML output? Like the parser isn't parsing that function? Are you still seeing that compilation error? BTW... img_path starts at the assets/images folder so …