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
Issues with built in Unit Tests and Base URL
Don't know exactly what you modified, and where (I hope not in core code), but the end result is that base URL's are forcibly inserted, which obviously changes the workings of some methods, and therefore the tests fail.
Comment by
WanWizard
August 2012
permalink
Base installation image files coding
The only reason is that the welcome page is an example to get some output from a newly installed repo. Most people remove the welcome controller and view, we didn't want additional files we could avoid. It has nothing to do with obfuscation or…
Comment by
WanWizard
August 2012
permalink
Use Uri::segment() in 404 ?
404 processing in FuelPHP is done by a new Request as result of the not found exception. So you don't have access to the original request anymore. If you want to have all sorts of logic in your 404 controller it's better to use a 'la…
Comment by
WanWizard
August 2012
permalink
NinjAuth in FuelPHP 1.2.1
Looks like the adapter name isn't set for some reason. I don't use Sentry, so I wouldn't know, it works fine with Fuel's Auth.
Comment by
WanWizard
August 2012
permalink
Session data getting lost, maybe module/package issue?
Crypt config should be automatic in case your webserver has write access to app/config, or bail out with an exception if not. If you have errors disabled, you whould still see an error message and find a log entry.
Comment by
WanWizard
August 2012
permalink
Generating migration WITHOUT oil
A migration is just a text file with PHP code, so you can create that from anywhere. But I assume you don't mean that. The migration files are generated by \Oil\Generate_Migration_Actions, you should be able to call the methods in it from a co…
Comment by
WanWizard
August 2012
permalink
DB as_object()
The DBAL implemented by the DB classes is just a query builder. It runs queries and returns results, either as arrays or as standard objects. You can use it to populate ORM model objects though, see http://docs.fuelphp.com/classes/database/usage.ht…
Comment by
WanWizard
August 2012
permalink
FPDF into FuelPHP
Install my package: https://github.com/WanWizard/fuel-pdf and you're off...
Comment by
WanWizard
August 2012
permalink
Preference Doctrine or Propel?
That is not related to the design pattern being used by the ORM, those are implementation features, ORM's based on both patterns can do that. Read http://msdn.microsoft.com/en-us/magazine/dd569757.aspx to get an idea of the concepts behind bot…
Comment by
WanWizard
August 2012
permalink
DB as_object()
I don't understand what you want. You're using DB calls, which have nothing to do whatsoever with ORM or ORM models...
Comment by
WanWizard
August 2012
permalink
Repopulating forms, not using Fieldset class
Problem with the form-fieldset-validation trio is that it's so very complex that all in's and out's are difficult to document or even explain. Which is why for v2 we're worked very hard to rework it. I'm not sure how you se…
Comment by
WanWizard
July 2012
permalink
Oil migrate or dbdeploy (or other?) for database management
All my apps use migrations, even from before I started with FuelPHP. Calling "oil r migrate" is a standard part of my deployment.
Comment by
WanWizard
August 2012
permalink
Prevent URI::create() from Including index.php File
If you call Uri::create() with no parameters, it will use the current request URI to create the URI. If that contains "index.php", so will the result. If this is the case, you should see the "index.php" in your browser as well, …
Comment by
WanWizard
August 2012
permalink
Repopulating forms, not using Fieldset class
I don't know. Is the message in the HTML? If so, it's a CSS issue. If not, it's a code issue.
Comment by
WanWizard
July 2012
permalink
scafold : Error: Unable to read existing migrations. Do you have an 'open_basedir' defined?
The big question is if this is a bug (in FuelPHP). PHP is blocking you from accessing the migrations folder due to the open_basedir setting, which is the warning you are getting. However, since you have set the open_basedir to '/' (which …
Comment by
WanWizard
August 2012
permalink
scafold : Error: Unable to read existing migrations. Do you have an 'open_basedir' defined?
Can you start the oil console (php oil console) and at the console prompt type var_dump(glob(APPPATH."migrations/*")) what is the response? If false, it could be because of a flaky behaviour of glob() when open_basedir is set. When set, …
Comment by
WanWizard
August 2012
permalink
scafold : Error: Unable to read existing migrations. Do you have an 'open_basedir' defined?
According to the code you get that error when APPPATH."/migrations" can not be read. Does that folder exist?
Comment by
WanWizard
August 2012
permalink
register and login by email and password
If there is no way you can change these column names, your best bet is to overload the simpleauth driver. To do so, copy simpleauth.php from Auth/classes/auth/login to app/classes/auth/login, and add it to your app bootstrap (like the example alrea…
Comment by
WanWizard
August 2012
permalink
scafold : Error: Unable to read existing migrations. Do you have an 'open_basedir' defined?
Messages like that are usually rights related. Does the current logged on user have full access to the app folder (and all files/folders in there)?
Comment by
WanWizard
August 2012
permalink
Tasks question
That is fine, in this setup it's the only app specific folder you have available.
Comment by
WanWizard
August 2012
permalink
Alias'd fieldnames
Not at the moment, no.
Comment by
WanWizard
August 2012
permalink
Error - invalid data source name in COREPATH/classes/database/pdo/connection.php on line 87
On MAMP/WAMP/XAMPP? (or similar)? These packages have a custom php.ini that is used by the webserver, but the commandline version of php is unaware of that, and uses the default one (which is wrong).
Comment by
WanWizard
August 2012
permalink
Is there any book about fuelphp
I don't know if it is thinly spread, is it? I know of one book, but it's in Japanese, so unless you can read that, it's not going to help you.
Comment by
WanWizard
August 2012
permalink
XML errors when adding HTTP headers
You should not use the PHP header() method in FuelPHP. It will output directly and interferes with FuelPHP's view generation system. If you want to add headers to your output, use the set_header() method of the Reponse class to add headers to …
Comment by
WanWizard
August 2012
permalink
Separating logic in models/controllers
Laravel just suggests an implementation of these design patterns. In the end they are all plain classes, so you can do exactly the same in FuelPHP with no effort at all. You can copy all examples from their models and libraries docs page and paste …
Comment by
WanWizard
August 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
5:36PM
Roles
Administrator