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
Need help with error when trying to extend SimpleAuth
The notice is quite clear. In PHP, you can not overload a class method with one that has a different argument list without getting this notice (if you have enabled E_STRICT error reporting). Instead of extending the driver, maybe it's better t…
Comment by
WanWizard
February 2012
permalink
Extend Oil package
What is the exact error that you get? If you don't have the Cli class, you don't have commandline argument parsing and processing, which makes oil rather useless.
Comment by
WanWizard
February 2012
permalink
clean_input on Security class : why not for DELETE and PUT data ?
Currently there is no easy and standard way to extract PUT and DELETE data, you will have to fetch and parse the raw http input data. The way you parse it is application specific, so it's up to your app to do that, and then to call Security::c…
Comment by
WanWizard
February 2012
permalink
Does Validation work with Array fields in a form?
I haven't used it, but what I understand from people who did, "quote.email" should work fine.
Comment by
WanWizard
February 2012
permalink
how to create localized form with validation using ORM
Revising the message system (and the fieldset class in general) has been added to the roadmap for v2.0.
Comment by
WanWizard
February 2012
permalink
Generate migration from models
Technically that should be quite easy. Write a task, load the model, fetch the properties, do a compare with the actual database table and generate the code for the migration. It is not on the roadmap, but if you add a feature request at http://git…
Comment by
WanWizard
February 2012
permalink
Migration version collisions?
@Phil, I think this should go on the roadmap for 2.0. @danharper, Could you check if this has been reported already (at http://github.com/fuel/core/issues), and if not, add a feature request so it doesn't get lost?
Comment by
WanWizard
June 2011
permalink
Extend Oil package
Wouldn't it be better to find out what the issue is with cli and cPanel, and fix that, instead of working around it?
Comment by
WanWizard
February 2012
permalink
Foreign Key to Value in View
You mean you have a category model that is related to products? Is this an ORM question? In that case, if your relations are ok, $product->category->name should work fine.
Comment by
WanWizard
February 2012
permalink
Extend Oil package
Best way to add functionality to oil is to write tasks, and call them using 'oil refine taskname'.
Comment by
WanWizard
February 2012
permalink
Oil, Tasks and Environments
You can start oil using '--env production' and run it of the production environment.
Comment by
WanWizard
February 2012
permalink
MAMP Mysql config failing had to hard code
I don't have an immediate explaination for this. I went through the code, but the config as defined in the db configuration file is simply extracted from the array and passed to PDO(). What does $dsn contain before the connection is created? A…
Comment by
WanWizard
February 2012
permalink
how to create localized form with validation using ORM
The scaffolding code is still quite generic so it can both support Model_Crud and ORM. You can 'overload' validation messages using the set_message() method on the validation object. It will still be a message per rule though, not a messa…
Comment by
WanWizard
February 2012
permalink
Git pull after clone
A git submodule is a pointer to a specific commit in a repo, it doesn't point to HEAD (which appearantly isn't possible). So the clone will only clone those repo's up until that commit reference.
Comment by
WanWizard
February 2012
permalink
prefix url
I haven't got a clue what goes wrong, I don't know your entire setup. The fact that you have 'fuelphp/intranet/public' in your links means it's is not a standard setup. It is most likely a rewrite issue. If 'welcome/hi…
Comment by
WanWizard
February 2012
permalink
Using Parser on ViewModel
Viewmodel::forge() doesn't load a view, it loads a viewmodel class. It is the viewmodel class that defines the view to load. This is documented here: http://docs.fuelphp.com/general/viewmodels.html
Comment by
WanWizard
February 2012
permalink
Routing
Then your rewriting doesn't work. Are you using an FCGI install by any chance?
Comment by
WanWizard
February 2012
permalink
Tasks + modules
The autoloader expects the Model to be named namespace RT; class Model_Api { } or namespace RT\Model; class Api { } So the 'Model' must be either in the namespace or the class name for the autoloader to know it is in classes/model…
Comment by
WanWizard
February 2012
permalink
prefix url
That would indicate that your rewriting works as it should. So [url=http://yourwebsite/fr/histoire]http://yourwebsite/fr/histoire[/url] should route to 'welcome/histoire', there doesn't seem to be anything wrong with the routes...
Comment by
WanWizard
February 2012
permalink
Unit Test w/ Migration
There are some area's in FuelPHP that don't follow the cascading file system rules, and can not be loaded by the autoloader. Migrations and Tasks are examples of those. There is an issue open in the bugtracker to correct that, but probabl…
Comment by
WanWizard
February 2012
permalink
New to MVC and FuelPHP question about views and partial views
FuelPHP utilizes a technique called late rendering. Which means that views will exist as objects until it is needed to get their string representation, usually when you echo it. This saves processing because rendering only happens when needed, not …
Comment by
WanWizard
February 2012
permalink
prefix url
I don't think you understand how routes work. Routes are a mapping from the URL to the internal controller path. Routes have the form 'controller/method/parameters' or 'module/controller/method/parameters'. This means you h…
Comment by
WanWizard
February 2012
permalink
Underscores in table names
In FuelPHP, an underscore in a name indicates a directory separator in the path, this is how the cascading filesystem and the autoloader work. Instead of moving files around it might be a better option to use a dummy tablename so that everything el…
Comment by
WanWizard
July 2011
permalink
Fieldset Class build() and Validation
The form layout used by the fieldset class is in config/form.php. Copy it from core to app and modify it to your liking. You add validation rules when you add the fields. For models, the rules are defined in the $_properties array. You can access t…
Comment by
WanWizard
February 2012
permalink
Using Parser on ViewModel
If you load the parser package, it wil extend the core View class to support your choice of parser. The Viewmodel will use \View() from the global namespace, so it should use the one extended by the parser package. I never had any issue with this. …
Comment by
WanWizard
February 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