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
Event class example
At the comment the core doesn't contain any event calls that you could use as a 'hook'. It is somethere we're considering for 2.0, but a lot of hook calls in the core will slow the core down, while not a lot of people will have …
Comment by
WanWizard
June 2012
permalink
instantiating a Model's class from tasks
First, paths and filenames should be lower class, so /app/classes/model/google/adwords/myclass.php. And second, FuelPHP's classes are namespaced. If you load something from another namespace, you will have to tell the autoloader that. In this …
Comment by
WanWizard
June 2012
permalink
Help: trying to use auto_encode method to temporary disable automatic output encoding
Which version of FuelPHP? In v1.2, there is no auto_encode() anymore, it's called auto_filter.
Comment by
WanWizard
June 2012
permalink
Splitting an ORM form into sections
Yeah. It's a bit of a mess at the moment, the threesome of Validation, Fieldset and Form. It will be completely rewritten for 2.0 to get rid of this complexity.
Comment by
WanWizard
May 2012
permalink
APC caching
APC caching has nothing to do with the PHP code, it's a data cache. My assumption is that you've just installed APC, and these errors are related to the installation. It seems to be a common error with APC...
Comment by
WanWizard
June 2012
permalink
Splitting an ORM form into sections
You can pass the fieldset form to the view, and do this: echo ' Bedrijfsgegevens (optioneel) '. $form->field('company_name')->build(). $form->field('company_contact')->build(). $form->field(…
Comment by
WanWizard
May 2012
permalink
Setting Up Fuel to work in a MultiSite/Virtual Subdirectory Environment
Upgrade your PHP version. FuelPHP requires PHP 5.3+.
Comment by
WanWizard
October 2011
permalink
Groups and roles
Depot doesn't change anything to the way auth works. I only altered the definition of the roles (or in this case I added a generic role, as the others haven't been added yet). So where you normally would define "location.accesstype&q…
Comment by
WanWizard
June 2012
permalink
Setting Up Fuel to work in a MultiSite/Virtual Subdirectory Environment
You shouldn't modify DOCROOT. It points to where the index.php file is, which is per definition the current directory (as you're in the index.php). APPPATH should point to your app folder. By default, that's one folder up from where …
Comment by
WanWizard
October 2011
permalink
Overwrite post value after form sending but before validation
The Input class only retrieves input parameters (either $_POST, $_GET or php://input) once, processes them, and then stores them into a class property. Every time you call Input::post(), param(), or one of the other methods, this property is used, …
Comment by
WanWizard
June 2012
permalink
oil generate: setting table columns default / null value?
No, there aren't. The commandline would become way too complex if there were. Oil generates the basic structure, you will have to modify the generated files manually if they need tweaking and you can't solve that by modifying the template…
Comment by
WanWizard
June 2012
permalink
how to set url root not public?
Please define "not work fine". What happens? What platform do you use? Which webserver, PHP using a module or in CGI mode?
Comment by
WanWizard
May 2012
permalink
Groups and roles
The Auth library in itself doesn't do any redirects, so the obvious place to look is in your application. You could have a look at the code in your Depot project on github, which uses Auth for authentication and authorisation. This might give …
Comment by
WanWizard
June 2012
permalink
Performing AJAX
What happens in the controller is transparent for your frontend, so whether you return static data or do a lot of processing isn't really relevant for your ajax call. From the application point of view I tend to create them entirely from modul…
Comment by
WanWizard
May 2012
permalink
Validation error output encoding, Session::set_flash()
By default the validation template encapsulates the errors in HTML, which as you have noticed will be encoded when send to the view. There are a couple of ways to deal with this: - use Session::get_flash() in your view. Not a very clean solution, …
Comment by
WanWizard
May 2012
permalink
Performing AJAX
If your plan is to "GET" HTML, you are not really required to use Controller_Rest, as the normal or template controllers already return HTML. If you want other formats, like json, Controller_Rest is the easiest. If you want you use Contro…
Comment by
WanWizard
May 2012
permalink
Accessing the id field using simpleauth
You get that error if you have multiple instances active, in which case the static interface doesn't know which instance to use. I am using "$user = \Auth::get_user_id();" in Depot, and it works fine.
Comment by
WanWizard
February 2012
permalink
FuelPHP even more faster?
FuelPHP is a framework written in PHP. PhalconPHP is a framework written in C++. You can not compare the two.
Comment by
WanWizard
May 2012
permalink
how to set url root not public?
If you have installed the FuelPHP directory structure inside your document root, see http://docs.fuelphp.com/installation/instructions.html#/install_inside_root. If you have installed it differently, explain exactly how, because now we have to gues…
Comment by
WanWizard
May 2012
permalink
URGENT HELP: I get this error when I deployed on a production server
That's most likely a PHP error, which is not displayed in production mode for security reasons. Check your application log file, it will list the error and it's location. If not, enable logging (at at least ERROR level) in your app config…
Comment by
WanWizard
May 2012
permalink
child pid 1789 exit signal Bus error (10)
I've added this to the troubleshooting section of the docs.
Comment by
WanWizard
January 2012
permalink
how to set url root not public?
Not to be offensive YIIPHP, but you're asking a lot of questions here about stuff that is actually documented or asked before. Did you read the documentation, and searched this forum? In case of htaccess, the FuelPHP installation contains a wo…
Comment by
WanWizard
May 2012
permalink
URGENT HELP: I get this error when I deployed on a production server
Without checking all the other things, if __DIR__ does not exist, you're not running PHP 5.3+. So upgrade the production server (or find a hoster that runs a more recent version of PHP). As to the date message "use the date.timezone setti…
Comment by
WanWizard
May 2012
permalink
Unit testing app not inside fuel folder
For unit tests to run in a modified environment you have to modify the paths in different places: - oil - core\bootstrap_phpunit.php - core\phpunit.xml I'm not sure you can override both core files with a corresponding version in app, you…
Comment by
WanWizard
May 2012
permalink
Can we extend module Controller with other Module controller?
Yes, no problem. namespace Mymodule; class Thiscontroller extends Thatcontroller { } If they are not in the same module, you have to use the full namespace, and you have to make sure the module the parent controller is in, is loaded. namesp…
Comment by
WanWizard
May 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,373
Last Active
6:41PM
Roles
Administrator