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
Translating Model_Crud Model labels
I usually use the _init() static method, to add the labels at runtime, as you can't use function calls on property definitions.
Comment by
WanWizard
September 2012
permalink
Desicions about fuelphph versions for new project ?
Fuel does support the cascading filesystem, that's basically what I described. You can put your controllers 10 levels deep if you want. All I said is that you can mix and match with namespace and classname, so you can create a more logical str…
Comment by
WanWizard
August 2012
permalink
(Yet Another) Oil on Windows problem
PHP tells you there is no file called 'oil' in the current directory. Or it is there but you don't have the rights to open it (less likely in a W7 environment unless you have taken your security very serious). Are you sure you'r…
Comment by
WanWizard
September 2012
permalink
Display HTML Code
By default Fuel will escape all variables going to a view. This is done by the View class, no matter what template solution you use. And it is done before the variables are passed on to the template engine. The the properties approach is identical …
Comment by
WanWizard
September 2012
permalink
Desicions about fuelphph versions for new project ?
Modules are self-contained application components, they can't have modules themselfs. But you can create an entire folder structure in the classes/controller folder, and give controllers sub-namespaces. So a controller in modules/admin/classes…
Comment by
WanWizard
August 2012
permalink
Database Sessions setup and configuration question
If you specify a database name in your session config, it will open a separate connection to that database. If you leave it at 'null', it will look for the session table in the current database. In this case you have configured a separate…
Comment by
WanWizard
September 2012
permalink
Multilanguage Support !
Isn't this just a simple where() clause on the join? And since all data is coming out of the database dynamically, what exactly does this propel function do? I would create a base model for all models that need i18n, add a static method that a…
Comment by
WanWizard
October 2011
permalink
Database Sessions setup and configuration question
Looks ok. Do you have a configured database entry in your config//db.php called 'fuel_test'?
Comment by
WanWizard
September 2012
permalink
Desicions about fuelphph versions for new project ?
If they are that integrated that they share models, I don't really see it as two applications, but more a frontend and backend of a single application. If you want to split them towards the user using two hostnames, have them point to the same…
Comment by
WanWizard
August 2012
permalink
Desicions about fuelphph versions for new project ?
1. No, there will not be any structural change in 1.x. 2. FuelPHP supports PSR packages since v1.1, so you can do that now. 3. Nothing is being dropped, they are being deprecated. Probably as of 2.0 we will suggest alternatives for new projects. …
Comment by
WanWizard
August 2012
permalink
Helper classes
Both packages and modules must be loaded, otherwise their namespace isn't registered. This will cause the autoload of the class to fail when you try it use it.
Comment by
WanWizard
August 2012
permalink
ORM queries
No. The ORM is not a query builder, it's an ORM. You would use DB::select() or DB::query() to run custom queries. You might have to use DB::expr() in some places to deal with potential quoting issues in the calculation piece.
Comment by
WanWizard
August 2012
permalink
Helper classes
All classes go somewhere in app/classes (or in a module. or a package). Where depends on personal preference. Some just put them in app/classes, so you can access them directly. Some use a folder, like app/classes/helper, and a namespace "Hel…
Comment by
WanWizard
August 2012
permalink
Upload File Script
If you don't get an exception, I guess the fileinfo extension is present. It is by default in 5.3+, but on Windows you need to install the .dll manually. Did you follow the documenation: - run process() - check for errors - if no errors run…
Comment by
WanWizard
August 2012
permalink
Lithium Framework
It's the main reason 2.0 is setup like that. Run the Fuel kernel, plug in any Composer package you want. The current core functionality (like session, cache, etc) are going to be separate Composer packages too. Want to use a different session …
Comment by
WanWizard
August 2012
permalink
Lithium Framework
It's the main reason 2.0 is setup like that. Run the Fuel kernel, plug in any Composer package you want. The current core functionality (like session, cache, etc) are going to be separate Composer packages too. Want to use a different session …
Comment by
WanWizard
August 2012
permalink
Implementing has_access method
I've forked it to http://github.com/fuel-packages/DbAcl, and gave you access to the repo so you can keep it up to date yourself.
Comment by
WanWizard
August 2012
permalink
Lithium Framework
You mean 2.0? To play with, yes absolutely. To use for major applications, probably not. Unless you find third party libaries for the bits that are still missing (which is most of the supporting core classes, as we focused on getting the kernel rea…
Comment by
WanWizard
August 2012
permalink
invited_by_user_id accessible
I'm a bit clueless with what you mean by this. From what I understand, you have a users table, which contains users that can be attendees of an event, and can be invited to an event by another user. And I assume a user can be an attentee at mu…
Comment by
WanWizard
August 2012
permalink
invited_by_user_id accessible
This should be a many-to-many relation, as a user can invite multiple people, and someone can be invited by more then one user. It is no problem defining multiple relations between two models. Many-to-many relations are documented here: http://docs…
Comment by
WanWizard
August 2012
permalink
session garbage collection
As always, the answer is "it depends". The file storage driver does have a garbage collection routine. The gc_probability value (0-100) defines the percentage of chance it will kick in after a session write. So the higher the number, the …
Comment by
WanWizard
August 2012
permalink
session garbage collection
FuelPHP has drivers for several session storage backends. It doesn't use PHP's native session storage. Both the file and the DB drivers have a garbage collection routine, triggered by the config value gc_probability. The cookie driver doe…
Comment by
WanWizard
August 2012
permalink
Implementing has_access method
Classes in a package are classes, just like any other. They are in a namespace, and they can extend other classes. So it's not a problem that one package extends another. The only complication you might run into is that Auth's namespace i…
Comment by
WanWizard
August 2012
permalink
new oil command : oil g admin
It generates an admin panel (based on bootstrap), and a set of crud screens for the table specified. Scaffolding does something similar, but then for frontend (user-facing) controllers. Just install FuelPHP in a test environment, run it, and see wh…
Comment by
WanWizard
August 2012
permalink
Accessing internal REST API via Request::forge
I've just checked the 1.3/develop codebase, and that uses the passed method correctly, so you might want to switch to that (or wait a few days, 1.3 is scheduled for release in a week or two).
Comment by
WanWizard
August 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,374
Last Active
5:26PM
Roles
Administrator