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
How can I use DB::select() result as object in my views?
If you'd said that in your original post ( instead of "this gives an error" ), I would have been able to give you that answer directly. FuelPHP encodes on output, which means every piece of data you pass on the the view must be mutab…
Comment by
WanWizard
December 2011
permalink
ORM, Forms, Validation and DRY. Am I trying too hard?
Moved to the ORM forum, as this is mainly an ORM model related question.
Comment by
WanWizard
December 2011
permalink
How can I use DB::select() result as object in my views?
execute() returns a Database_Result object. You can access it as an array, and iterate over it. See it as a collection of rows. When you do, and you have used as_object(), it will return a row as an instance of stdClass. If you have used as_object(…
Comment by
WanWizard
December 2011
permalink
Sentry - Authentication Package
For most issues there are pull requests waiting. Be patient, Cartalyst is closed over the holiday's, dpetrie mentioned that on IRC...
Comment by
WanWizard
December 2011
permalink
How to use ORM with a lot of field in table ?
No matter what you use, loading 40k records with 80 fields into memory is always a bad idea. It should cause something to hang though, you should either run out of memory (if you haven't allocated enough) or out of time (if you have a slow sys…
Comment by
WanWizard
December 2011
permalink
Sentry - Authentication Package
I do too, I have very complicated role structures. But from a level point of view, they are all users. I only need the admin flag to bypass role checking, any logged in user with admin = 1 has access to everything. The problem with levels is that y…
Comment by
WanWizard
December 2011
permalink
Sentry - Authentication Package
I don't really like using levels, too many nasty experiences with it when your authorisation gets more complex. I now tend to use it as a boolean: 0 = user, 1 = administrator. As for roles, a role is just a name, so you could use groups for i…
Comment by
WanWizard
December 2011
permalink
question about pagination
Enable the profiler (globally in app/config.php and on your db connection), and compare the SQL generated by this statement with the SQL you would write yourself. Chances are that for simple queries like this, you couldn't come up with a bette…
Comment by
WanWizard
October 2011
permalink
Response headers
As I added to the documentation yesterday; A controller action should return it's result. The result can be a string, or anything that can be cast to string, like for example a View object. Alternatively you can return a Response object. Y…
Comment by
WanWizard
December 2011
permalink
Response headers
Up until 1.1, you should have used $this->response. Return values were ignored. As of 1.1, you should use a return value (anything that can be cast as string), and $this->response is deprecated. This means you can still use $this->response…
Comment by
WanWizard
December 2011
permalink
Response headers
The deprecated code is still there, because of FuelPHP design rules. We never remove code from one version to the next, we deprecate first. For the next version, this will probably be removed, since $this->response is no longer used, it has beco…
Comment by
WanWizard
December 2011
permalink
ninjauth setup
This is something Phil has to look at. I haven't used it, so I can't comment on it's internal workings...
Comment by
WanWizard
November 2011
permalink
including sub-views while keeping all assigned (local) vars
There is a hack possible. in your main template, use echo \View::forge('menu')->set($__data, null, false); This will pass all variables assigned to the main template on the the menu template. Note that this is undocumented and uns…
Comment by
WanWizard
December 2011
permalink
ninjauth setup
That has nothing to do with Ninjauth. You are using a database driver that doesn't support the list_columns() method. In that case, the ORM requires you do define the table properties in the model manually. See the documentation.
Comment by
WanWizard
November 2011
permalink
Documentation about Auth and SimpleAuth
Probably. All that's needed is someone to write it...
Comment by
WanWizard
December 2011
permalink
Oil create doesn't work?
Nope. He wrote "Downloaded FuelPHP", "then ran the installer". That doesn't work, that would run 'oil' the CLI, not 'oil' the installer, which explains the help page, as the CLI version doesn't know…
Comment by
WanWizard
July 2011
permalink
Oil create doesn't work?
It also doesn't work if you do the first AND the second bit, i.e. download and install manually, and then try to run 'oil create'...
Comment by
WanWizard
July 2011
permalink
New to fuel
This site runs PyroCMS, and the missing breadcrumbs is a bug in the new release.
Comment by
WanWizard
December 2011
permalink
Scaffold an existing table
This is currently not supported. If you want this feature, please add a feature request at http://github.com/fuel/oil/issues.
Comment by
WanWizard
December 2011
permalink
mail sending time out
The different parts that make up FuelPHP have their own repository, each with their own issue tracker. The main github page ( https://github.com/fuel ) shows all repositories: docs, core, oil, orm, etc. See also http://fuelphp.com/contribute/issue-…
Comment by
WanWizard
December 2011
permalink
Singular or plural controller names?
There is no convention. I tend to use plural for controllers that clearly deal with multiple items ( for example "users" ), and singular for controllers that don't ( for example "page" ).
Comment by
WanWizard
December 2011
permalink
Syntax error on class console.php
A static class call requires two colon's: Auth::create_user().
Comment by
WanWizard
December 2011
permalink
mail sending time out
I noticed you've created an issue for the fuel/docs repo. This is an issue for the email package, so I suggest you create it there if you want someone to have a look...
Comment by
WanWizard
December 2011
permalink
User modules
The short answer is No. The kind of plugins you refer to are application extensions that slot into an application (Wordpress in your example) using a predefined API. FuelPHP is not an application, it is a development framework. FuelPHP has mechanis…
Comment by
WanWizard
December 2011
permalink
mail sending time out
So the issue is that the configured timeout is not respected everywhere? Please update the issue, so @FrenkyNet can have a look at it.
Comment by
WanWizard
December 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,390
Last Active
7:35AM
Roles
Administrator