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
Reverse lookup of routes
In FuelPHP that is the same (unless you overrule it with a route), but you need the routes of your 'xyz' module loaded, to be able to use a get('test') that should return "/xyz/abc/def", defined in the module route con…
Comment by
WanWizard
December 2011
permalink
generated oil resulting to a mysql syntax error
I have a feeling this has nothing to do with the fact that you use a PDO connection, but with the fact that at the end of that connection is a MySQL v5 server in STRICT MODE. In that mode, you can not create a table with a column 'not null…
Comment by
WanWizard
December 2011
permalink
Extending package model class from APPPATH
No, the author of Warden doesn't quite understand how class extensions work, or he does but he didn't access the class correctly. For a package there are two options. 1) it is self-contained, and in it's own namespace. In this case, …
Comment by
WanWizard
December 2011
permalink
today i find Version 1.1 Final(ly) lands ,is that mean stable?
There are no API changes between the RC's and the Final, so upgrading should be seamless. Expect upgrade work when migrating to the next major release, as significant API changes are expected. Most of the changes will be in the core though, an…
Comment by
WanWizard
December 2011
permalink
Integrating the FUelPHP Pagination CLass
Pagination has to go into your action_index, and will replace the find('all'). The docs give you a good example of how it works: http://docs.fuelphp.com/classes/pagination.html
Comment by
WanWizard
December 2011
permalink
Session flash help needed
You get the messages from flash in the init method, so you'll only see the messages already defined when the class is loaded.
Comment by
WanWizard
December 2011
permalink
How to use $_GET in fuelphp?
http://docs.fuelphp.com/classes/input.html#/method_get
Comment by
WanWizard
December 2011
permalink
New host required
I do business with Leaseweb (http://www.leaseweb.com), and I'm very happy with their service. They are a very big player, with datacenters in Europe and the US. I only have dedicated servers, but I know they do cloud hosting and web hosting to…
Comment by
WanWizard
December 2011
permalink
Few Structure Issues
As Jelmer explained, the app bootstrap needs to be called before the core bootstrap because it is used to extend core classes (which reside in your app/classes folder), these need to be defined before the core is loaded. This is how it works, I don…
Comment by
WanWizard
December 2011
permalink
Reverse lookup of routes
I've been looking at this in the past, but it's quite complicated. The issue with this is that you can have routes containing parameters, placeholders and even a regex. It is going to be tough and possibly time consuming to find your matc…
Comment by
WanWizard
December 2011
permalink
Reverse lookup of routes
You can define a route like so '/foob' => array('foo/bar', 'name' => 'myroute'), You can then get this route using $route = Router::get('myroute'); add feed it to for example html::anchor(…
Comment by
WanWizard
December 2011
permalink
Translated Routes (i18n) + linking in views
Just extend the Router class, and overload the get() method. Create the file router.php in app/classes, put a "class Router extends \Fuel\Core\Router" in there, define your get method, and add the class to your app bootstrap (there's…
Comment by
WanWizard
December 2011
permalink
Config::get('db') is null?
Who knows, you might see a FuelPHP version of DataMapper pop up next year... But it could also be that v2 of DataMapper for CI is going to look a lot more like FuelPHP's ORM...
Comment by
WanWizard
December 2011
permalink
Models not being auto loaded?
Like to know where you saw that, so we can fix it...
Comment by
WanWizard
December 2011
permalink
DB::list_columns method not supported
The current FuelPHP PDO driver is a generic driver, so all methods that would result in RDBMS specific SQL are not implemented. There is a redesign of the Database drivers on the roadmap for v2.0, which will support platform specific SQL, and will …
Comment by
WanWizard
December 2011
permalink
Translated Routes (i18n) + linking in views
There is no magically way to construct anchors in your views based on external parameters. You could use reverse routing, so you can fetch the public route based on it's name, and then use a custom class method that fetches the routed based on…
Comment by
WanWizard
December 2011
permalink
Config::get('db') is null?
You need to load the config before you can get it. The Database classes do this when first used, but if you get it before the first database call, you get null returned. Use "\Config::load('db', true);" to load it manually.
Comment by
WanWizard
December 2011
permalink
Models not being auto loaded?
Developing on Windows, deploying on linux? As per the coding standards, file names HAVE to be in lower case. See http://docs.fuelphp.com/general/coding_standards.html#/file_formatting.
Comment by
WanWizard
December 2011
permalink
ORM relation returns array, where condition
Afaik relations are always an array of objects, even if there is only one object. That is the same with all find and get operations (except the find that explicitly returns 1 result, like first, last or "primary_key").
Comment by
WanWizard
December 2011
permalink
install on windows7
On Windows, you will have to use /path/to/php.exe oil, from the directory oil is in. If you do that, does the help page show? If not, what does ( i.e. what's your definition of "nothing" )?
Comment by
WanWizard
December 2011
permalink
oil refine migrate - not working as expected
Yes, I noticed that the changes in the way the environments were setup (was all in db.php, now in separate folders) were not implemented in oil. So your fix was correct.
Comment by
WanWizard
November 2011
permalink
After deploy autoloader failing
To save you a bit of time next time: http://docs.fuelphp.com/general/coding_standards.html (see File naming).
Comment by
WanWizard
November 2011
permalink
Is there CI $config['permitted_uri_chars'] analog in Fuelphp?
No, there is not. FuelPHP is a lot more flexible than that. In your config/config.php, in the 'security' section, there is an entry called 'uri_filter'. By default, it only contains htmlentities, but you can add anything that is…
Comment by
WanWizard
December 2011
permalink
After deploy autoloader failing
That doesn't help, the autoloader forces the case of the filename. You on purpose broke FuelPHP.
Comment by
WanWizard
November 2011
permalink
oil refine migrate - not working as expected
it looks for 'db.development.charset' because the environment is set to Fuel::DEVELOPMENT, as mentioned in the above post. This section exists in the default config/development/db.php config file, this file is part of the FuelPHP distribu…
Comment by
WanWizard
November 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,368
Last Active
12:00AM
Roles
Administrator