Change at the top of your Students_model.php file "base_module_model.php" to "Base_module_model.php". Version 1.4 uses CI 3 which requires the casing to be uppercase for models, libraries and controllers.
You are at this point just using query builder to get results. You can use the following to get the actual SQL query being run if you want to test it out:
$CI->load->knowledge_base_articles_model->debug_query();
Do you have a form created that has a slug value of "contact"? You can debug in the fuel/modules/forms/controllers/Forms.php file first to see if it is even making it to that controller.
fuel_model is really just a wrapper function around the knowledge_base_articles_model. You can also do the following:
$CI->load->model('knowledge_base_articles_model'); $CI->load->knowledge_base_articles_model->db()->where_in(...);…
I would look into the "hooks" functionality which allows you to specify a separate function or class/method that can be called. That function/method gets passed parameters of the form object and posted variables and you can then send your own emails…
Try some of these parameters (the key 'nav-menu-inner nav-marg' is not a valid parameter:
http://docs.getfuelcms.com/libraries/menu
<?php echo fuel_nav(array('container_tag_class ' => 'nav-menu-inner nav-marg', 'item_id_prefix' => 'topmenu_…
Usually if I hear of 404s on external servers but working local, it has to do with a file casing issue. CI 3 requires Controllers, Models and Libraries to have their file names first letter uppercased. If you are on a Mac, it is case insensitive but…
There is a method on the Data_table class called "add_field_formatter" that is used in the Module controller, however, it's currently not exposed in a way for you to modify or hook into it without editing the source or overwriting the controller met…
It should include the closing ">" and uses the DOM & XPath to find that node. If you create a simple static view file called search_test.php page with the delimiter on, are you able to index that single page (will need to select that page exp…
The size() fix has been updated already in the develop branch. Is that "heading" variable being saved in the fuel_pagevariables table for that page_id (you'll need to lookup the corresponding page ID in the fuel_pages table using the "location" fiel…
Is your "fuel_mode" set to "auto" in fuel/application/config/MY_fuel.php? Also, are other static view files showing up (e.g. does fuel/application/views/test.php show up at http://localhost/test)?
The code in the sitemap.xml is an example that is looking for a $nav array in the fuel/application/views/_variables/nav.php (http://docs.getfuelcms.com/general/navigation) and/or any modules that have preview_path setup and an associated page on the…
Calling parent gives you the default form and then you would need to manipulate those array variables. If you are starting fresh, you will need to create a hidden "id" field and use the 'value' => $values['id'] to set the value:
$fields['id'] = a…
For that particular page, do you have a field called "heading" specified in your layout that has been saved? That error message will appear if it doesn't find that value saved in the fuel_pagevariables table for that particular page.
Do you have a fuel/application/views/sitemap_xml.php file that should have come with the default installation? Or do you have a sitemap.xml set in your CMS?
I think it's because you don't have a hidden field for the id. If you call the following at the top of your form_fields method it should take care of that:
$fields = parent::form_fields($values, $related);
You may want to look at creating a separate page altogether and using the "return_url" parameter to point to that. There is a flashdata called "posted" which will have all the posted data information in which you can merge into that page.
What version of PHP are you running via command line?
But to confirm, you have a
in your home pages HTML code that has content to be indexed? And when you run this in the admin, is there anything that gets returned?
You can check in the on_after_save hook on the model if there are any errors using the get_errors() method:
function on_after_save($values) { print_r($this->get_errors()); exit(); }