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
Problems with routing and multiple variables
In the Route class, if you replace the compile statement by $this->search = str_replace(array(':any', ':segment'), array('.+', '[^/]*'), $this->path); $2 works again, and the extra URI parameters will …
Comment by
WanWizard
April 2011
permalink
Problems with routing and multiple variables
Issue seems to be the regex that is used to process ":segment". If you dump Request::main(), you'll see public 'route' => object(Fuel\Core\Route)[3] public 'segments' => array 0…
Comment by
WanWizard
April 2011
permalink
Problems with routing and multiple variables
What are you exactly getting where? How do you check what the path is you're getting?
Comment by
WanWizard
April 2011
permalink
Modules without Namespaces
Reading this my first reaction would be: "If you want something like Kohana, you should use Kohana". Fuel works differently, and has a different design philosophy. If you want to use Fuel, you have to adhere to it. For me, the way Kohana …
Comment by
WanWizard
April 2011
permalink
Variables in namespace?
No. But you can use call_user_func() to call a class method using variables, including static calls and namespaces.
Comment by
WanWizard
April 2011
permalink
Modules without Namespaces
In Fuel, packages are meant to extend the Core, where modules are meant to extend the application. This means your systems core classes go into a package. You can alias the package to the global namespace, so you don't have to prefix its class…
Comment by
WanWizard
April 2011
permalink
error when using oil commands
Ioncube loaders are used to load ioncube protected files, so it must be something external to Fuel. Are you using PHP 5.3+? ioncube_loader_lin_5.2 is a PHP 5.2 loader...
Comment by
WanWizard
April 2011
permalink
Class 'Orm\Model' not found
No, you have to explicitly load it. For performance reasons, Fuel doesn't load anything more than needed.
Comment by
WanWizard
April 2011
permalink
Class 'Orm\Model' not found
Is the ORM package loaded (app/config/config.php)?
Comment by
WanWizard
April 2011
permalink
Named routes not working as expected
Have you tried what that does? In both cases, 'blog/:year/:month/:id' (without any extra segments) will not be matched anymore. ":any" does not mean "anything including nothing".
Comment by
WanWizard
April 2011
permalink
Memory Usage and Speed vs Code Igniter
I'm busy converting ExiteCMS from CI to Fuel, and posted some figures some time ago comparing a finished part (same functionality). Altough I can't remember the exact figures, I know the result was quite dramatic. At that time I still use…
Comment by
WanWizard
April 2011
permalink
CMS can not be this easy!
My reason for suggesting it was just because 404 is handled differently from a standard route. Which means you can't just take existing code, and use it in a 404 route as a catchall, as the TS discovered. Which you can with my suggestion (a bi…
Comment by
WanWizard
April 2011
permalink
CMS can not be this easy!
Do not use the 404 as a capture-all, as it's processed differently (as you have found out). Instead, use something like '(.*)' => 'welcome/index'
Comment by
WanWizard
April 2011
permalink
Stationwagon
Then you have a serious issue with your setup, as fuel/core contains the bootstrap as part of Fuel (it doesn't work without it).
Comment by
WanWizard
February 2011
permalink
Oil Generate migration from an entire set of pre-defined models
Afaik that kind of property definition is already possible, but I'm not sure of the correct synax. Maybe Jelmer can comment on this.
Comment by
WanWizard
April 2011
permalink
Suggestion: add configurablebase_path to view class
In the meantime, you can just extend the view class, and add your own filename logic in there.
Comment by
WanWizard
April 2011
permalink
Suggestion: add configurablebase_path to view class
This is something being looked at ( by me ) in the context of a theme/template engine, but that's not going to be for the immediate future. It will probably be released as a package, so you can choose to use it or not.
Comment by
WanWizard
April 2011
permalink
DB Class
That's not an error on the query itself. You're trying to directly modify the result of the query, which is impossible since they're accessed via an iterator (which is read-only). Next time please include the code that causes the err…
Comment by
WanWizard
April 2011
permalink
DB Class
There is no get() in executing a query: $this->record = \DB::select()->where('id', '=', $value)->from($table)->execute();
Comment by
WanWizard
April 2011
permalink
ORM Method chaining
You can not pass objects directly to views, the security class will prevent that by trying to convert it to string. Which fails if the object doesn't have a __toString() method. Use the View's set() method with the second parameter set to…
Comment by
WanWizard
April 2011
permalink
Named routes not working as expected
A fix has been pushed to develop and master branches. Any extra URI segments are now added to the last named parameter if you haven't defined a catch for it: 'blog/:year/:month/:id' => 'blog/entry' in case of /blog/2010…
Comment by
WanWizard
April 2011
permalink
Named routes not working as expected
Reading through this issue again, I don't think there's a routing issue. A route is defined as an regular expression, and ':a/:b' doesn't match 'x/y/z'. And that is why your route isn't matched.
Comment by
WanWizard
April 2011
permalink
ORM model not working?
This something that needs to be looked at. For the moment, just pass array() as parameter to work around this issue.
Comment by
WanWizard
April 2011
permalink
Named routes not working as expected
Please create a ticket for this at http://dev.fuelphp.com.
Comment by
WanWizard
April 2011
permalink
AR documentation, pagination, security
New questions, new thread please.
Comment by
WanWizard
April 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