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
8245
Activity
Error on create admin posts
Update your FuelPHP installation, this is a bug that has been fixed some time ago.
Comment by
WanWizard
April 2012
permalink
Subdomain to controller
Not within FuelPHP. I suggest you have both hostnames point to the same virtual host, and use a rewrite rule to route the request.
Comment by
WanWizard
April 2012
permalink
Class 'finfo' not found
According to the PHP documentation, Fileinfo is something that HAS to be included in the PHP distribution. So your hosting company is probably using a custom build script to compile PHP for their servers, most likely one for earlier PHP versions (w…
Comment by
WanWizard
April 2012
permalink
Html entities view problem and UTF8?
Thinking about it, I think the issue here is double encoding. FuelPHP by runs Security::htmlentities() by default on all data send to a view, unless you disable that. This is a security measure. But Form::Input() calls prep_value(), which also call…
Comment by
WanWizard
April 2012
permalink
Html entities view problem and UTF8?
Can you post the code on [url=http://scrp.at,]http://scrp.at,[/url] the forum messes with the encoding as well...
Comment by
WanWizard
April 2012
permalink
Can't make first migration
The current PDO driver is very generic, and most of the DB support methods favour MySQL syntax. I've understood that there are more inconsistencies when it comes to PostgreSQL. You might want to check this topic: http://fuelphp.com/forums/topi…
Comment by
WanWizard
April 2012
permalink
when 2.0 come? and now we use 1.1 or waiting 2.0?
2.0 is quite some time off. We're aiming for a first beta sometime this summer. You can just use 1.1 (there's a 1.2 on the way based on the current 1.1/develop, so I suggest you start with that, and not with the 1.1 release version). For …
Comment by
WanWizard
April 2012
permalink
How To Route URI Which Contains Hyphens / Dash
Afaik this isn't possible. The router will not modify the URI segments. You have to do the translation manually using a route.
Comment by
WanWizard
April 2012
permalink
Models with multiple names
You can not use an underscore in a FuelPHP class filename. The autoloader will not be able to load the class if you do, so why should oil support that?
Comment by
WanWizard
April 2012
permalink
NinjAuth - Error if user hits Cancel at Facebook/Google auth page
Maybe report this issue here: https://github.com/happyninjas/fuel-ninjauth/issues so the author can have a look at it...
Comment by
WanWizard
April 2012
permalink
ORM or CRUD?
PSR-0 is something the PHP community is adopting as a standard (including PHP themselfs), and although I hate the CamelCase names, it's something we have to live with. I personally don't see why you wouldn't use third party solutions…
Comment by
WanWizard
April 2012
permalink
Folder structure
No, ideally you should not have any code inside the DOCROOT, so I suggest you move the application as well. Perhaps to something like: / /fuel /core /packages /app /AppName1 /AppName2 /public_html …
Comment by
WanWizard
April 2012
permalink
Autoloader and classes with prefix name
No, there isn't. The FuelPHP understands our own mechanism, and the PSR-0 standard. This project isn't complaint with either of them. Probably the best thing to do is follow the authors instructions, and setup a specific autoloader for th…
Comment by
WanWizard
April 2012
permalink
Model Namespace Question
There is no such thing as a "Model" or "Models" namespace, unless you have created one. The FuelPHP autoloader is quite intelligent where it comes to mapping classes to files in the filesystem. It will combine the namespace and …
Comment by
WanWizard
April 2012
permalink
How To Print Image File
If you want to return the image, set $this->response->body to the result of file_get_contents. Note that using $this->response is deprecated, your controller action should return a response object instead if you want to make your code futu…
Comment by
WanWizard
April 2012
permalink
xeround connection setup.
The fact that your webserver doesn't send any data is imho not related to a database definition. If anything is wrong there, you should get an error message, and if in development mode, code traces and a code back trace too. You might get this…
Comment by
WanWizard
April 2012
permalink
Posts with comments, comments with comment types
ORM does not allow you to mix primary keys and foreign keys, so this is not a design option.
Comment by
WanWizard
April 2012
permalink
ORM or CRUD?
Slight nuance. ORM will not be dropped, but it will no longer be part of the "core" set of packages. As we are going to move to composer packages for 2.0, it will be quite easy to install any ORM that is PSR-0 compatible and for which a c…
Comment by
WanWizard
April 2012
permalink
Upgrade to bootsrap 2.0
Bootstrap is also used by Oil's admin generation, so if we decide to drop it, we have to look at that too.
Comment by
WanWizard
April 2012
permalink
FuelPHP Routing system.
What exactly are you missing? Using closures as route controllers is supported in FuelPHP for quite some time now, so in that respect what your library does is already possible.
Comment by
WanWizard
April 2012
permalink
Infinite loop when fatal error in views
This can't be worked around. PHP does not allow you to fool with the output buffers in a shutdown callback when compression is enabled. You can disable compression, but that will just print all the notice errors that you now find in your logs.…
Comment by
WanWizard
April 2012
permalink
Routed anchor links
What is wrong with which should do exactly that?
Comment by
WanWizard
April 2012
permalink
Infinite loop when fatal error in views
That code example produces this here (in development mode): Parsing Error! ErrorException [ Parsing Error ]: syntax error, unexpected ')' so I think you have other issues...
Comment by
WanWizard
April 2012
permalink
Advanced twitter/fb like routing ?
There is no "holy grail" when it comes to this kind of issues. In the end, routing is a static one-to-one mapping, and not really suited for dynamic routing decisions. What I usually do is to map 'users/(:any)' to a controller w…
Comment by
WanWizard
April 2012
permalink
FuelPHP and Varnish Cache
You can disable session auto initialisation in the session config file (it is on by default).
Comment by
WanWizard
April 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,410
Last Active
11:46AM
Roles
Administrator