Love Fuel?
Donate
About
Forums
Discussions
Login
FuelPHP Forums
Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
WanWizard
a.k.a. WanWizard
Discussions
4
Comments
8242
Activity
\Session_Db: db object stored in variable causing issue
That looks like a very serious issue. Hmmm.... I'll dive into it later today.
Comment by
WanWizard
May 2018
permalink
\Session_Db: db object stored in variable causing issue
Does that mean you have this same problem and this PR fixes it?
Comment by
WanWizard
May 2018
permalink
\Session_Db: db object stored in variable causing issue
Is this related to https://github.com/fuel/core/pull/2083 ? I see now it wasn't merged for some reason...
Comment by
WanWizard
May 2018
permalink
Using an ORM Designer?
Have a look at the fromdb task, it does the same (generate models and migrations), but then from database tables.
Comment by
WanWizard
May 2018
permalink
Class 'Email' not found
That, or use \Package::load('email');
Comment by
WanWizard
May 2018
permalink
Using an ORM Designer?
Shouldn't be too difficult if the content of the xml is decent enough.
Comment by
WanWizard
May 2018
permalink
Using an ORM Designer?
That is not what I see here: https://www.skipper18.com/en/frameworks/cakephp which does suggest the tool has this support built-in. Again, nobody is stopping you from creating an oil task to generate the required framework files from that xml, I…
Comment by
WanWizard
May 2018
permalink
Using an ORM Designer?
No matter what route you choose, there is always manual work involved. My point is that I am quicker in creating a migration and a model than having to enter all the data into some graphical tool, do a lot of mouse fiddling, and then generate somet…
Comment by
WanWizard
May 2018
permalink
new version
@atabak, No, that is very much a work in progress, we're busy converting the framework to PSR-4, and into a situation where we can update it without breaking to much. When this is ready it will probably be moved to "master" which is t…
Comment by
WanWizard
May 2018
permalink
Using an ORM Designer?
From what I can see it Skipper18 supports creating your own template. My point was only that I don't see why we (or anyone else) should do that since it is commercial software. For the rest I can only speak for myself: I never use tools like th…
Comment by
WanWizard
May 2018
permalink
Using an ORM Designer?
Skipper18 is buyware, so I think for the price they could include it? They include plenty of others? Personally I've never feld the need, I create the base models quicker than I can draw them in a tool. And if you can draw them in a tool, you c…
Comment by
WanWizard
May 2018
permalink
Php compiler
And not to forget, PHP 7 is virtually as fast as HHVM.
Comment by
WanWizard
May 2018
permalink
Edit values in config file
What is that file called? Assuming, based on your load statement that file is called "organisation.php". So if you load that, you'll end up with: 'organisation' => array( // name of the config file 'organisat…
Comment by
WanWizard
May 2018
permalink
Check if all wanted Inputs are present
That greatly depends on how your forms are generated, so I don't have a set answer for that. Some just output the messages on top of the form, some use the key values of the errors() array to give the input field a red border: Some have more c…
Comment by
WanWizard
May 2018
permalink
Routes result in 404?
If you want to include code, you can use our pastebin: http://bin.fuelphp.com, and just post the link here.
Comment by
WanWizard
May 2018
permalink
Check if all wanted Inputs are present
If by input you mean "posted data", you use the Validation class. Create an instance, set up your validation rules, then run it on the input.
Comment by
WanWizard
May 2018
permalink
Fieldset textarea?
Add 'type' => 'textarea' to the array.
Comment by
WanWizard
May 2018
permalink
Routes result in 404?
Replacing the forum is days of work. Only one pair of hands and limited time available I'm afraid. :-)
Comment by
WanWizard
May 2018
permalink
Routes result in 404?
The forum is in desperate need of an update. On the todo list, but quite a way down. ;-)
Comment by
WanWizard
May 2018
permalink
Charts in FuelPHP
This is a pretty good example: https://stackoverflow.com/questions/19894952/draw-a-chart-js-with-ajax-data-and-responsive-a-few-problems-and-questions On the Fuel side, you need to create a Controller that extends Controller_Rest, which contains an …
Comment by
WanWizard
May 2018
permalink
Charts in FuelPHP
You don't. MySQL is backend, charts.js is frontend. I don't know it as I'm not a frontend developer, but usually these type of solutions either require you to generate and include the data for the chart in the HTML/Javascript output t…
Comment by
WanWizard
May 2018
permalink
FuelPHP 1.8.1 and db session driver (PostgreSQL)
Can you var_dump $this->record when it returns null, and post that here? I don't have PostgreSQL available to test at the moment.
Comment by
WanWizard
May 2018
permalink
FuelPHP Chart Tutorial
Javascript is frontend, so yes, somewhere in ./public, usually assets (but you can name it what you want, use a CDN, etc). Where also depends on how you set it up. By default you have something like ./public/assets/js for javascript files, ./public…
Comment by
WanWizard
May 2018
permalink
belongs_to cannot find the from key without configuration
It can not find what? What is the error? I can't really do anything with "it doesn't work". I recreated your setup: fuel/app/classes/model/carervisitlog.php:
Comment by
WanWizard
April 2018
permalink
belongs_to cannot find the from key without configuration
Inflector::tableize() is used to convert the Model name to the table name. /data/www/fuelphp/1.9/develop (1.9/develop)[wanwizard@catwoman] $ oil consoleFuel 1.9-dev - PHP 7.1.16 (cli) (Mar 28 2018 07:11:55) [Linux]>>> Inflector::tableize(&…
Comment by
WanWizard
April 2018
permalink
More Comments
Howdy, Stranger!
It looks like you're new here. If you want to get involved, click one of these buttons!
Sign In
Apply for Membership
About
Username
WanWizard
Joined
January 2011
Visits
2,366
Last Active
11:56AM
Roles
Administrator