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.

Features

  • (H)MVC implementation
    • Full HMVC implementation
    • ViewModels to get the View-specific logic out of your Views and Controllers
    • Route directly to closures (from v1.1)
  • Modular and Extendable Core/Packages/Applications
    • Extend or replace Core classes without rewriting a single line of code
    • Package additional functionality into Packages
    • Create modular application by dividing it up into Application Modules
  • Security
    • Output encoding
    • Input filtering
    • XSS filtering
    • CSRF token protection
    • SQL injection prevention
  • OIL: The power of (optional) command line
    • Code generation and Scaffolding
    • Run Database Migrations
    • Interactive Debugging
    • Tasks - useful for CRON and Importing Data
  • ORM
    • OO way of working with database data and performing CRUD operations
    • All normal relationship types: belongs-to, has-one, has-many, many-many ("has and belongs to many")
    • Fetch relations of relations of relations of...etc... in one go ("nested relations")
    • Use Observers to update/process the objects instances, for example to validate before saving or to auto-update an updated_at property
    • The only ORM to support Temporal rows
    • Soft delete out of the box
  • Authentication Framework
    • Included simple authentication for users, groups & basic ACL
    • Secure hashing function for passwords included (PBKDF2)
    • Default interface for any Auth library in Fuel
  • Template Parsing Libraries
    • There are drivers included for the following libraries:
      • Mustache
      • Markdown
      • Smarty
      • Twig
      • Haml
      • Jade
      • Dwoo

Current Version: 1.7.3 (released 2015-05-21)
Website: http://fuelphp.com
Documentation: http://fuelphp.com/dev-docs
API: http://fuelphp.com/dev-api

523 questions
2
votes
2 answers

Apache error - child pid 1789 exit signal Bus error (10)

I get this strange error child pid 1789 exit signal Bus error (10) I have never seen before in my Apache error log. I am using FuelPHP framework. The web app is working fine. But suddenly today I created new controller, which itself is a copy of…
Primoz Rome
  • 10,379
  • 17
  • 76
  • 108
2
votes
1 answer

FuelPHP Oil Scaffolding and MongoDB

Is there any solution yet to make oil scaffolding (--crud) work with mongodb out of the box? It seems like it should be fairly easy... Along with that question, I wonder if I can set mongodb as default connection under 'default' - seems like there…
Toby
  • 2,720
  • 5
  • 29
  • 46
2
votes
1 answer

Why does REST Response not end the execution?

In FuelPHP when using Controller_REST I can't use \Response as REST controller has its own Response functions using $this->response... But when I execute this function and pass a body and a response code. $this->response(array("Missing…
Aran
  • 3,298
  • 6
  • 32
  • 33
2
votes
1 answer

FuelPHP and Multiple Database Connections

The FuelPHP documentation does not include information on how to use the DB class to specify connections, which would allow me to then control multiple database connections. Any idea on how to accomplish this? Google search shows evidence of a…
swt83
  • 2,001
  • 4
  • 25
  • 33
2
votes
1 answer

CakePHP-like validation in FuelPHP

Hey guys, our company is looking to start using FuelPHP as it's main framework for development. Personally I come from a CakePHP background, and really like the way that Cake handles a lot of things, such as validation - i.e. set the rules once in…
Daniel
  • 441
  • 1
  • 8
  • 17
2
votes
2 answers

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 data source name [FATAL] index.php <:64> : [2018/06/08…
tama
  • 51
  • 8
2
votes
1 answer

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 absolutely fine. The issue i have is when i add…
2
votes
1 answer

FuelPHP with Nginx routing not working

I'm new to FuelPHP and web development in general. I'm trying to redirect a user to a different controller but for some reason I can't get the page to display. The homepage displays fine and if I change the default homepage to the Blog page it…
Daniel Roy
  • 41
  • 6
2
votes
2 answers

Return _data array from ORM with FuelPHP

I'm creating a REST API using FuelPHP and its ORM, docs found here: http://fuelphp.com/docs/packages/orm/crud.html I can return a object of the database row like so: $entry = Model_V1_Inventory::find(1); This returns me the object where the PK is…
twigg
  • 3,753
  • 13
  • 54
  • 96
2
votes
1 answer

mock http server in phpunit

i write a test for my controller,it need $_SERVER[REQUEST_URI],how can i mock this and make it run my controller is public function action_index() { $presenter = Presenter::forge('www/php'); $this->template->content = $presenter; } my test…
yang
  • 183
  • 12
2
votes
1 answer

how to test redirect in fuelphp

I write a controller like this public function action_submit() { $submit = Format::forge(json_decode($_POST["submit"]))->to_array(); Servicecode::add_code_request($submit); Response::redirect('code/codedetail'); } then i want to write phpunit to…
yang
  • 183
  • 12
2
votes
1 answer

how to use auto_increment in fuelphp to create table

I write a fileds like this $fileds = array( 'id' => array('type' => 'integer','AUTO_INCREMENT'=>true), 'user' => array('type' => 'text'), 'time' => array('type' => 'integer') ); When I run thisDBUtil::create_table($table,…
yang
  • 183
  • 12
2
votes
1 answer

Case insensitive `like` with FuelPHP's orm and mysql

I am using FuelPHP and MySQL, and would like to use the ORM to query with a case insensitive like query against a column with a case sensitive collation. For example, in my orm model, I'd like to do something like this: public static function…
johncorser
  • 9,262
  • 17
  • 57
  • 102
2
votes
1 answer

Subtract a value from a column in fuel php query builder

I tried to subtract a numerical value from one column in FuelPHP query builder. Its like this. update item set price = price - 1000; And I wrote codes like this: $query = DB::update('item')->set(array('price'=>'price'-1000)); However, this doesn't…
user3119018
  • 199
  • 1
  • 4
  • 12
2
votes
1 answer

How to add a condition to relation query in FuelPHP?

I am trying to filter a orm query in fuelphp. Is it possible to check a property on the related model? I want to grab the related "comments" but only if their visibility property is "0". Is it possible to do this in the same query? This is my…
Youngin
  • 261
  • 4
  • 14
1 2
3
34 35