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
Validation error_class not set on fields with errors?
This is indeed (almost) the normal flow of an action: - build the fieldset - check for input (you don't do this) - run the validation - if valid, process the data, and redirect away - pass the fieldset to the view, and return the view (you…
Comment by
WanWizard
April 2012
permalink
Extending core classes
Then you're doing something wrong. the file is called app/classes/arr.php, in lower case? And defined like so:
Comment by
WanWizard
April 2012
permalink
How do I add profile_fields?
I'm not sure how up to date Stationwagon is, check if it will run on 1.1/develop, as we're about to release v1.2 which is based on the latest develop branch. I also don't know how complete the application is. Instead, you might want …
Comment by
WanWizard
April 2012
permalink
Extending core classes
You should not use the Core namespace when extending core classes. The way the Fuel core works is that all core classes are aliased from \Fuel\Core to the global namespace (in which your app lives). Any extended classes are defined in the global na…
Comment by
WanWizard
April 2012
permalink
iPhone Full Screen not recognized by Agent
How is your agent class configured? This suggests the browscap file isn't fetched or installed. If you surf to http://browsers.garykeith.com/your-browser, what does that say? If that gives you the correct information, the browscap file (which…
Comment by
WanWizard
April 2012
permalink
Validation error_class not set on fields with errors?
The form HTML of a fieldset field is generated in the Fieldset_Field class, by the template() method. Looking through the code it does fetch the 'error_class' setting from the config if the field is in error, and inserts it in the templat…
Comment by
WanWizard
April 2012
permalink
How do I add profile_fields?
Just use the update_user() method. You pass it an array of field => value pairs (and optionally a user name), any fields in this array that are not part of the table will automatically be added to the profile fields.
Comment by
WanWizard
April 2012
permalink
Why am i having a hard time configuring the db.php?
david strada wrote on Sunday 1st of April 2012: I wish this will be like CI where you just put localhost or 127.0.0.1 db name pass and done! That is the same here, I can't remember how many Fuel installs I've rolled out the last year, …
Comment by
WanWizard
March 2012
permalink
Should I start with 1.1?
In short: no, yes, no. We're working on a new community website (nicknamed Fuel Depot) which amongst other will have the code API documentation and the user documentation. This site will be used to build the documentation, which will be writte…
Comment by
WanWizard
March 2012
permalink
Validation: How to validate a field not in my model
The Validation observer uses a fieldset with the name of the model class. If you create that using Validation::forge('Model_Myclassname') and add your custom fields to it before the Validation observer is called, the observer should re-us…
Comment by
WanWizard
April 2012
permalink
Auth vs Sentry
It is not the intention of the Auth package to provide a full and complete authentication and authorisation system. It is meant to be an extensible framework in which you can plug any functionality you want. The 'simple' drivers that come…
Comment by
WanWizard
March 2012
permalink
Using HMVC with the theme class?
You don't need to load the module first for a secondary request. If the request is for a module controller, the request will load the module for you. If you get a 404 on a request, something couldn't be found. You do need to add the …
Comment by
WanWizard
March 2012
permalink
Auth vs Sentry
If that means you need to check your LDAP first, and if that fails check for a local account, then you absolutely need Auth, as that supports multiple (and concurrent) authentication backends, and afaik Sentry doesn't.
Comment by
WanWizard
March 2012
permalink
Changing Page with PHP
Maybe you should spend some time going through the documentation, and perhaps find some example application (like our depot project on github) to see how you should design your controllers. This code screams PHP4 to me... Some tips: - use Input::…
Comment by
WanWizard
March 2012
permalink
Auth vs Sentry
Depends on what you're looking for. Basic authentication works fine with the Auth package. And it can be extended with NinjaAuth to provide Oauth based authentication. Sentry does sort of the same, but Social Auth is a paid add-on. I haven…
Comment by
WanWizard
March 2012
permalink
ORM limiting fields that are returned in a query
At the moment, you can't. The ORM selects all columns by default.
Comment by
WanWizard
March 2012
permalink
Renaming fuel directory gives errors
For the app, only the changes in index.php are relevant. If you have changed those, either you've changed them wrong, or you have a rights issue (the user that runs your webserver can't access files in the new location).
Comment by
WanWizard
March 2012
permalink
Why am i having a hard time configuring the db.php?
There is no need to modify the base config, it is merged with the environment config when used. So it should not contain any database, username or password, only some default values. Your development config looks ok, but as you haven't given a…
Comment by
WanWizard
March 2012
permalink
LDAP authentication
Don't know if such an example exists. But it's not that difficult: - create a file called app/classes/auth/login/ldapauth.php (or some other name) - create the class in it: class Auth_Login_LdapAuth extends \Auth_Login_Driver - copy th…
Comment by
WanWizard
March 2012
permalink
DB problem
You've got your namespaces wrong. You model class lives in the namespace "Model", the DB class in the global namespace. So either use a "use \DB" in your model, or use "\DB" to access the DB class...
Comment by
WanWizard
March 2012
permalink
LDAP authentication
You can copy the Simpleauth class to something else, configure your class as the auth driver, and have it deal with the LDAP interface. Just make sure that your class contains at least all methods defined as abstract in the login driver.
Comment by
WanWizard
March 2012
permalink
Codeigniter appt o FuelPHP?
Is there a time-frame for 2.0? No, not yet.
Comment by
WanWizard
March 2012
permalink
Renaming fuel directory gives errors
If you change the default locations, all you need to do is the change the defines in your public/index.php (APPPATH, PKGPATH and COREPATH). If you use oil, you have to do the same there, and if you use phpunit testing, you also need to change core/…
Comment by
WanWizard
March 2012
permalink
upload eror
Ok, So PHP already reports error 1 on the upload. After processing, this is the result of the Upload class: array 'name' => string 'Revue de presse_2011-12-12.PDF' (length=30) 'type' => string '' (l…
Comment by
WanWizard
March 2012
permalink
upload eror
no, not $file. I wrote $_FILES. I want to know what PHP thinks is uploaded. And with that dump I can "fake" your upload here and test the Upload class.
Comment by
WanWizard
March 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,377
Last Active
8:08AM
Roles
Administrator