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

  • I'd recommend using a normal controller to handle the page rendering. You could grab the fields from your model using the form_fields() method and then leverage Form_builder to render the form (just like in the fuel/modules/fuel/controllers/module.p…
  • Are you managing your menus through the admin, or statically using the $nav array in the views/_variables/nav.php file? If it is through the FUEL admin, then you can specify the group_id value in the fuel_nav function. If you are using a static fi…
  • Great... that's how to do the update.
  • That is indeed a bug so thanks for the report. I've posted a fix in the latest: https://github.com/daylightstudio/FUEL-CMS/commit/ea0d6b7c8e3faeb69662b2e26d5667c844e699c7
  • you could try manipulating your model's form_fields() method to look for a flash variable set in your on_after_save hook: function form_fields($values = array(), $related = array()) { $this->load->library('session'); if ($this->ses…
  • What happens if you change the values at the top of the application/third_party/MX/Modules.php to something like the following to match your path Modules::$locations = array( APPPATH.'../system/modules/' => '../../system/modules/', );
  • Try doing the following: $fields['item1'] = array('type'=>'custom', 'func' => 'f_custom');
  • You could create a new module that contains all the categories and then associate them to appropriate services or products, by passing the $related variable to the parent::form_fields() as displayed below: function form_fields($values = array()) { …
  • Router is being overwritten by fuel/application/third_party/fuel/Router.php which itself extends fuel/application/third_party/MX/Router.php and that is probably why you aren't seeing your echo.
  • The base_url function is in the url_helper which is autoloader. However, in this case we are not getting that far. It may be that you are getting a 404 error message (see the application/errors/error_404.php file) which includes the header file. To…
  • You would need to change the $system_path and $application_folder paths in the index.php file and possibly the MODULES_FOLDER constant in the fuel/modules/config/fuel_contstants.php file.
  • It's used to help break cache files if you've changed the CSS and want to make sure folks are seeing the latest version. There are 2 configuration parameters that control this in the application/config/asset.php file "assets_last_updated" and "asset…
    in css() Comment by admin August 2011
  • $foreign_keys are used in 2 spots in the fuel/application/core/MY_Model.php file. The first is in the form_fields method, where it will create the drop down select for you (otherwise it would just be a text field by default). The other place $foreig…
  • Glad you are finding FUEL so helpful! We are not aware of any long-term effects but would of course be curious to hear of anyone having any. Also, as an FYI, the order of page precedence is Controllers, pages created in the admin, then static view…
  • it returns an array of Bio_person_model objects. If you use the "get" method, it will return a "Data_set" object
  • Are you sure it's the $CI object and not an array of "Bio_person_model" objects? What happens when you do the following: foreach($people as $person){ print_r($person->values()); }
  • It sounds like you need to setup the MySQL database. There should be a fuel_schema.sql file that you can use to create your database.
  • Your first method should work. However it is $this->db->insert_id() and not $this->db->last_insert_id() and the model name is $this->users_profiles_model (with an "s")
  • This can be done in your querying. The blog_posts_to_categories_model in the fuel/modules/blog/models/ has an example of adding the count and it is placed in the _common_query() method which gets run with any find_* method on the model.
  • yep... both of those should be fine.
  • The fuel_block function is currently only setup to pull from your application directory. I'll put it on the list of things to look though for future update. For now, you can just use the $this->load->module_view('anunturie', '_blocks/rent_cat…
  • The not being able to set the "overwrite" value appears to be a bug which I just pushed a fix for: https://github.com/daylightstudio/FUEL-CMS/commit/8b2999d9453940bd995d895109695a8c6607ad7b To access the upload information, there is an "upload_data…
  • You will need to load your custom validation helper like any other helper. The add_rule method looks for a function with that name in the second parameter (or an object => method if the value is an associative array). With regards to making it h…
  • So when you say "when I upload" do you mean you actually upload the PHP file in the Navigation module? If so, then the navigation won't pull in those tracks. If you are just using the nav.php file and not controlling the navigation in the admin, the…
  • I would go the advanced module route.
  • Name the module key "anunturi_rent" instead of "rent" like so: <?php $config['modules']['anunturi_rent'] = array( 'module_name' => 'Rent', 'module_uri' => 'anunturi/rent', 'model_name' => 'rent_model', 'model_location' => 'anuntur…
  • That has been fixed in the in the repo... thanks for the report: https://github.com/daylightstudio/FUEL-CMS/commit/e2a4637c7b560d1813ab35ac1f22fce2a16e75fa
  • Actually, the second route should be: $route[FUEL_ROUTE.'anunturi/rent_categories/(.*)'] = FUEL_FOLDER.'/module/$1' See if that helps.
  • Would you mind emailing me those module files and any SQL. I'm not able to immediately see the issue? My email address is under my profile if you click on the my image.
  • BTW, if you are able to get ION AUTH integrated sooner rather then later, let me know.