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

  • The Fuel_blog (so Fuel_calendar) class has some methods in it used to render the list of blog posts (calendar events). In particular, there is a "get_posts_by_date" method. Note that there are several database where parameters in addition the order_…
  • There is a $parsed_fields property on models you can use to specify fields you want parsed automatically (including derived field names or "formatter" field names). $parsed_fields = array('description', 'description_formatted');
  • You can create a controller that extends the fuel/modules/fuel/controllers/module.php controller and overwrite methods like the "form" method. You would need to create a route that would direct people to that page: $route[FUEL_ROUTE.'webcast/event…
  • Thanks for the report. We've pushed a fix for that to the develop branch which will be included in the next release of fixes.
  • Our FAQ addresses that question (somewhat): http://www.getfuelcms.com/faq
  • A couple more questions: 1. Do you have RewriteBase / for your .htaccess? 2. Did you set $config['admin_enabled'] = TRUE in the fuel/application/config/MY_fuel.php file? 3. Are errors set to be displayed in the index.php bootstrap (I'm just seeing a…
  • What sort of errors are you seeing and what steps have you taken? Are you seeing the install page?
  • Unfortunately not yet.
  • Are you able to track down where that $var variable gets applied through the conditional statements (is it before or after... or does it not even get to the __get method)?
  • These are valid concerns I think given the state CodeIgniter. Although nothing is future proof, I will say that FUEL incorporates all the basic methods to prevent such things SQL injection and XSS issues and we will do our best to patch any crucial …
  • This usually happens when their is a break in the menu data's parent/child hierarchy. In other words, what are the navigation items being passed to fuel_nav? Based on what you've stated, it seems like you may need to append some items to fuel_nav be…
    in Breadcrumbs Comment by admin March 2014
  • At first glance, that syntax looks correct. A few questions: 1. I'm assuming the has_many key is also "childcare_options" correct? 2. Is the $childcare_option variable in the loop empty (does $childcare_option->values() return an array of its pr…
  • You can use normal active record: $this->db->or_where....
  • 1. You can set the field parameter displayonly => TRUE 2. There is also a "readonly" and "disabled property you can set (readonly does't work for all fields per the HTML 5 spec) More on the parameters you can pass to fields can be found here: ht…
  • Oh... I didn't notice that. MY_Model has an important method already called "get" that you are overwriting.
  • Unfortunately, FUEL doesn't have themes for the backend so your best bet would be to create your own controller I think to manage your specific front end requirements and the necessary CRUD functions.
  • The basic CRUD controller logic would need to be replicated into a new controller since simple modules use fuel/modules/fuel/controllers/module.php file which requires a user to be authenticated and does some CMS specific things. However, you can us…
  • That can't really be done without hacking the core unfortunately. That file and method is located in the fuel/modules/fuel/controllers/pages.php in the select method on line 724.
  • The load_page method should set any cookies and write them to the cache folder (so make sure that is writable if it isn't already). There is a test that comes with FUEL in the fuel/modules/fuel/tests/Fuel_login_test.php that logs in to the FUEL admi…
  • It's a regular expression value so you can anchor the beginning and end by do something like this: public $auto_validate_fields = array( '^email$' => 'valid_email', );
  • The one with 'email' in it could trigger the error. Were you able to figure it out.
  • Do you have the latest version downloaded of both FUEL and the blog module? I believe that bug has been fixed already.
  • The result is on the record you must first get a record object. Below is an example of retrieving an object with the ID of 3 and then getting that records email address: // get the record first $record = $this->emailsModel->find_one(array('id'…
  • Try adding the following to your class if it is not already: public $record_class = 'EmailType'; And make sure to add a record class below your EmailTypes_model class: class EmailType_model extends Base_module_record { } What may be happening is t…
  • The tester module doesn't really allow you to test controllers. You can test the final output of the controllers by testing for elements on the page using the pq function (as you've probably read in the documentation http://docs.getfuelcms.com/modul…
  • By default, there is an auto_validate_fields property that uses a regular express to look for fields containing "email" or "email_address" in them. Do you by chance have another field with the word "email" in it somewhere that it may be trying to va…
  • Try the following instead where "app" is the name of the module to look in for the model: 'model' => array('app' => array('portal_user' => 'get_admin_names')),
  • Yes. Normally, you set up your entire $nav array and then you specify a "parent" parameter to say which section of navigation to display: echo fuel_nav(array('render-type'=>'breadcrumb','container_tag_id' => 'topmenu', 'item_id_prefix' => '…
  • If this is regarding a module's form field, there is an options parameter that you can overwrite with your own key/value array of options. This may mean you have to do an additional loading of a database table and query to get the options, but it wo…
  • There are a few ways to set the layout (some you already mentioned): 1. In the _variables/global.php using the $pages['folder/:any'] = array('layout' => 'my_layout'); 2. In the views/_variables folder (perhaps the a file called "folder".php wher…