Questions tagged [flourishlib]

Flourish provides a strong, base set of PHP classes that run pretty much anywhere, helping you focus on solving more interesting problems.

Flourish provides, according to its website, a strong, base set of PHP classes that run pretty much anywhere, helping you focus on solving more interesting problems.

Extensive documentation and a sane API help you get stuff done, whether you are building a new app or maintaining a legacy website.

18 questions
4
votes
0 answers

Has anybody seen a template for a stacked bar chart race...?

I’m in need a flourish template for doing a stacked bar chart race. Any suggestions.? I Have searched the forums and haven’t been successful. As another possible approach, is it possible to modify an existing template?
2
votes
1 answer

Why Flourishlib fDatabase disable prepared query?

I'm discovering FlourishLib and I was looking at their fDatabase.php code to see how they handle sql queries, and I was really surprised to see that when you use MySQL, they disable prepared…
Cyril N.
  • 38,875
  • 36
  • 142
  • 243
0
votes
2 answers

How to support emojis with flourish?

I am using flourishlib for a website. My client requested that we should be able to use emojis with mobile phones. In theory we should change the character-encoding from utf8 to utf8mb4 for the MySQL database. So far, so good, however, if we make…
Lajos Arpad
  • 64,414
  • 37
  • 100
  • 175
0
votes
0 answers

Does flourishlib require to register debug callback or register hook callback?

I have been refactoring a project and I have seen a class named Logger. I assume this is deprecated and unneeded. I have searched for references of it and I have seen a single code fragment, which uses…
Lajos Arpad
  • 64,414
  • 37
  • 100
  • 175
0
votes
1 answer

PHP while loop of mysql queries sometimes returns an empty set randomly (they're not empty, but the result is empty)

I am writing a report on data based on new customers for each given month, starting from the earliest month an order was present all the way to the last month that any orders are present (I realize the current code will stop on any month that…
Alex
  • 121
  • 11
0
votes
1 answer

How to install specific files from a package using composer.json

I am writing a 1 page script to do a relatively simple task. So I decided to use Flourish Unframework which provides a bunch of cool classes that can used separately. I only want to use specific classes, say fDatabase, however composer let's…
Xolani
  • 1,308
  • 1
  • 9
  • 10
0
votes
1 answer

php flourish fActiveRecord store store two times

i´m using flourish for my database tasks in my php application. Now i have the problem that the store method saves new datasets always severel times in the database. $o1 = new Version(); $o1->setVersion(rand(1,…
Kai
  • 89
  • 4
  • 13
0
votes
2 answers

amazon php sdk and flourishlib autoloader s3client could not be loaded

I am attempting to upload a file to s3 using php 5.3.3. I am using the Amazon PHP sdk and using the autoloader. The problem is that the autoloader for AWS is not loading the classes correctly and we are getting a exception when loading S3. Our…
pawelglow
  • 708
  • 1
  • 10
  • 20
0
votes
1 answer

How to get records having null as value in specific columns?

I am using flourishlib in some of my projects. Let's suppose that I have a table called categories(id, name, parent_id), where parent_id is a foreign key to the categories table. I am using fRecordSet::build() to select record sets. I would like to…
Lajos Arpad
  • 64,414
  • 37
  • 100
  • 175
0
votes
1 answer

preg_match within an php email reading class

I have only just come across preg_match (that's a lie, I've been avoiding it like the plague).. and now I have to fix an expression in a library I have been using. The library in question is flourish, and I have checked and the license is MIT so no…
DJB
  • 257
  • 2
  • 11
0
votes
1 answer

flourishlib throws exception when trying to store an empty string as a value of a not-null column

I have a class Question inherited from fActiveRecord. When I try to run the following code: $question = new…
Lajos Arpad
  • 64,414
  • 37
  • 100
  • 175
0
votes
1 answer

How to interact with preview and save using flourishlib's fRecordSet's build method?

Let's suppose I have a database table called local_ads. Now, when a local ad is created, one has to be able to view its preview and if he is satisfied, then save it. Also, if one wants to update a local ad, then he might want to see its preview…
Lajos Arpad
  • 64,414
  • 37
  • 100
  • 175
0
votes
1 answer

How can I define foreign key routes in Flourish?

I am using PHP with Flourish. I read their documentation here and here. Let's suppose I have a table persons and another table items. Let's suppose further that I have an item_id1 and an item_id2 in the persons table. Both of them are foreign keys…
Lajos Arpad
  • 64,414
  • 37
  • 100
  • 175
0
votes
1 answer

Flourish: How to select one-to-many

Let's suppose there is a set of A and for each a of A there is a set of B. In short: A:B = 1:n Let's suppose, there is an a, which is an A and it is interesting. However, I would like to select a with all its B elements. For instance, let's consider…
Lajos Arpad
  • 64,414
  • 37
  • 100
  • 175
0
votes
1 answer

Flourish PHP Library - Cryptology Security

I am looking at switching to Flourish but am concerned with its current state of development. It is in beta, but they say that it "can generally be considered production ready." I am looking through the documentation and am not sure if the…
WhoaItsAFactorial
  • 3,538
  • 4
  • 28
  • 45
1
2