Questions tagged [fuelphp]
FuelPHP is a simple, flexible, community driven PHP 5.3 web framework based on the best ideas of other frameworks with a fresh start.
525
questions
-1
votes
0
answers
18
views
Maximum number and size of files I can upload at once through a post form in PHP?
I want to create a functionality that accepts a folder of Images (.png, .jpg, .jpeg, .bmp, .gif) along with a csv. The images will be stored onto the server file storage and related csv data along ...
0
votes
0
answers
21
views
Fuelphp translate validation messages like "Username already exists" from fuel\packages\auth\classes\auth\login\ormauth.php
I am new to Fuelphp and I am trying to translate the validation error messages like "Username already exists" from packages, the file is fuel\packages\auth\classes\auth\login\ormauth.php. I ...
0
votes
0
answers
25
views
How can i show 500 server error on production instead of php error in fuelphp
I want to show 500 sever error on production i have made changes in .htaccess,config.php,index.php,bootsrap.php file still i am getting SQL syntax i do'nt want to print sql query show the hacker can ...
0
votes
3
answers
54
views
Query Optimization, changing the queries in the loop into a single processing query
How do I optimize these queries to be one or two? The one in the loop to be one at least.
$applicantIds = \DB::select()->from( 'applicants' )->where( 'created_at', 0 )->execute();
foreach ($...
0
votes
1
answer
99
views
i tcreated an orl module in fuelphp and itt keeps throwing me Fatal Error! ErrorException [ Fatal Error ]: when i try using it
the module:
class Model_Categories extends \Orm\Model
{
protected static $_connection = 'production';
protected static $_table_name = 'categories';
protected static $_primary_key = array('...
0
votes
1
answer
102
views
PHPStan configuration for FuelPHP
I am having a lot of trouble getting PHPStan to see the FuelPHP core classes. It would appear this sort of thing causes it grief:
namespace Fuel\Core;
/**
* Template Controller class
*
* A base ...
1
vote
0
answers
50
views
Migrating old FuelPHP Amazon SES package to Signature Version 4
I am supporting a client that has an old FuelPHP web app. Emails are bing send with this FuelPHP package, that does not exist on Github anyomore.
Amazon Email Delivery library for FuelPHP
@link ...
0
votes
0
answers
156
views
Uncaught exception 'Fuel\Core\PhpErrorException' ....system's timezone settings
I Using Php 5.3, while changing from UTC To EDT/-4.0/DST Timezone it give the following errors.
Please Help Me Out...Thanks.i will describe before and after timezone change errors...
BEFORE timezone ...
0
votes
1
answer
41
views
FuelPHP \URI::current() does not get file extension
My project requires me to know what file extension was used while calling a route.
For example,
If the route was 127.0.0.1/controller/action/filea.json
Then then I would need to have a function that ...
-1
votes
1
answer
100
views
Call to a member function format() on boolean using PHP and FuelPHP MVC Framework
I am aware that this is a common error and has more than likely been answered, but the issue I am having is when the function is executed it's returning the $down_time variable as null when a new ...
0
votes
1
answer
67
views
Send an email after 5 minutes by comparing 2 datetimes using PHP and FuelPHP framework
I am using MVC framework called FuelPhp I am aware this is an old framework but this is what the application runs on.
Trying to send an email comparing two datetimes, so if the website is down ...
0
votes
1
answer
263
views
How to output log to StackDriver logging in fuelPHP
I deployed app is created by fuelPHP on GKE.
GKE Cluster is enabled Stackdriver Kubernetes Engine Monitoring.
https://cloud.google.com/monitoring/kubernetes-engine
But fuelPHP's Log::xxxx() is not ...
-3
votes
1
answer
116
views
Change password from database of a live site
I have an old project that is done in Fuel PHP and the site is live. The problem is that I forgot the password of the admin login. I am not able to reset it. I have the credentials of the Cpanel so, I ...
0
votes
1
answer
27
views
Add attributes on li tags for FuelPHP ul method
Using FuelPHP, I was wondering how to add attributes on li tags for the ul method ul($list, $style = false).
https://fuelphp.com/docs/classes/html.html
Here is what I want to achieve
<ul id="...
0
votes
0
answers
689
views
Fuel\Core\PhpErrorException [ Warning ]: array_key_exists(): The first argument should be either a string or an integer
Trying to get a drop down list to be populated with a category name when the category id is entered. I get an error unfortunately. The SQL that is returned should be an integer for the key and a ...
0
votes
2
answers
82
views
Autopopulating a dropdown menu by inputing numbes into a field using php
I'm new to php and html in general, so please forgive me for any stupid utterances. I'm trying to auto populate a drop down menu after entering a number into a blank field.
I looked around on google,...
0
votes
0
answers
82
views
FUELPHP Database Exceprtion :- General error: 20018 Conversion failed when converting date and/or time from character string
Recently i have migrated my code form vm to docker .Its working good in the docker except for some DB operation..
During a save operation i am getting some Database error related to MSSQL Date and ...
1
vote
2
answers
204
views
FuelPHP Call to undefined method PHPUnit_Util_Configuration::getTestdoxGroupConfiguration()
I am getting error on fuelphp unit test code. please suggest me how can i solve it. I am not getting any solution in fuelphp
$ phpunit --version
PHPUnit 3.7.21 by Sebastian Bergmann.
error is here
$...
0
votes
1
answer
222
views
Migrating from FuelPHP to Laravel: problem with one response
i'm migrating an old project from fuel to laravel and i'm having trouble with the response to one of the requests. The issue is, i need the response from laravel to be exactly the same as it was in ...
0
votes
2
answers
41
views
Add mysqli connection inside fuelphp
I have a cron that fires every Thursday, however I wanted to add some other lines to the cron but since im using FuelPhp, I cant do so because of the error attached in the image.
Is there a way I can ...
0
votes
0
answers
41
views
Template controller doesn't show the desings in Fuelphp
I got a fuel php project from my client. i see the code of fuel php and i understand the working of that project then i want to create a page and link with exist template into my controller page.
I am ...
0
votes
1
answer
259
views
fuelphp download csv on button click?
Similar to the uploading feature in fuelphp (link provided below), is there a tutorial for downloading files in fuelphp. There is not much information out there for fuelphp (other than the docs). ...
0
votes
1
answer
205
views
Fuel\Core\PhpErrorException [ Notice ]: Undefined variable: error when configuring mysql db
I am trying to configure my db (connection strings below)
return array(
'default' => array(
'connection' => array(
'dsn' => 'mysql:host=Webdatabase; dbname=web_btw',
...
-2
votes
1
answer
51
views
Exec ruby cmd error with PHP
Here is my environment.
PHP version: 5.5.23
Framework: fuelPHP
Ruby: 2.3.0
My Ruby script requires aws-sdk. I want to call ruby script as it works on Putty, for example like this:
ruby filelist.rb
...
2
votes
2
answers
152
views
Compile error in query builder, after FuelPHP upgrading from 1.7.2 to 1.8.1
After upgrading PHP from 5.5 to 7.1 and FuelPHP from 1.7.2 to 1.8.1, I have below "invalid data source name" error in compile method.
[FATAL] index.php <:63> : [2018/06/08 02:47:26] invalid ...
0
votes
1
answer
69
views
Soft delete nested children
I have a model called 'Model_Announcement' which extends Model_Soft and another model called 'Model_Announcement_Comment' which extends Model_Nestedset.
The relationship between them is:
...
0
votes
0
answers
79
views
Capture Payment in Worldpay payment Gateway
I am implementing worldpay business gateway for my website. I have created a form and done a test transaction. Everything works fine. I got response from worldpay and I saved it in my database. Now, I ...
0
votes
1
answer
110
views
PHP Reflection class newInstance exit on execution
I'm writing controller testing unit with Fuelphp framework. And inside the code I'm trying to request application controller like this one :
$response = Request::force('controller_name/...
0
votes
1
answer
342
views
Fuelphp: Always load config files
What is the best way to ensure that a config file is always loaded in Fuelphp?
add to bootstrap?
Make sure all controllers subclass a parent class
(or trait) whose before loads it?
Load it in every ...
0
votes
0
answers
93
views
Is it possible to pass value from controller to presenter in Fuelphp?
I have controller and presenter and I want to pass directly pass value from controller to presenter, not in the view.
Is it possible to do that?
0
votes
1
answer
58
views
How to avoid Fuelphp converting html code to htmlentities
I'll like to pass some html code from the controller to the view (as is), but fuelphp automatically converts to html entities so the code is not displayed correctly....
Here is my code:
$data['...
0
votes
0
answers
123
views
uncaught exception Fuel\Core\Database_Exception: SQLSTATE[HY000] [2006] MySQL server gone away
Traying to do some migrations with fuelphp. the packages are ready to migrate and properly installed for app:defailt but dont let me conect with the database and proceed to imprement the migration. ...
0
votes
1
answer
133
views
ErrorException [ Error ]: Call to a member function save() on a non-object
I keep getting this issue, Im new to fuelphp so I'm not sure of how it fully operates, however this is where my code stops working after I added $program->save();
$setup->...
1
vote
1
answer
4k
views
MPDF error when generating to PDF
I'm having issues generating HTML/PHP code to PDF. Im using mPdf
Here is my code:
<table id="packing_slip">
<?php
foreach($sheets as $s):
echo "<tr>";
echo "<td>";
$...
0
votes
2
answers
248
views
How do you iterate through Input::post() data?
To my understanding Input::post(); with no parameters returns an array containing all the data from a specific POST..
I am doing this $all_input = Input::post();
But then I am iterating through the ...
5
votes
1
answer
661
views
Object not found! after redirect route in Fuel php
Below is the directory structure of my fuelphp project
fuel
logs
public
tmp
In public folder i have
assets
index.php
When I hit any URL other than base URL it throws following error
Object not ...
0
votes
0
answers
81
views
How to use model CRUD properly?
I have one database table images and second one objects. images table is having object_id primary key related to objects.id field.
Now after a POST I am selecting images by posted ID's, loop through ...
0
votes
1
answer
352
views
FuelPHP- Using Asset::img() with images fetched from database by for loop
<?php foreach($works as $work) : ?>
<?php echo Asset::img('project-icons/icon/$work->cover_img', array('class'=>'img-responsive', 'alt'=>'...')); ?>
<?php endforeach; ?>
...
0
votes
1
answer
60
views
How to turn arrays to classes like fullphp
I'am using the fullPHP Library and I do not understand some sources.
The library has a config-class witch will be called like
Config::load('test.php', true);
the test.php looks like this:
<?...
0
votes
1
answer
78
views
sending data to fuelphp with angular4
I send data to fullphp like this
let body = JSON.stringify({ product : 120 });
let headers = new Headers({ 'Content-Type': 'application/x-www-form-urlencoded' });
let options = new RequestOptions({ ...
1
vote
0
answers
122
views
Unknown error regarding mysql
I was using Fuelphp's older version, now I am using 1.8 latest. After I upgraded the core and bootstrap files, I have php 7 and mysql latest installed works fine, php and mysql.
Fuel\Core\...
2
votes
1
answer
144
views
Enabling HTTPS in Elastic Beanstalk
I am running a web application is AWS. I have a load balanced environment set up in Elastic Beanstalk and i have attached a certificate to that for HTTPS.
When i access the homepage URL, HTTPS works ...
-1
votes
2
answers
77
views
object as exit() parameter
Is this even valid? Because it's working.
if(empty($query)) {
exit(View::forge('error', $data));
//View::forge('error', $data) = object
}
According to PHP manual exit should only accept "...
-1
votes
1
answer
45
views
limited access to a login user that should not be see more then 5 user profile fuelphp framwork
I want to give limited access to a login user that shouldn't be see more then 5 user profiles on that site. If user login in franchiseindia data in php.
1
vote
2
answers
63
views
list_columns() multiple table?
title says, is there a way to select column name from multiple table?
DB::list_columns('table1'); //returns columns of table1
what I want to do is
DB::list_columns('table1', 'table2');
I want to ...
0
votes
1
answer
105
views
How do create an instance of Fuel Email and use it?
Noob to Composer and packagist.
When I install, for example, Respect/Validation with Composer, it puts it into vendor/ directory, and I add the necessary 'use' statements, etc.
I keep referencing: ...
1
vote
1
answer
817
views
order by and group by in ORM (fuelphp)
I'm trying to order by and group by tag
$result =
Model_Tag::query()->select(\Fuel\Core\Db::expr('count(*)'),'count')->select('tag')->group_by('tag')->order_by('count','desc')->get();
$...
0
votes
2
answers
500
views
Pass parameters to Presenters (fuelphp)
How does one pass a parameters to a Presenter? Reading the documentation there doesn't seem to be a way.
https://fuelphp.com/docs/general/presenters.html
Controller
$points = Presenter::forge('...
1
vote
1
answer
79
views
How to use haml views with fuelPHP?
I'm trying using HAML with fuelPHP 1.8
First
I followed piece of advices from https://github.com/fuel/parser by updating require part of composer.json
"require": {
"php": ">=5.3.3",
"...
1
vote
0
answers
1k
views
getimagesize () Read Error
I am using fuelphp framework. It uses getimagesize function (gd.php).
Function get called 3-4 times while converting image to different sizes. Some times it work or after getting called 2-3 times it ...