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
HMVC Module Exceptions
Exceptions are classes like any other, so they are namespaced as any other. namespace Content; class ContentException extends \Exception {} Within the module you can just throw ContentException (as it is in the same namespace), outside the mo…
Comment by
WanWizard
June 2012
permalink
Separate configs for dev and production
Config files are merged between app/config and app/config/, so you can move any config file from app/config to the environment to make them environment specific. Fuel has four environments pre-configured, but you can create any environment you want.
Comment by
WanWizard
May 2011
permalink
Errors displayed on production
It's a bit of a chicken and egg situation: you want error reporting and display on as early as possible to catch everything. Which means relying on a config file is way to late in the bootstrap process. Having said that it's probably logi…
Comment by
WanWizard
June 2012
permalink
HELP -- Messaging Tutorial - have you tried it?
I wasn't referring to the view, but to the controller (or controllers) that load the view. One of the controller methods isn't passing a $message variable to the view, which causes the notice. This by the way looks like the _form.php file…
Comment by
WanWizard
June 2012
permalink
ninjauth setup
Looks like you're using an other version of FuelPHP than 1.2, and you're using the PDO driver. The PDO driver only has list_columns() support as for version 1.2.
Comment by
WanWizard
November 2011
permalink
routing with variables
You can not route on extensions. FuelPHP uses segments based URI's, and ignores the extension. Due to a bug this was a possibility in 1.1, which was corrected.
Comment by
WanWizard
June 2012
permalink
Seperate Form Validation for Create & Edit Users, to differentiate password validation
That is an odd error, because if 'password' is a column it should always be present in the model. What have you exactly done to setup the validation? How have you added "confirm_password' to it, as it is not a column of the mode…
Comment by
WanWizard
June 2012
permalink
HELP -- Messaging Tutorial - have you tried it?
Look for the code that loads the 'comments/create' view. This errors means there is no variable called 'message' passed to the view. Go through the code to see where 'message' is set (or not) and how it's used. Fr…
Comment by
WanWizard
June 2012
permalink
Composer in fuelphp 1.2+
Probably the best location for it, yes.
Comment by
WanWizard
June 2012
permalink
HELP -- Messaging Tutorial - have you tried it?
What specific tutorial? There are lots in that thread. Note that quite a few of those were written for v1.1, so they might not be compatible with 1.2.
Comment by
WanWizard
June 2012
permalink
Session issues
Ok. And do you autoload the session class (in your config/config.php always_load section)?
Comment by
WanWizard
June 2012
permalink
Composer in fuelphp 1.2+
There is no need for a special autoloader, if the composer packages you want to install are PSR-0 compliant. Just use Autoloader::add_namespace('vendor/namespace', APPPATH.'vendor/package', true); to map the packages namespace …
Comment by
WanWizard
June 2012
permalink
Session issues
Which version of FuelPHP are you using? There was a bug in v1.1 that would cause the session not to be created if it was empty, which could cause this behavior. This has been fixed (about a month ago) in v1.2 .
Comment by
WanWizard
June 2012
permalink
Session issues
When cookies don't work, it usually down to poor definition. Modern browsers are very strict on RFC compliance, and poorly configured cookies, to deal with the security risks related to them. Start debugging (with for example firebug). When yo…
Comment by
WanWizard
June 2012
permalink
Can someone help me about Theme Class.
A standard view is a php view, so no. {variable} is syntax of a templating engine. Install the parser package, and use your templating engine of choice. The parser package supports 5 or 6 out of the box, and is easily extendable.
Comment by
WanWizard
June 2012
permalink
Frustrating problems with connecting to the database
The idea behind this is that you can run tests against a known (or perhaps on the fly created) database, without impacting your development or production database environment.
Comment by
WanWizard
December 2011
permalink
Can someone help me about Theme Class.
You can check out our Depot project (http://github.com/fuel/depot) which uses the Theme class to generate all pages.
Comment by
WanWizard
June 2012
permalink
Session issues
Start by defining "crazy". And tell us what kind of session config you are using.
Comment by
WanWizard
June 2012
permalink
Smart routing
The quickest way is to use the _404_ route to capture URL's than can't be routed. In the controller's action this routes to, check your parameter. If found, process it, if not, return a response with a 404 status and a 404 view...
Comment by
WanWizard
June 2012
permalink
Working with modules
If you want to return a viewmodel, you have to make the viewmodel class, in modules/admin/classes/view/welcome/hello.php if you use the name 'welcome/hello'. See http://docs.fuelphp.com/general/viewmodels.html which describes what a viewm…
Comment by
WanWizard
June 2012
permalink
how to set Pagination params auto?
Auto create links based on what? Some magic? The pagination_url setting defines the base URL, the pagination class will add the page number to it.
Comment by
WanWizard
June 2012
permalink
Blog tutorial
Not sure if this is the same one: http://thinklikearobot.com/2011/fuelphp/fuelphp-blog-tutorial-part-1/ ?
Comment by
WanWizard
November 2011
permalink
Form data and File upload issue
Upload::get_errors() doesn't work that way. It will return an array structure for every uploaded file that has a processing error, with all details of the file, and a list of all errors detected. var_dump the return value to see what it looks …
Comment by
WanWizard
June 2012
permalink
Forms: backslahes and quotes get changed
* oops... *
Comment by
WanWizard
June 2012
permalink
Forms: backslahes and quotes get changed
Time to find a new hoster...
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