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
MongoDb
Watch your case. The class is defined as 'MongoDb', so you should use MongoDb::instance();.
Comment by
WanWizard
July 2011
permalink
Changing source of view files
You can add an extra path to the current request using Request::active()->add_path() which will be used by Fuel's file locator to load files, and which have priority over the default paths; In case of views, the path you add must contain a …
Comment by
WanWizard
July 2011
permalink
Security question
Fuel by default doesn't encode on input, only on output. The DB classes will take care of escaping regardless of input filtering.
Comment by
WanWizard
July 2011
permalink
Version 1.0
It's under discussion at the moment. Ideally we would like to have the docs and unit tests complete, those have priority at the moment. But it's difficult to pin a date.
Comment by
WanWizard
July 2011
permalink
Deployment using Git
You might be able to create something using a rewrite in the root, that rewrites to public/index.php/$1. Something along the lines of http://chanon-srithongsook.info/development-notes/change-main-domain-to-subfolder/ ?
Comment by
WanWizard
July 2011
permalink
'oil refine migrate' causes PHP Fatal error
http://www.php.net/manual/en/mysqli.overview.php
Comment by
WanWizard
July 2011
permalink
Question: Asset queuing
That's how I do it. My widget views use the first line to define the assets they need, my page templates use the second to render whatever the widgets need.
Comment by
WanWizard
July 2011
permalink
Routing issue
I honestly can't say. The way routing works is that the URI is matched against each of the routes, in the sequence in which they are defined. If there is no match at the end, autodetection is performed. If that fails to, you'll get a 404.…
Comment by
WanWizard
June 2011
permalink
Deploying and OIL migrate
I don't think 'php oil migrate' cares much about your Apache configuration... You'll have to inform oil in which environment you're running, so you can select the correct database. For Fuel itself, you'll have the opti…
Comment by
WanWizard
June 2011
permalink
Deployment using Git
Why? My webservers have a /data/web/virtual directory, in which I create a folder for every website that is hosted on that webserver. Say I want to host http://www.example.com. I create /data/web/virtual/www.example.com, I setup my deployment to de…
Comment by
WanWizard
July 2011
permalink
'oil refine migrate' causes PHP Fatal error
are you sure you're commandline php uses the same php.ini as the one that runs in your webserver? I've seen setups (especially the xAMP's you install seperately) where that's not the case, with the result that nothing is loadin…
Comment by
WanWizard
July 2011
permalink
Deployment using Git
I don't see the problem, an application (any application) has exactly the same structure as Fuel. The Fuel repo (fuel/fuel) contains only your application folder structure, and uses submodules to link the other repo's in. For my applicati…
Comment by
WanWizard
July 2011
permalink
How Does Instance Function Work?
Objects are destroyed either when you destroy them, or when the PHP script ends.
Comment by
WanWizard
June 2011
permalink
Routing issue
With what routes? with the above route, welcome/admin/create will be called, with :controller = news. Fuel only checks for a controller/method match is the request isn't captured by a route. So if you have any route that captures admin/news/cr…
Comment by
WanWizard
June 2011
permalink
Caching and ORM
Even i'm learning something new every day... I've added this method to the docs.
Comment by
WanWizard
July 2011
permalink
View_Smarty
Maybe your core is, but your index.php definately contains old code. the $response->body() line will overwrite anything your response object has produced. Somehow that line contains a view object (can't see the entire line), which triggers …
Comment by
WanWizard
July 2011
permalink
Caching and ORM
Caching functionality for ORM is on the roadmap, but not for the upcoming v1.0 release. I would prefer a more low-level approach, where you just run your ORM code, and the ORM deals with retrieving data from cache. If you want to code it yourself, …
Comment by
WanWizard
July 2011
permalink
Modules Migrations
We'll have to discuss this after release of 1.0. I can see a need for this. In a truly modular environment, modules can introduce their own set of tables to an application. You don't want the break the loose coupling achieved by using mod…
Comment by
WanWizard
July 2011
permalink
problem with custom validation error message for
If it feel of the radar when we moved our issues, did anything think of just adding it again? To avoid having this kind of discussions all over the place (and waisting valuable time doing so), our point of view towards bugs is simple: if it isn…
Comment by
WanWizard
April 2011
permalink
Help! PDO MSSQL - lastInsertId Error
No. Focus is on getting v1.0 out the door as soon as possible. The new QB requires API changes, so it would be part of 1.0.
Comment by
WanWizard
July 2011
permalink
Routing issue
'admin/:controller(/.*)?' => 'welcome/admin/$1', works without problems here. With URI 'admin/something/test/one/two' I get // from $this->params(): array 'controller' => string 'something&…
Comment by
WanWizard
June 2011
permalink
ErrorException [Warning]: in_array()... when doing a foreach that updates data on database
You have an error elsewhere, that triggers the error in the error class, which in turn causes the original error not to be displayed. Maybe the original error is in your (webserver) log?
Comment by
WanWizard
July 2011
permalink
hooks
Fuel doesn't use hooks, it uses events, supported by the Event class, which is much more flexible than CI's hooks. The Core currently defines only one event, 'shutdown', which is triggered in your public/index.php. If you can e…
Comment by
WanWizard
July 2011
permalink
View_Smarty
That looks like quite an old version of Fuel. The parser package needs at least RC2, probably RC3.
Comment by
WanWizard
July 2011
permalink
Default route issue
Is that a fastcgi installation by any chance? There are some issues with that, already in the issue tracker, and waiting for Dan to surface, he's been working on this in the past.
Comment by
WanWizard
July 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,369
Last Active
10:33PM
Roles
Administrator