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
iam working on pagenation uri_segment
It doesn't work like that. 'uri_segment' is either a number (if you use uri segments) or a string (if you use GET variables). so it should be 'uri_segment' => 'page', the rest should be part of the paginatio…
Comment by
WanWizard
February 2014
permalink
Fatal error: Call to undefined function Fuel\Upload\finfo_open()
Correct. As per the PHP documentation, the fileinfo PECL extension MUST be part of the 5.3+ installation. If this is on your own server, make sure it is. On Windows, you need to enable a DLL (which should be part of the package). However, there…
Comment by
WanWizard
February 2014
permalink
Setup fuelphp on remote server
The previous answer has a typo. All paths should end with a directory separator. So it should be define('APPPATH', '/path/to/your/app/folder/'); both in your ./public/index.php and in your oil file (and possible in the phpunit …
Comment by
WanWizard
February 2014
permalink
REST Controller ignoring $rest_format variable?
We are not going to change that, if only because that would most likely break all RESTful controllers out there. It is clearly defined as a "default value", which means it is only used when all other options to determine the format failed…
Comment by
WanWizard
February 2014
permalink
Best way to create modules
Ahh.... ;-)
Comment by
WanWizard
February 2014
permalink
Best way to create modules
I would say so. Without having tried it myself...
Comment by
WanWizard
February 2014
permalink
Best way to create modules
The problem with submodules in general is that they are fixed links to a specific commit hash in the referred-to repository. Which means that if that repo has new commits, you won't see them until the submodule references in fuel/fuel are updat…
Comment by
WanWizard
February 2014
permalink
adding double quotes to csv
Works fine here, must be at your end somewhere. Just ran this in 1.6: $result = \DB::select()->from('groups')->execute()->as_array(); var_dump($result); $result = \Format::forge()->to_csv($result, ','); var_dump($res…
Comment by
WanWizard
February 2014
permalink
adding double quotes to csv
What is the input array? Any quotes in there? And what is your format config? And which version of Fuel?
Comment by
WanWizard
February 2014
permalink
adding double quotes to csv
What do you mean with "additional quotes"?
Comment by
WanWizard
February 2014
permalink
Features of Fuel
Thanks. I'll remove the other post. 1. Normally you deal with this outside your application, for example by rewriting aaa.example.com to example.com/aaa. You can then use normal routing to deal with the 'aaa' part. 2. The ORM for Fu…
Comment by
WanWizard
February 2014
permalink
Create a sitemap
Not ready made. Run a glob(), construct the classnames from the files found, and use Reflection to get the list of methods?
Comment by
WanWizard
February 2014
permalink
Application Controller with same name as module
Your best bet is probably to extend the Router class, and overload the parse_match() method. If it fails to find a controller, it returns NULL. It might work already if you change it to // this will search in a module if one is detected …
Comment by
WanWizard
February 2014
permalink
how not to save property
Good luck. Any more questions, just shout! ;-)
Comment by
WanWizard
February 2014
permalink
How to Execute Task multiple params using OIL
There is no space between class and method name. This should work fine: oil refine myclass:build_img_by_type module sub 600 100 there is no need to enclose a string in quotes unless it contains spaces.
Comment by
WanWizard
February 2014
permalink
Create a sitemap
Questions are never stupid, answers sometimes are... ;-) Creating a sitemap is very application dependent, so there is no clear cut answer for this, there is not an easy way to generate it, Fuel is so flexible in how you design your application tha…
Comment by
WanWizard
February 2014
permalink
how not to save property
I assume you use a fieldset, and use add_model() to generate the fieldset? If that is so, you can add a method to your model called set_form_fields(). It is called by add_model(), It's prototype is: void public static function set_form_fields…
Comment by
WanWizard
February 2014
permalink
how not to save property
The properties of an ORM model MUST match the columns in the table. You can't leave any out, and you can't invent new ones. So instead of doing something you're not supposed to, and then hack your way around it, start by telling us w…
Comment by
WanWizard
February 2014
permalink
FuelPHP suits me, but...
Most of them seem to have jumped on the Laravel train. Why, I don't know, it's something we notice. Perhaps because it gets lots of press, and Fuel is relatively unknown?
Comment by
WanWizard
February 2014
permalink
Best way to create modules
@MoakDesigns, If you installed as a git repo, you need to update your submodules (in the install root: git submodule update).
Comment by
WanWizard
February 2014
permalink
Email not catching css Asset
Asset doesn't really have CLI (tasks) support until 1.8/develop (i.e. a few days ago).
Comment by
WanWizard
February 2014
permalink
relationship 1-* between 2 tables
Cool. Glad you have it sorted.
Comment by
WanWizard
February 2014
permalink
Spécial character in ajax request
What are you exactly trying to do? Pass a percentage character in the URL?
Comment by
WanWizard
February 2014
permalink
How to use MySQL functions in 'where' section
Upgrade to 1.7.1 (or even 1.8/develop) would be the logical fix for this?
Comment by
WanWizard
February 2014
permalink
Sessions and redirect causing session to lose some values
Weird. Just checked the 1.6 codebase, and the Error class does use logger() with L_ERROR to log both exceptions and PHP errors. Unless the Exception object has it's own handler, but that is not the case here. With L_ALL, every request should …
Comment by
WanWizard
February 2014
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,371
Last Active
May 14
Roles
Administrator