For FUEL to figure that out it'd have to look in every controller/method you may have defined in the applications directory, and also do the same in modules. That's not a solution..
Does it work when you remove the leading slash? And the STORE_FOLD…
Oh I see, sorry I thought you wanted to keep it a simple module.
You'd need to create an advanced module named store with a controller of helmets::export_non_shipped_orders().
The controller would look something like:
require_once(FUEL_PATH.'/li…
Assuming you're meaning the saving of the jobs: Just looks like a normal POST/reload to me. Don't see any XHR requests.
The input #action is on line #61 in the cronjobs view:
<?=$this->form->hidden('action', $action)?>
When you click t…
As you've probably seen the fuel_url() is added on line #61 in FUEL's module_list layout. I'd say the easiest way would be to reroute the FUEL_ROUTE for that link
We just ran into this problem with some google analytics javascript. The problem was '{var'
Eg:
var _gaq=[['_setAccount','UA-XXXXX-X'],['_trackPageview']]; (function(d,t){var g=d.createElement(t),s=d.getElementsByTagName(t)[0]; g.src…
Changed default controller to home, create a home::index() controller method which loads a view.
These use the default:
http://localhost/site/
http://localhost/site/home
http://localhost/site/home/index
404's
http://localhost/site/eubhfvubhfeubh
…
You mean module (not model) config right?
The above I have in an advanced module and I include the above jqx in the module config simply with:
js_controller' => 'InvoiceController',
InvoiceController lives in modules/module_name/assets/js/fu…
Okay, it functions as much like any other plugin/array/function structure I guess.
I can paste in a copy paste from one of my projects (see below) but without a specific problem or use case a bit hard to help.
fuel.controller.InvoiceController = …
Are you meaning extending/utilsing the jqx in your fuel back end modules or trying to bring it through to your client side?
I can give some examples for the former, not the latter, yet.
Try writing your own _common_query() method even if empty. Your where clause should work then.
I usually do:
If ( ! fuelified()) $where = array('published' => 'yes');
That might be is_fuelified(), I forget..
You've definetly set the third param to true? That ultimately runs your models find_all method.
What about if you specifiy the column to match against with:
return $this->lazy_load(array('your_id_field' => $this->id), 'meeting_attachment…
You'll be wanting:
'table_actions' => array('DELETE')
For that. Delete multiple isn't a valid option. It shows when you select multiple delete checkboxes.
You're format is slightly off for multiple options too, note the keys:
'table_action…
No problem.
On a custom field like the above $fields['album_image'] field you'll see the ckfinder attribute I stuck in there so with custom fields the new attribute is still available for you to render.
I've not tried it with 'normal' field types…
It's not git'd unfortunatly and I may have forgotten about this last night.. sorry!
The model for that second example with the images:
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); require_once(FUEL_PATH.'models/…
I've done this a few times with the custom form field type (and the func option) and pointed it at a method in the model to get and format the data.
Two examples, product options:
http://redgemmedia.co.nz/assets/grab.jpg
Images for a gallery:
http…
What's the error?
You need to do it in the __contruct() not the class member definitions.
So at the top:
public $required = array();
__construct():
function __construct() { $this->required = array( 'title' => lang('string_1'), 'c…
If you want to add the email field directly to the model you can add it in that array like:
public $filters = array('first_name', 'last_name', 'user_name', 'email');
I was off when I mentioned the module config. The filters setting there is for …
Sure is:
$fields['field_name']['displayonly'] = true;
For a complete list of what your fields can have check out the Form_builder::_normalize_value() method.
You could create different forms but it would be a PITA. You'd be better served by eva…
Easiest way is to use csv_from_result() from CI.
One example I can give you that I've done is from a button I added to the dashboard. This button posted to a controller. In the controller I had (excuse the straight copy paste..)
public function e…
Two ways:
In the head of your model:
public $hidden_fields = array('field_name');
or in the form_fields method
$fields['field_name']['type'] = 'hidden';
Ah okay gotcha.
Yeah that would be a bit tough. If you added blog in there:
http://site.com/blog/Videos/2012/03/26/My-Latest-Video-Review
You could at least isolate the routes to the blog modules blog::_remap() method. Certainly not out of the box…
Is corporate_partners_model in an advanced module or up in application/models?
If advanced, you'll need to specify the module like:
public $foreign_keys = array('corporate_partner_id' => array('my_adv_module_name' => 'corporate_partners_mode…
Yep, it'll be sortable by display_id with what I gave you.
In you're first example, all the fields from the method signature have gone. That'll break all the filters.
If you use mine but change the default $col to display_id it'll work. That $col …
Sure thing:
Add a field 'display_id' in your config.
In your model:
function list_items($limit = NULL, $offset = NULL, $col = 'name', $order = 'asc') { $this->db->select('*, id AS display_id'); $data = parent::list_items($limit, $offset…
I can't reproduce that here..
Just checked one of my advanced modules:
$config['nav']['directory'] = array( 'directory/entries' => 'Entries', 'directory/formats' => 'Formats', 'directory/keywords' => 'Keywords', 'directory/locations…