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
View_Smarty
Problem here is that multiple template engines use the extension .tpl, and you can only assign it to one. Currently, .tpl is assigned to Dwoo, which means you can't use it for Smarty. But nobody's stopping you from copying the parser.php …
Comment by
WanWizard
July 2011
permalink
Error with Fuel package SimplePie
Ok, found and fixed.
Comment by
WanWizard
July 2011
permalink
Default route issue
Can you give some platform information? webserver, mod_rewrite in use? When you request a specific controller (p.e. [url=http://hostname/welcome/index']http://hostname/welcome/index'[/url]), does that work? And [url=http://hostname/index.…
Comment by
WanWizard
July 2011
permalink
Default route issue
Can you dump $_SERVER in welcome/404, and post the values of the following keys here: PATH_INFO, ORIG_PATH_INFO, REQUEST_URI, QUERY_STRING.
Comment by
WanWizard
July 2011
permalink
View_Smarty
You are right, the default extension should be 'smarty'. I'll see if I can correct that today. edit: done that.
Comment by
WanWizard
July 2011
permalink
Upload class and mime types for Office 2007 files
The Upload class uses PHP's fileinfo to detect the mimetype. It can't distinguish between a MS file and a zip file.
Comment by
WanWizard
July 2011
permalink
Help! PDO MSSQL - lastInsertId Error
The query builder currently only supports MySQL completely. The PDO driver is a generic driver, that doesn't know the MSSQL specifics. I'm working on a improved QB in the feature/sqlbuilder branch, which currently has a MSSQL specific PDO…
Comment by
WanWizard
July 2011
permalink
View_Smarty
That doesn't work, because .tpl is currently configured for the Dwoo engine. In the config file, no specific extension has been defined for Smarty, so Smarty templates need a .smarty extension. If you want to use .tpl, define it in the config,…
Comment by
WanWizard
July 2011
permalink
Error with Fuel package SimplePie
I can't reproduce that here. I've got it running in an application, and it fetches the RSS feed just fine. I use this code: $feed = new \Simplepie\Factory(); $feed->set_feed_url('http://datamapper.wanwizard.eu/rss.xml'); $f…
Comment by
WanWizard
July 2011
permalink
Website bugged
The forum formatting is mainly a css thing, I've asked @iKreativ to have a look at it.
Comment by
WanWizard
July 2011
permalink
View_Smarty
@Vanitas, PKGPATH is for template engines included in the package, APPPATH for template engine you'll have to add yourself. I agree with @b3ha that Smarty should be in APPPATH, we will never include it by default in the package. As to speed, …
Comment by
WanWizard
July 2011
permalink
View_Smarty
Looks fine. Send a pull request, I'm pretty sure Jelmer will accept it.
Comment by
WanWizard
July 2011
permalink
Website bugged
Fortunately, this website isn't build on Fuel. It runs PyroCMS, based on CodeIgniter. We are aware of certain issues, and these have been passed on. Like with any other application, we now have to wait until try fix it and release a new versio…
Comment by
WanWizard
July 2011
permalink
ErrorException [Warning]: in_array()... when doing a foreach that updates data on database
You're running 1.0-RC3. Either you're affected by a bug that was present in that version, or there's something wrong with it. If I replace fuel/core and fuel/packages/orm by the develop version, the issue is solved.
Comment by
WanWizard
July 2011
permalink
ErrorException [Warning]: in_array()... when doing a foreach that updates data on database
You keep on getting config issues, this error happens again because the Config call doesn't return what it should. If it's possible, could you make a zip of your entire fuel directory, and a dump of your database, and send it to my so I c…
Comment by
WanWizard
July 2011
permalink
View_Smarty
There's a fuel-parser package that support pluggable parsers (https://github.com/fuel/parser). It comes with support for Dwoo, Twig, Simpletags, Moustache and Jade. Extending it is very simple. Maybe you could fork the repo, and add Smarty sup…
Comment by
WanWizard
July 2011
permalink
Support for MongoDB?
What does MangoDB do that our current MongoDB class doesn't do?
Comment by
WanWizard
July 2011
permalink
Modules and default controllers
Because the router only uses _root_ if there are no URI segments present (= when you actually do request the server root). When you request http://www.example.org/testing, you're not requesting the root, you have one URI segment, 'testing…
Comment by
WanWizard
July 2011
permalink
Support for MongoDB?
MongoDB is indeed a separate class. I've added the missing docs to the issue list. For models (I assume you mean ORM) to support different query languages, we need to rework our current query builder (which originates in Kohana, and only under…
Comment by
WanWizard
July 2011
permalink
ErrorException [Warning]: in_array()... when doing a foreach that updates data on database
I think there's a different issue here. If you're not using multiple databases, only the default instance ($name = null) is used. Which means that on subsequent calls, the isset() on line 54 will detect that the name belongs to an existin…
Comment by
WanWizard
July 2011
permalink
Modules and default controllers
Afaik there is no per-module default root or 404 route supported. Those routes are global and not used as part of the routing process. _root_ is only used if there are no URI segments present (which is always the case when referring to a module. _4…
Comment by
WanWizard
July 2011
permalink
Having trouble relating has_many and belongs_to
Think I understood you incorrectly. If your model is called Model_User_Network, and is in app, it must be in a file called network.php, stored in app/classes/model/user in order to be autoloaded.
Comment by
WanWizard
July 2011
permalink
set a language and load a language file from a template controller
You're confused to how Fuel deals with internal array storage. The key hierarchy is flattened to a dot-separated string. So if you have an array like this: return array( 'one' => array( 'two' => 'th…
Comment by
WanWizard
June 2011
permalink
ErrorException [Warning]: in_array()... when doing a foreach that updates data on database
Line 61 in develop is a blank line. What version of Fuel are you using? And could you http://scrp.at the code of the instance() method in your version of connection.php. Looks like a similar issue like you have with the Email class...
Comment by
WanWizard
July 2011
permalink
Status of email class
1. Yes. 2. I saw Jelmer started a feature/email branch, and created the driver framework, but no drivers yet. 3. My guess: probably not. When the last point is an issue, you can always opt to take the last available version of the Email class and…
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,370
Last Active
2:32PM
Roles
Administrator