Thank you for answering me. I don't have a controller for this module (From the documentation: Simple modules don't require additional views and controllers to be created), it is a simple module. The url behind the button is: mysite/products/slug (t…
Found the answer, thx
In the products_model file, under:
class Products_model extends Base_module_model {
I added this function:
public function on_before_save($values) { $values = parent::on_before_save($values)…
Removing the redirect from cpanel, I still get the Forbidden error when trying to edit things on the admin side.
It happens when I try to save a block I edited, that has the google maps code in it (e.g. the iframe you get from google maps)
In fire…
I removed the 'forms' from
$config['modules_allowed'] = array(
'user_guide',
And now it works but I would like to know how to solve the problem if I do want to use the 'forms' module
I enabled errors and I get this:
Type: RuntimeException
Message: Unable to locate the model you have specified: Forms_model
Filename: /home/noahscheeseco/public_html/fuel/codeigniter/core/Loader.php
Line Number: 348
But the forms_model is in the…
I found out that for some reason the index.php in the root folder was wrong. I uploaded it again, now I just get a blank page.
I checked the php version, it was 5.6, changed it to 7, deleted the fuel folder and uploaded it again.
Now I just get a …
This is my htaccess:
Options +FollowSymLinks
RewriteEngine On
RewriteBase /
Order Deny,Allow
Deny From All
# Allow asset folders through
RewriteRule ^(fuel/modules/(.+)?/assets/(.+)) - [L]
# Protect application and system files fro…
I tried all kinds of things, nothing works:
In my forms.php file I have this:
$config['forms']['forms'] = array(
'contact' => array('javascript_validate' => TRUE, 'javascript_submit' => FALSE, 'form_display' => 'block', 'block_view' =&…
A different problem I have now is with this:
<?=$__antispam___field?>
I get this error:
A PHP Error was encountered
Severity: Notice
Message: Undefined variable: __antispam___field
Filename: _blocks/contact_form.php
I have the forms file…
Thank you Gumster. The problem is I can't understand how to do the contact form, so I downloaded the demo site and it seems it is on php 5.6. The new site I'm trying to develop is on php7
Sorry, another question, which version of ci is the demo site using?
I uploaded the site to my live server (php version 7) and I get this error:
Message: Declaration of MX_Loader::library($library, $params = NULL, $object_name = NULL) should be com…
Thank you, but still can't make it work.
I changed my approach and downloaded the demo site from the user guide.
I put these details in the Email file:
var $mailpath = "";
var $protocol = "smtp";
var $smtp_host = "ssl://smtp.googlemail.com";
va…
Ok, I created a block with the form (I want to display the form on the home page)
The form's action is: mysite/contact/process
I have a contact controller and in it I have a function: process.
In the Email.php file I have this:
public $mailpath =…
Hi again, looking at the link you sent me, I still don't understand how to create the form.
"Create forms in the CMS, as static views or a combination of the two" where in the CMS?
"Below is an example of adding a hook in the configuration file o…
Hi,
This is what I tried:
$x = array_chunk($cheeses, 3);
1.
foreach($x as $y) {
echo $y->cheese_name;
}
I get this error on the echo line:
Message: Trying to get property of non-object
2.
foreach($x as $y) {
print_r($y);
}
I get a white page…
Hi,
For some reason it doesn't work:
$cheeses = array_chunk($cheeses);
gives me blank screen.
Even if I try: print_r($cheeses) I get blank screen.
If I try this:
$x[0] = array('name'=>'Bob', 'age'=>10);
$x[1] = array('name'=>'Brad', 'age'…
Thank you, but then what do you mean here:
Note that the fuel/data_backup, fuel/install and fuel/scripts folders should be a folders inaccessible from the web if using .htaccess.
If using .htaccess? And if not?
And do I need to change anything in…