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
SimpleAuth ACL and modules
That's why I wrote that you should not rely on it. And you should not do that either on a controller name. What will happen if you protect or give access to your controller hardcoded, and I do this: class Controller_Blog2 extends Controller_…
Comment by
WanWizard
February 2012
permalink
Creating an extendable framework with FuelPHP
Everything in FuelPHP (except a view) is a class, so it can extend any other class. To extend something in a package or a module, is must be loaded first. If your goal is to provide some sort of higher order framework for people to build on, perhap…
Comment by
WanWizard
February 2012
permalink
Creating an extendable framework with FuelPHP
For extending an app, modules are the way to go. Without modifying the autoloader, you can not have Controllers in other locations. There are some tricks you can use when you use namespaces for your controllers, but that will become complex quickly…
Comment by
WanWizard
February 2012
permalink
SimpleAuth ACL and modules
As the name says, it returns the controller name. Which is a class name. There is no direct mapping from the URI to a controller name. It might be the case if you're not routing and don't use folders or namespaces in your app, but there i…
Comment by
WanWizard
February 2012
permalink
after() method should accept and return the Controller's response
Thomas Edwards wrote on Friday 3rd of February 2012: Right, figure it out, I've been using Controller_Template for my other apps and this changed. Got it now! Nothing functional has changed there. If your action doesn't return anything…
Comment by
WanWizard
February 2012
permalink
after() method should accept and return the Controller's response
No, this has been changed starting 1.1.develop. Your controller action should return a response object, using $this->response is deprecated. return \Response::forge(\View::forge('welcome/index')); Alternatively, you may return somethi…
Comment by
WanWizard
February 2012
permalink
Setting Up Fuel to work in a MultiSite/Virtual Subdirectory Environment
This is my FuelPHP structure: /data/www/fuelphp/ 1.0.master 1.1.develop 1.1.master in each I have 'core' and 'packages'. The master versions contains static versions (from the zip), the develop a git clone that I ca…
Comment by
WanWizard
October 2011
permalink
SimpleAuth ACL and modules
Request::active()->module; Request::active()->controller; Request::active()->action; The construction of the ACL is entirely up to you, I for one use functional roles, which are not linked to fysical pieces of code. You pass the data to …
Comment by
WanWizard
February 2012
permalink
Extending simpleauth login function
classes/auth/login/driver tells you exactly which methods are abstract and have to be defined in your driver.
Comment by
WanWizard
February 2012
permalink
Example of index.php
You should not edit anything, unless you have deviated from the default folder structure. In your snippet, APPPATH is defined as "from the current folder, go one up, then go to fuel/app". If that is not where your "app" folder l…
Comment by
WanWizard
February 2012
permalink
Example of a linux localhost setup
Do not use 'localhost'. It will lead to misery when using sessions and cookies. Setup an alias in your local /etc/hosts file, like 'laptop.local' or so, and use that instead. As to virtual hosts, I have my virtual hosts definit…
Comment by
WanWizard
February 2012
permalink
Issues with special characters REST controller
If you put them in code like that, in what format is your source saved? FuelPHP uses and expects utf8 everywhere. In what format are your pages (again, FuelPHP defaults to utf8 for views), and what characterset are you using on your database connec…
Comment by
WanWizard
February 2012
permalink
Form: how to add an field?
Follow up here: https://github.com/fuel/core/issues/806
Comment by
WanWizard
January 2012
permalink
Routing
I hope you didn't use capital letters for your folders like in your example. All folder names in a FuelPHP installation should be lower case. And you are still deviating from the suggested FuelPHP installation. 1. Create a virtual host definit…
Comment by
WanWizard
February 2012
permalink
Routing
You can not remove the index.php from the URL using routes, routes are only effective for the part after index.php. You need rewrite rules, either in your webserver configuration or in a .htaccess file. It is difficult to tell you exactly what to d…
Comment by
WanWizard
February 2012
permalink
Routing
If it works when using the full URL (with index.php), it's not a FuelPHP issue. It is most likely your rewrites that need to be defined properly, which is always going to be a bit of a challenge when you install FuelPHP is a subfolder of your …
Comment by
WanWizard
February 2012
permalink
get_one() on related
Ah, subquery is on the parent, I missed that. Still, I can imagine it is strange for people (used to writing joins by hand or using a QB) in a case where you have 5 parents, each with 3 children, a limit of 10 would result in having 15 records retu…
Comment by
WanWizard
January 2012
permalink
Using an App version rather than Core
Did you remove the \Fuel\Core namespace from your copied version? The class in app/classes should not have a namespace defined.
Comment by
WanWizard
January 2012
permalink
Using an App version rather than Core
It's not in the docs because we don't consider it best practice. Either it's a core class that needs tinkering, in which case you extend and replace our augment only what's needed. This way you make it absolutely clear it's…
Comment by
WanWizard
January 2012
permalink
Using an App version rather than Core
Extending and replacing works exactly the same way. Create the class file in app/classes, and add it to the app bootstrap. It extends when you use 'extends', it replaces when you don't.
Comment by
WanWizard
January 2012
permalink
get_one() on related
The only way to fix this is to work on the way the queries are constructed when using limit. We had this discussion before, and this implementation still doesn't make sense to me. There is a distinct difference between "Give me the first …
Comment by
WanWizard
January 2012
permalink
ORM and dynamic table names
Moved to the ORM forum.
Comment by
WanWizard
January 2012
permalink
Updating oil only
Oil is a package like all others. It just uses the framework, it doesn't use any dirty tricks under the surface. Offcourse, the version of oil (all packages really) requires the same version of the framework, so if you update one, you might f…
Comment by
WanWizard
January 2012
permalink
Using query builder and ORM
Thought so, that's why I asked. Maybe we should add this as a note to the docs, as it might lead to odd side effects for those not in the know (like you've just run an update query, then access a model and get old data back...).
Comment by
WanWizard
January 2012
permalink
Using query builder and ORM
Moved to the ORM forum. Use the best tools for the job. Use ORM's standard methods when you want to interact with the objects, use DB queries for complex or mass-update work. As the model is your interface to the database table, I would add th…
Comment by
WanWizard
January 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:38AM
Roles
Administrator