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
Manual slug with Observer_Slug
The problem is that on insert, you could get away with "if not empty then skip", but only on the assumption that nobody assigns something manually. If that assumption is false, you break current functionality as the wrong value will be sto…
Comment by
WanWizard
November 2013
permalink
Database select problem
Fuel v1's uses Kohana's old DB layer, and that unfortunately isn't too flexible. Which is why for v2 we've written a completely new DB layer. You don't have to write SQL code, you can do: function sql_calc_found_rows($quer…
Comment by
WanWizard
November 2013
permalink
Database select problem
I don't really have one, other then perhaps fetch the compiled query (without the SQL_CALC_ROWS), stick that on it manually, and then pass everything to DB::query() ? I know it's been looked at in the past, but no good solution was ever f…
Comment by
WanWizard
November 2013
permalink
Manual slug with Observer_Slug
Like that, it will definitely break the current functionality, as you intend to alter the logic. If you want to propose something like this, control it's behaviour via a property (overwrite true/false), with a default of false to mimic the cur…
Comment by
WanWizard
November 2013
permalink
Can ViewModel object use function set_global() ?
The Viewmodel itself does not support set_global(). A Viewmodel is a class, global scope should be avoided (even when using views, it's a bad idea and points to design flaws). If you insist, you can use get_view() to get the Viewmodel's V…
Comment by
WanWizard
November 2013
permalink
Database select problem
This is currently not supported, select() only supports column names and functions (via DB::expr()).
Comment by
WanWizard
November 2013
permalink
REGXP and CONCAT ORM.
Can you post the EXACT error? It includes the SQL generated, and that would help us to see what goes wrong.
Comment by
WanWizard
November 2013
permalink
REGXP and CONCAT ORM.
What is the exact error?
Comment by
WanWizard
November 2013
permalink
Keep getting old-values from ORM jquery
I can't comment, because I don't know what you're doing. But I've never seen this, on the contrary, ORM does it's utmost to maintaince a single instance of every object, just to avoid having multiple objects flying around in…
Comment by
WanWizard
November 2013
permalink
Oil Generate CRUD for Group and Roles
CRUD generation in oil is limited to a single table only. So you can generate the code (you can use the fromdb task to generate from an existing table), but that will not handle relations, or in case of Ormauth the contents of the action columns.
Comment by
WanWizard
November 2013
permalink
global variable handling
Yes, correct. PHP is stateless, so everything you do is within the scope of the request. Once that finishes PHP will forget everything. This is why you need a session to pass data from one request to the next. So controller B (assuming that is a s…
Comment by
WanWizard
November 2013
permalink
Arr dot-notation
Create you create an issue for that?
Comment by
WanWizard
November 2013
permalink
Where to place traits?
That is what I expected. But if you say it works, then no further action is needed?
Comment by
WanWizard
November 2013
permalink
Where to place traits?
If it works, what do you want to be part of the core?
Comment by
WanWizard
November 2013
permalink
How to sub sub module?
DOCROOT? Ideally you shouldn't have code inside your docroot, for security reasons...
Comment by
WanWizard
November 2013
permalink
Where to place traits?
Correct. And with the current autoloader it's not going to work, because it will do a class_exist() check, which fails on a trait. It's probably better to store them somewhere else, like APPPATH.'traits', and use \Fuel::load(…
Comment by
WanWizard
November 2013
permalink
How to sub sub module?
It's doesn't get a first price in a beauty contest, but what you should to is define ./mobules/site/modules as a module path in your application config file. After that, the blog module should work without problems. Request::add_path() a…
Comment by
WanWizard
November 2013
permalink
Extend and replace Orm\Query
v2 has a dependency injection container, so you can swap any class with any other, it doesn't use Aliasing (only for making classes available in a different namespace). There's a 1.7.1. coming (backport of 1.8/develop), which has quite a …
Comment by
WanWizard
November 2013
permalink
Opcache reset
I checked the C++ source, the pending flag is reset even before the cache is actually restarted. The restart is triggered from accel_activate(), which is called when is script is being compiled. Does your config actually compile anything? If not, i…
Comment by
WanWizard
November 2013
permalink
Opcache reset
How do you detect that?
Comment by
WanWizard
November 2013
permalink
Opcache reset
I can't reproduce that here, it redirects just fine? Note that as with any opcache, you can run into severe problems when you alter files that are already in the cache, APC has the same issue. In general, only enable an opcode cache in product…
Comment by
WanWizard
November 2013
permalink
Fuel 1.8 and 2.0
No, the 1.8/develop branch will be used for current development of the v1.x train, which at the moment is limited to bugfixing and small functional stuff (mainly omissions). These will be backported to future 1.7.x maintenance releases. When v2 wi…
Comment by
WanWizard
November 2013
permalink
Extend and replace Orm\Query
A result from any ORM query is a Model or array of Models. So if you want to have additional methods available, you need to extend the Model, not the Query object. Extending the Model is easy, just create a base model in your app: in fuel/app/clas…
Comment by
WanWizard
November 2013
permalink
Users and permissions
You're welcome, thanks for spotting the bug! ;-)
Comment by
WanWizard
November 2013
permalink
Users and permissions
Found the issue. The typing observer does convert NULL, but only on write, not on read. Fixed the Ormacl driver, so if you update your local repo, the problem should be gone.
Comment by
WanWizard
November 2013
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,373
Last Active
6:26PM
Roles
Administrator