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
Working with Fieldset class and ORM
You are right, the best place to define your validation rules is in the model. You can define the field rules as part of the $_properties in the ORM model. From the model that drives the form I showed you: http://scrp.at/bwi. The valid_* rules in t…
Comment by
WanWizard
June 2012
permalink
Error by using Response::redirect before Session::set
I've never seen this issue. How can I reproduce this?
Comment by
WanWizard
June 2012
permalink
Using Parser on ViewModel
I believe this should be corrected. I've created an issue for it: https://github.com/fuel/core/issues/1034
Comment by
WanWizard
February 2012
permalink
How do I reference an object instance from a class initialization in FuelPHP?
Don't use "self::", use "static::". There is a small but significant difference between the two, which will become appearant when you start extending classes.
Comment by
WanWizard
June 2012
permalink
Problem with either routing or rewrite on production server
https://domain.com/api/v1/index.php would strip the extension, and then look for a controller called "index", and call a method called "index" in that controller. If that doesn't exist, you get a 404. Unless you have a rout…
Comment by
WanWizard
June 2012
permalink
simple routing problems
Pushing it doesn't really get you help any faster. I can't really work with "it doesn't work". What did you expect to happen? What does happen? What have you tried? Does requesting the website route work (which also calls &…
Comment by
WanWizard
June 2012
permalink
Timezone dropdown menu
Our Depot project uses that in the user register / profile controller. You can find the code on http://github.com/fuel/depot, check the users module. The views are in the themes/default folder.
Comment by
WanWizard
June 2012
permalink
Working with Fieldset class and ORM
The fieldset form is generated following the template you define. If none is defined, it will use the template defined in the form.php config file. If you app doesn't have one, it's loaded from core/config. Note that these templates are q…
Comment by
WanWizard
June 2012
permalink
Image Uploading with a Form
According to the PHP documentation, the finfo extension should be present by default in every PHP 5.3 installation. On Windows, you have to install an extra DLL, which is documented (so see the docs). Unfortunately, some hosters compile their own P…
Comment by
WanWizard
May 2012
permalink
could you add IRC like http://www.laravel.com/irc
Add to where? The website? It's just embedding http://webchat.freenode.net/, and it works like crap. Get yourself an IRC client (they are no different then any other chat client like Jabber, MSN or Skype), it will work much better.
Comment by
WanWizard
June 2012
permalink
simple routing problems
That should work without problems. Unless you have a module called 'test', which would have preference over global app routes.
Comment by
WanWizard
June 2012
permalink
Problem upgrading from v1.1 to v1.2
There is no default config in core to force you to define your own config. People tend to be lazy and not change any defaults that are set. For the same reason there is no default crypt config. This change is documented in the changelog, as one of …
Comment by
WanWizard
June 2012
permalink
does it support url automatic create base on router or not?
Just tried that here, and it works fine. Note that as I said, reverse routing with regexes only works as of 1.3/develop, it is not available in 1.2.
Comment by
WanWizard
June 2012
permalink
Problem upgrading from v1.1 to v1.2
No, I didn't say that (altough that is perfectly possible). If it's in app/config, it is global for all environments. this line in app/bootstrap.php starts the framework and indicates the config to load: // Initialize the framework with t…
Comment by
WanWizard
June 2012
permalink
Problem upgrading from v1.1 to v1.2
Yes, that was what I meant. How old was your previous installation? I mean app and public? The main config file (app/config/config.php) is processed by Fuel's init. Which config it must process is specified by the call to init, which is in you…
Comment by
WanWizard
June 2012
permalink
does it support url automatic create base on router or not?
Rules are processed in the order in which they are defined. Your :any rule will capture /post before it gets to the later rules... v1.2 doesn't support regexes, regex aliases. It does support normal routes and routes with named parameters. For…
Comment by
WanWizard
June 2012
permalink
does it support url automatic create base on router or not?
For Router::get() to work you need a named route, as documented here: http://docs.fuelphp.com/general/routing.html#/named_routes And Router::get() needs a parameter with the name of the route to fetch, so your code is pretty pointless, it doesn…
Comment by
WanWizard
June 2012
permalink
Problem upgrading from v1.1 to v1.2
Mitchell wrote on Sunday 17th of June 2012: Is there perhaps a significant change in v1.2 that I'm missing? No, nothing in config.php has been changed between 1.1 and 1.2. The only thing related is that output_filter is now required. But yo…
Comment by
WanWizard
June 2012
permalink
Object Model Without The Database
Difficult to judge at the moment. We are committed to providing backward compatibility to make the transition from 1.x to 2.0 as painless as possible. I don't want to face a rewrite for all my apps either. Under the hood it will definitely loo…
Comment by
WanWizard
June 2012
permalink
Problem upgrading from v1.1 to v1.2
I've got this: 'security' => array( 'output_filter' => array('Security::htmlentities'), ), in my config file, and that works fine. Where exactly is this exception generated ( file and line # )? As for the…
Comment by
WanWizard
June 2012
permalink
Object Model Without The Database
The ORM model uses the query class to run the queries, which in turn uses the DB class to pass them to the driver which passes them to the RDBMS engine. If you want to do something like this, probably your best bet is to replace the Query class. Cu…
Comment by
WanWizard
June 2012
permalink
Can not find any good tutorials
I don't think there are any 1.2 tutorials at the moment, given the fact that it is only two weeks old. 1.1 tutorials should be fine, properly coded controllers should not present a problem. The changelog ( https://github.com/fuel/core/wiki/Cha…
Comment by
WanWizard
June 2012
permalink
error action_index() or the controller after() method must return a Response object.
This tutorial is based on v1.0, and no longer current ( we're on 1.2 at the moment ). As the message says, action methods are now ( as of v1.1 ) required to return a Response object. Alternatively you can return a string or something that can …
Comment by
WanWizard
June 2012
permalink
Big problems in profiling
We are aware of the cookie issue, it seems to be a bug in PyroCMS (which is used to build this website). I have profiling on in development mode at all times, and have never encountered any issues. Which FuelPHP version? Which RDBMS? Which driver u…
Comment by
WanWizard
June 2012
permalink
HMVC Module Exceptions
You should store every class in a separate file, so that the autoloader can load it when it's requested. All classes go in the classes folder, same for app, modules or packages. So ContentException goes into modules/content/classes/contentexc…
Comment by
WanWizard
June 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,372
Last Active
7:49AM
Roles
Administrator