I understand now. I just pushed a fix to make the only_published parameter public which means you can set it in the 3rd parameter of the render method.
With regards to version 1, we are hoping to release it soon but I've been saying that for a whil…
There is not at the moment. It simply just looks for a $_POST key of "dup" on the controller's "create" method.
What are you needing to do on duplicate that's different?
What you explained above is correct. You need to create layout files which include the header and footer because the CMS is only capturing the "body" variable content.
For the publish status, I've just pushed change to add "vars_honor_page_status" …
Errors on the form_builder object are controlled by the Validator object that you pass to it. So the $this->validator object needs those errors added to them which you can do with the "catch_errors" method like so:
$this->validator->catch_…
The list_items method is what is used for rendering the list view of all records (the first page when you go to the module) and is not used for the dropdown. If you want to overwrite that dropdown you can try something like the following:
function f…
You can't load controllers like that. You need to set send_email as a library and load it as a library instead:
$CI =& get_instance(); /* Email Form */ $CI->load->library('send_email'); $vars['email_form'] = $CI->send_email->genera…
Hmm. I guess I'm not sure I understand the current problem. What I see in the screenshot looks correct based on what I see in the table. If an additional field is added to the table, I would see that additional field appear in the form. The ID and d…
Hey Emma,
And you are viewing the form under the fuel/articles? Also, does the database table it's referencing have that field in it and do the other fields match up to what is represented in the database table.
If you are just starting out, I'd …
You could possibly add a hidden field to the form that contains the value of the current page (current_url()) which tells where the form can redirect back to upon success or error. Error messages would need to be put in to a flash message.
Does the page work if you go to this link:
http://www.mysite.com/index.php/test/fuel/assets
I found this thread that may be helpful:
http://ellislab.com/forums/viewthread/91954
Glad that fixed your issue with the iconv.
I've just pushed an update for this to work with float values which is the intended field type. A text field type will still have the same result unfortunately.
The current dev_password functionality is implemented by a hook found in the fuel/modules/fuel/hooks/Fuel_hooks.php "dev_password" method::
Perhaps you create your own Hook that does something similar to that and excludes the password protected in …
With regards to the first issue, this looks reminiscent of this bug perhaps:
https://bugs.php.net/bug.php?id=48147
https://github.com/EllisLab/CodeIgniter/issues/261
I've found that if I changed my version of MAMP to use use 5.2 instead of 5.3, it …
It is done automatically with $this->fuel->pages. The fuel object handles auto loading of a lot of libraries. The page "The FUEL Object Structure" in the user guide talks about that a little more.
For FUEL v1.0, try the following:
public function index() { $vars = array();// array of variables to pass the view... not required, just for demo $this->fuel->pages->render('hello', $vars); }
You can pass a different validator object to the second form:
$this->load->library('form_builder'); $this->load->library('validator'); $this->form_builder->initialize(array('text_size_limit' => '20', 'submit_value' => 'Updat…
The options_list will generate the options list based on the first to fields of your table with the second being the label. What's the second field of your table? Also, you can debug the query by using $this->debug_query() after the parent::optio…
I'd perhaps use the initialize method to load the parameters for each like so:
$this->load->library('form_builder'); $this->form_builder->initialize(array('text_size_limit' => '20', 'submit_value' => 'Update', 'form_attrs' => a…
By allowing you to see it, you can keep the page unpublished and test it out before publishing it. To help prevent confusion, you should see a "This page is not published" appear in red right next to the FUEL bar in the upper right? Are you not seei…
The documentation is incorrect. The file to add the hooks is in the CI hooks file located at:
fuel/application/config/hooks.php
There should be an example in that file that that may help. Similarly, you can overwrite the model being used for the pa…
Upgrading depends on how much customization you may have done. What I would do to start would be to get a fresh copy of 1.0 and copy over your view files, models, and controllers to the application directory. In many cases, that will be all you need…
Have you debugged the MY_Model save method to see if it gets to the on_after_save part within that method?
As an FYI, the 1.0 beta provides a much more simplified way of creating model
relationships without the need for extra models and tables by …
You can specify a "func" parameter which should be a reference to a function. The function can be either a declared function or a lamda function created by the "create_function" php function. Example:
// USING A LAMBDA FUNCTION $func = create_funct…
If you are needing something more custom, you can create a field type of "custom" which allows you to pass it the name of a function to render (or an array with an instance as the first array element and a method name as the second array element).
…