That $_SERVER variable should probably be set by the server, but if it doesn't exist, you can set it in the index.php file:
$_SERVER['HTTP_HOST'] = 'myhost.com';
To make a block inline editable, it must be saved in the CMS. Using the fuel_block function by default will give it a pencil icon (it has an "editable" parameter set to TRUE by default when stored in the CMS).
The set label doesn't quite work well …
Since the field name is "password" there is a representative value that is overriding that. Add the parameter "ignore_representative" => TRUE:
$fields['password'] = array('type' => 'text', 'ignore_representative' => TRUE);
More on represent…
Your model only contains a join in the list_items method and not one set for the find_all method. To add it to the find_* methods you can add the join in the model's _common_query() method:
function _common_query(){ parent::_common_query(); …
I'm not quite sure I understand this "after the creation of the various blocks occur after saved you can not make more edits."
You should be able to see the blocks layouts when creating a page in the CMS with the layout of "test". There should be …
That's a bug it looks like. This should work:
php index.php tester/run app Simple_test.php
I've posted a fix:
https://github.com/daylightstudio/FUEL-CMS-Tester-Module/commit/1c6bfbd91ad20bfc344b2d5ee7e0249a8dacef1b
This looks to be a front end page correct? If so, you'll want to do something like this:
$CI =& get_instance(); $CI->load->library('pagination'); $CI->load->model('projects_model'); $limit = 10; $offset = $CI->input->get('offse…
Are you able to run other things via command line like the generate functionality (see link below)? I've run into issues before on my Mac where the php interpreter being run has issues connecting to the database. Are you by chance using Mamp? If so,…
CKEditor likes to do stuff like move HTML around. In your case, it is probably doing that because you have an inline element "a" tag wrapping a block element "div" tag which is non-standard HTML.
If you are using the CMS pages module, you can put this in your field:
{fuel_block('services')}
If you are using a static view, use this:
<?=fuel_block('services')?>
In your has_many or belongs_to relationships, you can specify the following additional parameters:
relationships_model = a model for the lookup table,
foreign_key = the key used for the foreign model
candidate_key = the key used for current model to…
On line 977 is where it should be pulling in your view file. That process should execute the fuel_set_var function (since it's in that view file) which would register it as a variable on the load object. Line 981 then pulls all the load registered v…
You can use the Fuel_pagevars class like so:
$vars = $this->fuel->pagevars->retrieve('my_location');
You can get the current locations variables like so:
$vars = $this->fuel->page->variables();
This would depend on how the front-end pages are being rendered and if they rely on the main template's CSS or not. Or are you referring to using a CSS framework for the backend?
Setting the value in the form_fields method will only work when first creating a record. Editing the record will pull the information from your module's edit_method which by default is the find_all_array method on your model. You can try either over…
fuel_var() outputs not only the variable but also the inline editing comment code used. If you set the third parameter to FALSE, then it won't do that. Or you can simply just use $listing_type instead of fuel_var('listing_type')
There are a list of advanced modules that can be found here:
http://www.getfuelcms.com/developers
If you submit one, we'll review it and can post it there barring any sort of issues.