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
AR documentation, pagination, security
Yes, I've fixed DB profiling in the develop and master branches based on this report, so it will be part of 1.0. For next time, please create a ticket on http://dev.fuelphp.com to make sure the bug is on our to-be-fixed list...
Comment by
WanWizard
April 2011
permalink
Call to a member function body() on a non-object
Your constructor is defined without required parameters, and isn't calling the parent constructor
Comment by
WanWizard
April 2011
permalink
Cannot redeclare class Controller_admin
Modules have to be in their own namespace. So if you have a module called admin, it should be
Comment by
WanWizard
April 2011
permalink
i18n routes (multilanguage segment names)
Just tested it with a stock install of Fuel, by adding \Lang::load('test'); var_dump(__('hello')); to app/config/routes.php. Works without problems.
Comment by
WanWizard
April 2011
permalink
Basic modules example
It's currently not possible to add routes like return array( 'main/page' => 'modulename/controller/method' ); to a module's routes.php. At the moment, it's not our intention to do so, as that would mean …
Comment by
WanWizard
January 2011
permalink
i18n routes (multilanguage segment names)
Technically, routes.php is just a plain PHP file. So you should be able to do // routes.php // get the localized name for 'news' $news = __('news'); // __() is an alias for \Lang::line() return array( …
Comment by
WanWizard
April 2011
permalink
Basic modules example
Why would you want to do that? If you want to add a global route that points to a module ('test' => 'module/controller/method'), it needs to be in the app's routes.php. You don't want app specific coding in a module…
Comment by
WanWizard
January 2011
permalink
Basic modules example
You can add a routes.php file to your module's config folder. This will be read and parsed when a module request is detected (the first URI segment == the module name). This implies that all routes defined must match a URI that starts with the…
Comment by
WanWizard
January 2011
permalink
Basic modules example
Can you be a bit more specific? "which takes care of stuff and automaticly being imported by the appllication" doesn't really help much. What do you want your module to do?
Comment by
WanWizard
January 2011
permalink
Phil's template library
No. All focus is on a stable RC at the moment. And it's unlikely (but haven't discussed it) that it will be part of the core. It will probably be a package.
Comment by
WanWizard
March 2011
permalink
Modules and Routing
Ok, found an issue, module detection was broken. I just committed the fix. Can you update your Fuel install and check again?
Comment by
WanWizard
March 2011
permalink
Modules and Routing
What doesn't work? Error messages? Your controller works without problems here, providing there's a template called 'template' that can be found (as you didn't set one in your controller).
Comment by
WanWizard
March 2011
permalink
Modules and Routing
Yeah, we've been discussing this in IRC. Unfortunately, due the way Fuel locates files at the moment it's very difficult to alter the search order. I've created an issue about this in the bugtracker.
Comment by
WanWizard
March 2011
permalink
Modules and Routing
Module routing has been fixed in the develop branch. There's still one issue on the table that I haven't solved yet (and I don't know if it's needed): If you have an application controller of the same name as a module, the route…
Comment by
WanWizard
March 2011
permalink
Let's get documenting.
Added some of your texts to the Module docs. Models are all yours.
Comment by
WanWizard
March 2011
permalink
What's Changed About Routes in Latest Fixies?
I'm looking into it, it was reported in a different thread as well... See this thread (to avoid multiple threads about the same subject)
Comment by
WanWizard
March 2011
permalink
Modules and Routing
I'll have a look...
Comment by
WanWizard
March 2011
permalink
Let's get documenting.
Saw the tweet, did you see my commits?
Comment by
WanWizard
March 2011
permalink
FTP Class
Correct. The Class only supports plain FTP at the moment, no sftp.
Comment by
WanWizard
March 2011
permalink
FTP Class
You speficied "sftp://xxx.xxx.xxx.xxx" as hostname. However, the ftp class uses ftp_connect(), which only accepts a hostname without scheme, and besides that, it doesn't support sftp. You can get sftp working, but it requires ssh…
Comment by
WanWizard
March 2011
permalink
Create base controller from template controller?
And if not, by default it attempts to load a view called 'template'. Does that exist?
Comment by
WanWizard
March 2011
permalink
FTP Class
I assume that 'foobar' is a valid config item? you don't need to call connect(), the factory() method connects automatically. Dump the $ftp variable to see if the object has been created. If the connect failed, $ftp will be false. li…
Comment by
WanWizard
March 2011
permalink
Phil's template library
No, it doesn't. I'm working on a theme engine at the moment, but first some issues regarding the autoloading of files need to be fixed. Currently you can't set a searchpath for a single load request, paths are global. Which makes it …
Comment by
WanWizard
March 2011
permalink
Please post something in your blog on the fuel site
No worries, we're working on it...
Comment by
WanWizard
March 2011
permalink
404 route for a module
This has been fixed a few days ago in the develop branch.
Comment by
WanWizard
March 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,365
Last Active
April 26
Roles
Administrator