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
Session not on every page? Keeps logging me out?
No, GMT = Greenwich Mean Time, which unless you're in the UK is the wrong timezone for you. UTC is equal to GMT, unless daylight savings is in effect, in which case it's GMT+1. It should be the same as defined on your server, which should…
Comment by
WanWizard
November 2012
permalink
Fulltext search with ORM methods?
I have never tried it, but you can probably code up the where clause using DB::expr(), in which case it will work both with DB and ORM.
Comment by
WanWizard
November 2012
permalink
Session not on every page? Keeps logging me out?
Absolutely. As documented and mentioned in the release notes, you HAVE to set the correct timezone in the config. And it MUST match the timezone of your service. If your server is on America/New York, and you tell Fuel it's in UTC, GMT time ca…
Comment by
WanWizard
November 2012
permalink
Get query results from table which listed multiple *primary* relations between another table
First, an ORM is not a query builder. If you want to run queries, just use DB::select. Saves you from creating models, and the overhead of the ORM. Second, you need to understand how an ORM works. An ORM provides an object oriented approach to data…
Comment by
WanWizard
November 2012
permalink
How to save JSON?
Executing Ajax calls using JQuery is a bit out of scope for me, perhaps someone else can help you further.
Comment by
WanWizard
November 2012
permalink
Upgrading to Fuelphp 1.4
In 1.2, the Package class did a fallback to PKGPATH, hardcoded, when you hadn't defined the correct path. This has been removed, so you have to configure it now.
Comment by
WanWizard
November 2012
permalink
A little bit about the registration (help)
Possible, we've been moving away from Pagodabox at the moment. There's isn't really anything to access at the moment, so I don't think that is an issue.
Comment by
WanWizard
November 2012
permalink
A little bit about the registration (help)
To process uploaded files you can use the Upload class. The documentation has an example on how to do that. To create thumbnails you can use the Image class. http://fuelphp.com/docs/classes/image.html#/method_load has an example of how to get the…
Comment by
WanWizard
November 2012
permalink
A little bit about the registration (help)
The depot code doesn't support uploading profile photo's, you'll have to work that out yourself. And I don't understand what you mean by "creation of the version"...
Comment by
WanWizard
November 2012
permalink
Uri::string() / uri_filter
$_SERVER['REQUEST_URI'] ? Or actually Input::server('request_uri')...
Comment by
WanWizard
November 2012
permalink
A little bit about the registration (help)
You could have a look at http://github.com/fuel/depot, it has login, user registration and profile controllers.
Comment by
WanWizard
November 2012
permalink
About code generation of administration
All generated admin controllers use the same generic base controller. So after the first generation it exists, hence the warning when you try to generate a second one. By default, it will not overwrite it, as you may have made modifications to it. …
Comment by
WanWizard
November 2012
permalink
Separate Core and App folders
No, the webserver's PHP component needs to be able to read the files. That is not related to FuelPHP, that's how PHP works.
Comment by
WanWizard
November 2012
permalink
Separate Core and App folders
It is not a problem to split core and app, I do it on every server. I have a central location, outside docroots, that contains different versions: ./fuelphp/1.3/core ./fuelphp/1.3/packages ./fuelphp/1.4/core ./fuelphp/1.4/packages and so on. For …
Comment by
WanWizard
November 2012
permalink
Newbie Question Ubuntu 12.04
Must be a tutorial written for an earlier version of FuelPHP. Always pay attention to the version, as things may change over time. In this case, for v1.4 we have decided to move all config defaults into the core. If will save us from providing defa…
Comment by
WanWizard
November 2012
permalink
Separate Core and App folders
Depends on what you mean by 'example1.com'. Can you be more specific to what you want to achieve?
Comment by
WanWizard
November 2012
permalink
Fatal error: Exception thrown without a stack frame in Unknown on line 0
This is a very tricky to find issue. Most common cause for it is a fatal error or an exception in an object __destruct() method (the framework itself doesn't use those), or in a shutdown handler, or an exception in the exception handler. Erro…
Comment by
WanWizard
November 2012
permalink
Validation unique field in create and edit
It depends on how you have implemented the validation rule. To be able to access the other posted and validated value, you need access to the validation object. If you have validation rules in the model or in a separate class, you can fetch the val…
Comment by
WanWizard
November 2012
permalink
Template system in 1.4
Nothing has changed to views since 1.0. Views go in the app/views folder, not in the app/classes/view folder. And it's been like this since day 1. What is the exact issue you have?
Comment by
WanWizard
November 2012
permalink
How to save JSON?
Create a REST method, either in a separate controller using Controller_Rest, or in your existing controller by switching to Controller_Hybrid. Create a method called 'post_yourname' (instead of 'action_yourname'), do the usual s…
Comment by
WanWizard
November 2012
permalink
Fuel\Core\ThemeException [ Error ]: Theme "test" could not be found.
What have you defined for the active and fallback theme? If one of them is 'default', it must exist too, the theme class uses both.
Comment by
WanWizard
November 2012
permalink
How to save JSON?
What do you mean by "to a controller"? Javascript is client-side, Controllers are server-side. You want your page to do an AJAX call and post some JSON data?
Comment by
WanWizard
November 2012
permalink
Orm model properties are all strings?
FuelPHP has over 100 contributors at the moment, so I'd say that's a yes. ;-) Keep an eye on the coding standards, code that doesn't follow it will be rejected. And if you're not sure a feature will be accepted, create a feature…
Comment by
WanWizard
November 2012
permalink
Orm model properties are all strings?
I don't think that is implemented in Oil.
Comment by
WanWizard
November 2012
permalink
Orm model properties are all strings?
By default they are all strings because the database driver returns them all as strings. You can define a 'data_type' on each property, and configure the Typing observer to enforce the defined type. Check the Orm docs, observers, include…
Comment by
WanWizard
November 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,396
Last Active
1:51PM
Roles
Administrator