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
Asset management
They only difference between Casset and FuelPHP's Asset class is the fact that it support minification. Otherwise, it's usage is exactly the same, which means you implement both the same way, and they both have the same limitations. You c…
Comment by
WanWizard
July 2012
permalink
Repopulating forms, not using Fieldset class
As to customizing the Fieldset: you can define your own form templates, you don't have to use the default one. If you want to modify the standard template, copy core/config/form.php to app/config and modify it. If you want a custom template, e…
Comment by
WanWizard
July 2012
permalink
Repopulating forms, not using Fieldset class
I'm responding to your statement that you don't like the build() output and so you're not going to use the Fieldset class. If you don't, there is nothing to repopulate. You will have to manually create a data structure that you …
Comment by
WanWizard
July 2012
permalink
Object Model Without The Database
@Jasonjudge, If you want us to have a look, add a feature request in the issue tracker of the repo, documenting the use case.
Comment by
WanWizard
June 2012
permalink
Asset management
There is no "correct" way, it all boils down to what your preferrences are, the kind of application you're building, how big your development team is, or if developers and designers are different people. For me personally assets are …
Comment by
WanWizard
July 2012
permalink
Syntax error reporting issue
Don't think Crypt has changed over the last few versions. Is PHPSecLib present in core/vendor? And readable by the webserver? Can you startup oil console, and type $x = new \PHPSecLib\Crypt_AES(); any errors?
Comment by
WanWizard
July 2012
permalink
Repopulating forms, not using Fieldset class
If you don't use the fieldset to generate the form but use plain handcoded HTML, there is nothing to prepopulate. So I don't see how that could be done.
Comment by
WanWizard
July 2012
permalink
Running just one migration
No, you can't. Migrations are meant to be run in sequence. So you have to design your migrations like that. If you added something you want to undo later, just do that, don't retroactively modify already run migrations. Obviously, you can…
Comment by
WanWizard
July 2012
permalink
Syntax error reporting issue
Which version of FuelPHP? Installed like that or upgraded from a previous version? You get this error if the Crypt_AES class (part of PHPSecLib) can not be loaded. Did you modify anything in the core? Did you alter your app bootstrap to interfere w…
Comment by
WanWizard
July 2012
permalink
How to print a select tag with Fieldset?
Should be $voucherform->add('methode', 'Gewenste betaal methode', array('type' => 'select', 'value' => $preselect_value, 'options' => $options));
Comment by
WanWizard
July 2012
permalink
How to print a select tag with Fieldset?
From one of my apps: // create the fieldset for the exam voucher $voucherform = Fieldset::forge('voucherform'); $voucherform->add('voucher', 'Geef uw examen code in'); // create the fieldset for the payment…
Comment by
WanWizard
July 2012
permalink
Using Oil to sniff a database table schema to build scaffolding?
I'm pretty sure someone has already made a package for this, check the "tips" or the "code share" forums...
Comment by
WanWizard
July 2012
permalink
Primary key cannot be changed issue
It does have a primary key, which is your 'id' column. It is even defined as such in your model. I don't see any reference to the 'name' field in the error message, so I don't know why you think that is causing it. In …
Comment by
WanWizard
July 2012
permalink
Repopulating forms, not using Fieldset class
I do this in my controller: http://scrp.at/bCd So perhaps it's related to output encoding, and you should use the false parameter of set() to pass the fieldset object to the view.
Comment by
WanWizard
July 2012
permalink
Repopulating forms, not using Fieldset class
This is probably the issue: // your controller code return View::forge('clients/add.smarty', $profile); // should be return View::forge('clients/add.smarty', array('profile' => $profile));
Comment by
WanWizard
July 2012
permalink
Cache configuration values merged not overwritten
Configuration files merge by default, which allows you to only override the defaults in your app config file. It also makes sure that if you miss any required keys, FuelPHP can fall back on the defaults in core. There was indeed an issue with the c…
Comment by
WanWizard
July 2012
permalink
Repopulating forms, not using Fieldset class
You can just pass the fieldset object to the view, and in the view like so: http://scrp.at/bwb (obviously in Smarty it would work a bit different). Here $form is the fieldset object. It's ok to use the form array in the ORM properties, that…
Comment by
WanWizard
July 2012
permalink
Repopulating forms, not using Fieldset class
You can create that kind of forms and still use the fieldset object. Instead of generating the entire fieldset form at once, you can also do it for individual fields using $fieldsetname->field('fieldname')->build(). It will generate…
Comment by
WanWizard
July 2012
permalink
Premature end of script headers: index.php
Running PHP in CGI mode? If so, it might be a file permission issue somewhere.
Comment by
WanWizard
July 2012
permalink
Build a RESTful API
It can be complicated. Fortunately: OAuth server: https://github.com/philsturgeon/fuel-oauth-provider OAuth client: https://github.com/fuel-packages/fuel-oauth2 Haven't used the provider yet (but I know Phil does), the client works perfectly.
Comment by
WanWizard
July 2012
permalink
Router::get() returns url prefixed with 'index.php'
Have you set your application config file correctly? /** * index_file - The name of the main bootstrap file. * * Set this to false or remove if you using mod_rewrite. */ 'index_file' => false,
Comment by
WanWizard
July 2012
permalink
Build a RESTful API
I don't think it's easy to write a tutorial for this, as there are numerous ways to do it. I can only tell you how we do it, and why. We don't mix frontend and API in the same application, but we run them on different virtual hosts. …
Comment by
WanWizard
July 2012
permalink
Cache - dependencies array
The dependencies array is an array of other cache identifiers. The idea behind it is that you can have cached items expire based on the dependencies. In other words, if you do a Cache::get() of a cache identifier, and one of the dependencies has be…
Comment by
WanWizard
July 2012
permalink
Get the upload Config
It returns whatever you have set in your app/config/upload.php config file, unless you've used a Config::set() somewhere. The Upload class itself doesn't modify config values.
Comment by
WanWizard
July 2012
permalink
Fuel PDO with PHP_ODBC
You can do that if you compile PHP from source, don't know if you're up for that.
Comment by
WanWizard
July 2012
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,374
Last Active
11:24PM
Roles
Administrator