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
8243
Activity
Many to Many on same table?
ORM doesn't really care what the underlying tables are. And it generates queries with aliases, so I don't think having a table multiple times in a query is a problem. But you'll know when you try it, setting up the relation only tak…
Comment by
WanWizard
March 2015
permalink
How to use smarty plugins
My Smarty is very rusty, but afaik you don't call functions that way, you use {fuel_version}, see http://www.smarty.net/docs/en/plugins.functions.tpl
Comment by
WanWizard
March 2015
permalink
Many to Many on same table?
I can't think of one.
Comment by
WanWizard
March 2015
permalink
Create Blog with Admin
Afaik you've only got Phil's tutorials on Nettuts. They are dated, and probably not 100% correct anymore, but they still should give you some pointers.
Comment by
WanWizard
March 2015
permalink
Any Tutorials on using HMVC to build an app?
As I wrote earlier, HMVC in CodeIgniter is not HMVC, it's wiredesign's poor mans way to create modularity in CI. If you want modules with specific functionality you can isolate and re-use, you can just do that in Fuel without anything spe…
Comment by
WanWizard
March 2015
permalink
Any Tutorials on using HMVC to build an app?
I think the question should be: what do you want to achieve? What do you want functionally? Or are you going to implement something for the sake of it?
Comment by
WanWizard
March 2015
permalink
auth without database
You need to write your own driver, all included drivers are database backed.
Comment by
WanWizard
March 2015
permalink
Fuel based CURL client redirects template if response != 200
If the request fails it throws a RequestStatusException, so you need to encapsulate the execute() call in a try/catch block (there are other exceptions possible too).
Comment by
WanWizard
March 2015
permalink
Hosting? How is Hostgator for FuelPHP?
Cool. Congratulations! And quickly done!
Comment by
WanWizard
March 2015
permalink
Hosting? How is Hostgator for FuelPHP?
That's probably because HMVC in CodeIgniter is "a module". For which in Fuel you don't have to do anything, just create it, it will route and integrate automatically. An HMVC call is a request like an HTTP request, but then exe…
Comment by
WanWizard
March 2015
permalink
Hosting? How is Hostgator for FuelPHP?
All linux installations have it installed by default, if you use PHP on Windows (for example through WAMP) you need to manually add the dll to the config.
Comment by
WanWizard
March 2015
permalink
Hosting? How is Hostgator for FuelPHP?
I run my own servers, so I can't comment. I've heard negative comments about GoDaddy. In general, web hosting that doesn't give you a commandline means you loose functionality, no oil and no migrations for example. There are also ho…
Comment by
WanWizard
March 2015
permalink
How do I use Asset::img in a different directory?
That depends on your config. By default asset has a root path, and inside that path an 'img' folder in which you put your images. If you have images elsewhere, you can add an additional path using the add_path() method.
Comment by
WanWizard
March 2015
permalink
Help with passing variables using template
Correct. Fuel's security model is "encode on output", unlike most other frameworks (like CI), which do "strip on input". We don't like that, as that means you may loose data before you have a chance to get hold of it. …
Comment by
WanWizard
March 2015
permalink
FuelPHP HMVC?
Should be easy enough. If you need help, just shout, or pop into IRC. A lot of Fuel dev's came from CodeIgniter (including myself).
Comment by
WanWizard
March 2015
permalink
FuelPHP HMVC?
First you have to make clear what you mean by HMVC, and/or what you think HMVC is. With regards to Fuel, HMVC is a hierarchical Controller structure, where controller actions call other controller actions. You use this to avoid code repetition, dec…
Comment by
WanWizard
March 2015
permalink
Question about REST controller
There is no parent router() method, the base controller doesn't have one. It would only introduce overhead if it did, since it requires a call_user_func_array() call to continue with an anction. The REST base controller does, since it does the…
Comment by
WanWizard
February 2015
permalink
Question about REST controller
No, this is available in every controller type. But it is optional in all cases.
Comment by
WanWizard
February 2015
permalink
Question about REST controller
Because your request didn't specify you wanted json returned. The best way to do that is to add "application/json" to the http accept-header. In general, you don't want the code to force a format, you want the client to specify…
Comment by
WanWizard
February 2015
permalink
Question about REST controller
A before() method is a prepping method, it does not return return values (as is obvious by your parent call that doesn't return a result either). If you need to break out of the request flow, you need to use the router() method.
Comment by
WanWizard
February 2015
permalink
Question about event and lang class
It doesn't really matter where you do it, I usually do it in the before method of the base controller. It was clear that you can pass an array of languages to both language and fallback_language if you want a lets call it a "user defined …
Comment by
WanWizard
February 2015
permalink
Question about event and lang class
See https://github.com/fuel/core/issues/1839 I assume this is your reason for asking here.
Comment by
WanWizard
February 2015
permalink
Basic Question about Controller_Template
That is because the after() method of the controller does if ($response === null) ... to check if anything was returned. If so it will use that instead of the template, it allows you to return for example a View object and override the template …
Comment by
WanWizard
February 2015
permalink
Basic Question about Controller_Template
The Controller_Template doesn't use, nor expects, return values. So simply use "return;" (or if you insist on returning a value, "return null;".
Comment by
WanWizard
February 2015
permalink
Configuring the auth rest controller
You'll have to make one from scratch, I have never come across a system (in PHP) this detailed. I think a lot of people steer clear if this, since it is disastrous for performance (PHP is an interpreted language, filtering all data on a per-f…
Comment by
WanWizard
February 2015
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,382
Last Active
8:01AM
Roles
Administrator