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
Configuration problem 'base_url'
If you're serious about local development, look into setting up virtual hosts for your different projects, instead of dumping all of them in directories of /var/www. It allows you to setup proper hostnames, as localhost is not valid as per RFC…
Comment by
WanWizard
March 2012
permalink
upload eror
and what does $_FILES contain (before calling Upload::process()).
Comment by
WanWizard
March 2012
permalink
Pagination class - nightmare :(
it's one of the reasons the current pagination class is deprecated. HTML should be part of the app, not of a core class. if you check the code in the admin interface of our depot project (https://github.com/fuel/depot) you can see how I solved…
Comment by
WanWizard
March 2012
permalink
upload eror
There is no "error 11". PHP standard errors go from 1 to 8, Upload class errors start at 101. Can you dump $_FILES, Upload::get_files() and Upload::get_errors()?
Comment by
WanWizard
March 2012
permalink
operator OR
There is no operator called 'or', don't know where you got that from. The docs mention 'or_where', maybe you can try that?
Comment by
WanWizard
March 2012
permalink
cannot catch exception when running task with oil
Just made a test task:
Comment by
WanWizard
March 2012
permalink
What's the best way to get a CSV?
Format::forge($data)->to_csv(); should work, providing the array is in the proper format.
Comment by
WanWizard
March 2012
permalink
Cache by environment
Extend the cache class, overload the get method, and do your environment check there? Then it will be transparent for your app code.
Comment by
WanWizard
March 2012
permalink
FuelPHP in a subdir of Sites folder
The quick fix: If public is not your docroot, but the parent folder is, simply move everything from the public folder to the parent, and delete the public folder. If you're going to move this from development to a server that is properly confi…
Comment by
WanWizard
March 2012
permalink
DELETE method in REST controller - How to handle?
How would the Rest controller know that the second URI is an ID and not an action name? If you want that, create a route for it that routes /resources/[ID] to /resources/index/[ID].
Comment by
WanWizard
March 2012
permalink
Caching troubles with using
In case 1, a reload should read and use the cache file, not run the query again, and not create a second cache file. Is that what you say happens? Which version of FuelPHP are you using? In case 2, see the example in the docs. get() with throw an e…
Comment by
WanWizard
March 2012
permalink
DELETE method in REST controller - How to handle?
Controller_Rest, router() method, line #107. $controller_method = strtolower(\Input::method()) . '_' . $resource; where $resource is a parameter passed to the router method which contains the first URI segment (unless you have routin…
Comment by
WanWizard
March 2012
permalink
DELETE method in REST controller - How to handle?
According to the code of the Rest controller, it calls 'delete_resources'.
Comment by
WanWizard
March 2012
permalink
Is it possible to handle "roles" dynamicly from the database?
There are two options: The right way is to write an Auth driver that replaces/extends the current ACL driver, and uses the database instead of the data in the config file. The quick and dirty way is to add some code to the config file that loads th…
Comment by
WanWizard
March 2012
permalink
What's the difference between Controller_Template and plain Controller?
The documentation on docs.fuelphp.com is the official release documentation, which represents the state of the 1.1/master branch. The documentation of the current development branch can be found via the 'dev-docs' link in the header. It i…
Comment by
WanWizard
March 2012
permalink
DB::update escaping special characters.
Same as used by most people, including myself in most of my projects, and in our Depot project. I've never seen this behaviour, and if it was FuelPHP code related, I guess this forum would be flooded with complaints. So I settle for something …
Comment by
WanWizard
March 2012
permalink
DB::update escaping special characters.
Weird. I don't know of any other mechanism that will escape quotes. Which database and database driver are you using?
Comment by
WanWizard
March 2012
permalink
What's the difference between Controller_Template and plain Controller?
Correct. And you don't have to call render() in any case, FuelPHP will do that for you if and when needed. This will provide you basic templating functionality. If you want a step further, look at the Theme class, which adds multiple themes, m…
Comment by
WanWizard
March 2012
permalink
What's the difference between Controller_Template and plain Controller?
The Controller_Template is just a simple base controller. It allows you do define a page template which echo's a variable there where the page content has to go. The action in the controller then only has to set that variable on the template. …
Comment by
WanWizard
March 2012
permalink
DB::update escaping special characters.
Quotes HAVE to be escaped, otherwise you can't get the data into the database. Have you checked the magic quotes setting as Jelmer suggested, as it is the most likely cause?
Comment by
WanWizard
March 2012
permalink
Markdown parser package
Can't comment on that because I don't know what you are doing? Passing a markdown object to a view? Passing the parsed result? If you pass HTML to a view (whether from the Markdown parser or from from elsewhere), you need to disable escap…
Comment by
WanWizard
March 2012
permalink
DB::update escaping special characters.
FuelPHP's DB layer doesn't encode anything, so it must be something in your code. Maybe your filtering and encoding? FuelPHP by default doesn't encode on input, to make sure nothing goes into the database altered, but encodes on outp…
Comment by
WanWizard
March 2012
permalink
Markdown parser package
Check the Markdown class, it does exactly what you want.
Comment by
WanWizard
March 2012
permalink
Maintenance / Downtime
I deal with that in my webserver config, using a rewrite rule. RewriteCond /my/path/to/fuel/public/maintenance.html -f RewriteCond %{REQUEST_URI} !/maintenance.html RewriteRule $ /maintenance.html [R=302,L] So whenever the file "maintaince.…
Comment by
WanWizard
March 2012
permalink
SmartAuth - Another auth library
What does this differ from the current Auth package? If it's database driven roles and groups, it would have been better to implement it as Auth drivers, which would allow users of the Auth package to switch from the config driven system in Si…
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,378
Last Active
6:24AM
Roles
Administrator