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
Still getting parse error at line 9 after installing PHP 6.0
PHP 6.0 isn't released, it a development version, with a state-unknown. We can not give any support on that environment, only with official PHP releases, 5.3 and up.
Comment by
WanWizard
September 2011
permalink
oil generate controller plurality
I think that was fixed in 1.1/develop.
Comment by
WanWizard
September 2011
permalink
Still getting parse error at line 9 after installing PHP 6.0
PHP 6.0? Where did you get that from? Are you sure you're not using something lower than 5.3? Because the error you get is on the closure, which is not supported in PHP until version 5.3. Fuel needs PHP 5.3+ to run.
Comment by
WanWizard
September 2011
permalink
Extending other controllers
John Rutherford wrote on Thursday 8th of September 2011: Is overlay a standard part of OOP or only the Fuel implementation? This is how class extensions work in PHP. See http://php.net/manual/en/language.oop5.php, in particular the section on &…
Comment by
WanWizard
September 2011
permalink
Fuel dev-docs sync
It is supposed to be automatic, but there's an issue with the post-commit hook, and Dan hasn't been in a position to fix it yet. We are aware of the issue though.
Comment by
WanWizard
September 2011
permalink
Cross-calling (HMVC Style) modules with separate database files...
If you use "execute()" without parameters, you're telling the query builder to use the default database instance to execute the query. Which is the one defined in the app/config/db.php as active. You can instruct the query builder to…
Comment by
WanWizard
September 2011
permalink
Input not stripping slashes
Input by default doesn't do anything, it just retrieves what is in $_POST. So check $_POST as well. If that also does contain slashes, it's something form related. If it doesn't, that you have some sort of input filter defined in you…
Comment by
WanWizard
September 2011
permalink
A problem when I use Event class
This is most likely because you echoing data out in your controller methods, instead of returning it. So the response body is empty when passed to your event. So, don't do echo View::forge('myview'); but do $this->response->…
Comment by
WanWizard
September 2011
permalink
ORM - different concept
Our designer is aware of the flaws of this theme, but hasn't had time to fix them...
Comment by
WanWizard
September 2011
permalink
Extending other controllers
You have to see class extensions as overlays. Because you define an action_index method in Controller_Modules, you can no longer see the method by the same name in the parent class, Controller_Base. You can still call it, using parent::action_index…
Comment by
WanWizard
September 2011
permalink
My namespace and classes structure
That is correct. Otherwise the mapping between the namespace and the module isn't known to the autoloader.
Comment by
WanWizard
September 2011
permalink
ORM - different concept
ORM models map directly to database tables, and allows you to access them in an OOP manner. The models you describe are functional abstraction classes, which do follow the idea of M in MVC, but are entirely different from the ORM models. My point w…
Comment by
WanWizard
September 2011
permalink
My namespace and classes structure
Have you configured the modules directory in your app/config/config.php?
Comment by
WanWizard
September 2011
permalink
using parser package
And what is stopping you now?
Comment by
WanWizard
September 2011
permalink
Fuel DbPage package
Hmm... Don't know what happened here. There was a thread where someone asked for solutions like this, and I replied that there are several ways of approaching this issue, and that I use a generic front controller to which all requests go, and …
Comment by
WanWizard
July 2011
permalink
PHP session counter being updated twice but only called once?
Fuel doesn't use PHP sessions, or $_SESSION. Use Fuels Session class instead, it's much more secure. As you your issue, check your webserver and fuel logs. I'm reasonably sure you're missing an image or a favicon or so which is …
Comment by
WanWizard
September 2011
permalink
DB::Update field = field + 1
You might need to use DB:expr( DB::quote_identifier('field') . ' + 1')
Comment by
WanWizard
September 2011
permalink
creating a auth driver
Just look in the driver.php file of login, acl or group, it defines the abstract prototypes of the methods that needs to be present in your custom driver. Other than that, you are free to add any method you need.
Comment by
WanWizard
September 2011
permalink
'vendor' directory?
Or any other third party package you want to integrate into your application. We do something similar for third party packages in the core...
Comment by
WanWizard
September 2011
permalink
mem_usage vs memory_get_usage
The way Fuel does it, is the most reliable, as the peak memory is requested, and it is requested after all processing has been completed. If you retrieve memory usage in your code, it will most likely be lower that what it actually is. memory_get_u…
Comment by
WanWizard
September 2011
permalink
im getting this error ..No uploaded files are selected.
Read the documentation. Upload::save() doesn't return anything, so you can't use it in an if statement. The correct way of using it is documented at the top of the page, under 'Usage Example'.
Comment by
WanWizard
July 2011
permalink
ORM - different concept
The ORM is an object oriented way of accessing your database, which is something completely different to what you are describing. Nobody is stopping you from creating classes based on this design. There is nothing in Fuel that prevents you from doi…
Comment by
WanWizard
September 2011
permalink
mem_usage vs memory_get_usage
memory_get_usage() returns the memory usage at that precise moment. Fuel uses memory_get_peak_usage(), which is the maximum amount of memory used when processing the request, and is more accurate, as this is what could cause an error if you applica…
Comment by
WanWizard
September 2011
permalink
MongoDB status and usage
This is not going to be soon. It's a major change, so probably not before the 2.0 release.
Comment by
WanWizard
September 2011
permalink
Fuel DbPage package
The danger in this is that if your controllers that are mapped to your database routes will become accessable via module/controller/index as well, and that might not be desireable in all cases, you might want to hide the real paths, and only map vi…
Comment by
WanWizard
July 2011
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,368
Last Active
6:03PM
Roles
Administrator