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
How to use related() via ORM in one to many (has many)?
If you do a find('all') like that, the ORM will use lazy loading to get the related information when you request it. That means in your loop it will fire a new query for every product to get the images. When you use 'related' (y…
Comment by
WanWizard
May 2014
permalink
ORM Memory leak
That link doesn't work here, it says "You don't have access to this version.".
Comment by
WanWizard
May 2014
permalink
OrmAuth
Auth only operates on the current logged in user, there is no method to do anything on a specific user id.
Comment by
WanWizard
May 2014
permalink
Any plans to support UNION in the Query Builder?
Ideally you should run this by FrenkyNet, he deals with Fuel's DB. But I would say to treat this the same way subqueries are treated, in which case this becomes a non-issue. $q1 = DB::select()->...; $q2 = DB::select()->...->union($q1…
Comment by
WanWizard
May 2014
permalink
Any plans to support UNION in the Query Builder?
The query builder is a component that came from the Kohana framework, over three years ago, and little has changed since then. The underlying database layer is not very good, so we decided do dump it an rewrite if for Fuel v2. Which is why not a l…
Comment by
WanWizard
May 2014
permalink
ORM Memory leak
That is not what I wrote. I said that the way the ORM is written makes it not very suitable for batch operations. It was written to back interactive CRUD operations, and in that scenario, there is no need for clearing the cache, it will never contai…
Comment by
WanWizard
May 2014
permalink
session storage in database, db driver
Very odd, you have loaded the Session class? And there is interaction with the session (i.e. session variabes are set)? All our applications use db backed sessions, without problems, and without changing more in the config then the driver name.
Comment by
WanWizard
May 2014
permalink
session storage in database, db driver
Difficult to say, there's really nothing more to it. You are sure oil talks to the same database as your application? Both in the same environment (so with the correct config)?
Comment by
WanWizard
May 2014
permalink
Session_driver
You don't. Using class_alias that is. You need to inform the autoloader of the class overloading by adding a class map, Your app/bootstrap contains a commented example on how to do that.
Comment by
WanWizard
May 2014
permalink
Extend/Overrides Shared Module ?
Mapping the URI, i.e. creating a route for it, will remap at controller action level. so for example you can map: 'admin/news/this' => 'some/controller/index', 'admin/news/that' => 'some/other/controller/met…
Comment by
WanWizard
May 2014
permalink
Shared assets themes
Which version of Fuel are you on? I think I saw a fix for that, you might want to swap your fuel/core for 1.8/develop, and see if that fixes it. If not, please create an issue for it at https://github.com/fuel/core/issues, with your config and a c…
Comment by
WanWizard
May 2014
permalink
ORM Memory leak
Because I think this is a workaround for something that is implemented wrong. Because the ORM was never designed for batch operations. Because any effort put into v1 is not put into v2.Because .... You know how it works, create a PR, Steve can look…
Comment by
WanWizard
May 2014
permalink
Fuelphp 2.0
Yes, possible, but not easy. Also, the static interface will make it very complicated to swap classes, which works a lot better with non-statics and a DiC. Having said that, Fuel v2 will still have a static interface, but it will not contain any …
Comment by
WanWizard
May 2014
permalink
How to call Controller method from the Task
After $data = \Request::forge('controller/test')->execute()->response(); your $data will contain a Response object. Anything the controller method has returned will be stored in the response body, accessable via $data->body().
Comment by
WanWizard
May 2014
permalink
Shared assets themes
Your asset base URL should always be your app URL, as it is used by the client. And that is the problem here, it is the browser that fetches the assets, through links in the html page. This means that they should be accessable by the browser, whic…
Comment by
WanWizard
May 2014
permalink
Fuelphp 2.0
I still don't know what you're going on about. There is no integration between Monga and any framework, and there isn't one needed. My question again, what are you looking for?
Comment by
WanWizard
May 2014
permalink
Fuelphp 2.0
I don't understand your problem. If you want to use the package in a non-Fuel PHP application, go ahead. Currently, Monga is a very popular composer package for a Mongo abstraction layer (see https://packagist.org/packages/monga/monga for only…
Comment by
WanWizard
May 2014
permalink
how i get a CSV file downloable with headers?
That is an option. File::download() would have been another one. I just had trouble understanding what you wanted, and this doesn't really help. I have data in CSV format, and I past that into a form, so I can get the same data returned to me …
Comment by
WanWizard
May 2014
permalink
Mixed content
You need to use different Asset instances for this, one configured for http, one for https. You can have a different config for both. Don't forget that in most cases, the static interface is just a front for the default instance, Asset::js() …
Comment by
WanWizard
May 2014
permalink
Fuelphp 2.0
I think everyone wants to know. But the answer is "when it's ready". Fuel is a community framework, everyone working on it does so it his free time. Since that is variable, so is the timing. The core team is going to meet up next we…
Comment by
WanWizard
May 2014
permalink
Oil won't detect migration version
Migrations are tracked in two ways: - the migrations.php config file - the migrations table The table always reflect the current state of your migrations, the config file can be used to control which migrations should run on deployment using the --…
Comment by
WanWizard
May 2014
permalink
Extend/Overrides Shared Module ?
Depends on what you want to override. With that setup, at the module level, a module "news" in APPPATH will be found before one in SHAREDPATH, so this is now you overload modules. If you want to overload a single class of a module, you c…
Comment by
WanWizard
May 2014
permalink
how i get a CSV file downloable with headers?
What is in that variable? You can't stick a "table" in a variable? The name of the table? And how big is this table? Any special requirements to the format of the CSV file?
Comment by
WanWizard
May 2014
permalink
how i get a CSV file downloable with headers?
I'm a bit confused to what you exactly want to do, I read a lot of actions in your question. Start: you have a table with rows of data. -- some interaction in between -- Final result: you want to download this table as a CSV file. Correct? So…
Comment by
WanWizard
May 2014
permalink
index.php display_errors
Agreed. It is not for nothing we have a mechanism in place for all our virtual hosts on all webservers. Unless the site has a custom maintenance page (we also have a standard mechanism for that), you will get this when the site is unavailable: http…
Comment by
WanWizard
May 2014
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,368
Last Active
11:57AM
Roles
Administrator