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
8243
Activity
routes.php case-sensitivity
Clients... Why can't we just code without clients... :-) It's the main reason that config key is there in the first place, you're not the first with such a client...
Comment by
WanWizard
February 2013
permalink
Asset a new path
If this is a folder like 'swf' at the same level as 'img' or 'js', you can do Asset::instance()->add_type('swf'); As there is no swf() method, you'll have to use the get_file() method to fetch it: $…
Comment by
WanWizard
February 2013
permalink
Setting up fuel php project in my local system
You can't really. Our commandline tool, "oil", requires linux and the git commandline client to work. On Windows, the easiest is to just download the zip file, and unpack that. Then point your webservers virtualhost docroot to the /p…
Comment by
WanWizard
February 2013
permalink
tasks as cron job
depends a bit on the operating system. On most linux machines, you have an /etc/cron.d directory for custom schedules, and folders like /etc/cron.hourly, /etc/cron.daily and /etc/cron.monthly, that run at a fixed time, If you want to use a custom …
Comment by
WanWizard
February 2013
permalink
tasks as cron job
very easy: cd /your/fuel/installation; env FUEL_ENV=production /usr/bin/php oil refine yourtask (or whatever the environment is you want to run your task in)
Comment by
WanWizard
February 2013
permalink
Related datas and find lazy
No. But nobody is stopping you from adding a findall() static method to your model which returns the result of a static::find($id, array('with all our relations'));. That way you only have to code it once and you can use it everywhere. …
Comment by
WanWizard
February 2013
permalink
Setting up fuel php project in my local system
http://docs.fuelphp.com/installation/instructions.html It also gives some pointers to non-standard installations. The DB config is not relevant at this point, if the site doesn't come up you have other issues.
Comment by
WanWizard
February 2013
permalink
Sessions in IE not working
It doesn't really matter what your server timezone is, as long as the time set matches the timezone. So if your server is set to "Europe/Amsterdam", it's time must be set to local time. And in all cases the Fuel configured timezo…
Comment by
WanWizard
February 2013
permalink
Setting up fuel php project in my local system
You'll have to supply more information. For starters, how did you install it? If you didn't follow the installation guideliness as documented, did you update your rewrite rules and the configuration?
Comment by
WanWizard
February 2013
permalink
routes.php case-sensitivity
It is bad practice to switch this off. In general, users don't type in URL's themselfs, and the links in your application should have the correct case.
Comment by
WanWizard
February 2013
permalink
Noob Question: 'No input file specified' message
Are you using the supplied .htaccess file? Or your own rewrite rules?
Comment by
WanWizard
February 2013
permalink
Profiler + ajax
You can, but there is no way to get the data out, since it produces the output by attaching it's HTML to the output of the controller (which isn't there on an ajax call). We're looking into a different solution for 2.0, but we haven&…
Comment by
WanWizard
February 2013
permalink
Bypass ORM caching
Correct. A second request for the same data will reproduce the data from cache. You can reset the cache from inside the model (as the properties are protected) using: $class = get_called_class(); unset(static::$_cached_objects[$class]); You'…
Comment by
WanWizard
February 2013
permalink
Problem with routes (slug)
The 404 is handled via an exception and launching a new request, so you no longer have access to the original URI. But that will work fine...
Comment by
WanWizard
February 2013
permalink
Problem with routes (slug)
Yeah, that doesn't work because it captures all requests. That's why I suggested to let it fall through, and deal with it in your 404 route. The routing engine doesn't have any option at the moment to attach code to it, this will be…
Comment by
WanWizard
February 2013
permalink
Why can't I access SimpleGroup after extending SimpleAuth?
Because the Auth author didn't document anything. And he isn't around to kick anymore. I did my best to document it through reverse engineering, but obviously I missed stuff. Feel free to clone the repo, make the changes, and send a pull …
Comment by
WanWizard
February 2013
permalink
Incorrect output from REST Controller
I just checked one of my apps, and I don't do anything special. On the server side it's a normal controller that extends Controller_Rest, all methods in that controller return an array. On the client side, the ajax call looks like this:…
Comment by
WanWizard
February 2013
permalink
Exception thrown without a stack frame in Unknown on line 0
The files from 1.5.2 (1.5/master) and 1.6 are identical. If you have it only sometimes, it can't be the Log issue. Go into fuel/core/bootstrap, and disable the error and exception handler (you can't do that if your app relies on exception…
Comment by
WanWizard
February 2013
permalink
Problem with routes (slug)
if you don't want to create routes for these other controllers, the easiest way is to deal with this in your 404 method. Do a lookup of first parameter, and if found, deal with it. if not set the http status to 404 and show your error page.
Comment by
WanWizard
February 2013
permalink
Sessions in IE not working
We're still talking about page requests from the same hostname, right? And we're talking about a valid hostname, not 'localhost' or some other non-RFC compliant name? Does IE have tools to check the request and response headers,…
Comment by
WanWizard
February 2013
permalink
v2.0 release date?
Probably not before the summer. It's no problem starting on the current version. 2.0 will contain a compatibility package to provide a 1.x API on the 2.0, to ease migrations for existing code.
Comment by
WanWizard
February 2013
permalink
How getting an array from the Model
an ORM, as the name implies, creates objects, not arrays. In this case, an array of objects, since find('all') returns multiple results. You can call to_array() on an ORM object without problems, but you can't have the ORM return the…
Comment by
WanWizard
February 2013
permalink
Sessions in IE not working
Ah, ok, you loose the session. As a test, set the session expiration in your config to zero. If that solves the problem, you have a timezone issue. Make sure your server is set to the correct time and timezone. Make sure Fuel is configured for that…
Comment by
WanWizard
February 2013
permalink
Sessions in IE not working
They are two different hosts, so it's quite logical that your cookies aren't found. I'm amazed that you say that it does work in some browsers.
Comment by
WanWizard
February 2013
permalink
How to extend Oil using own templates like Generate_Admin?
The Oil command class calls the Generate classes hardcoded, so you'll have to modify Command as well. It's one of the issues that needs to be fixed for 2.0. Code generation should not be in the Oil classes, it should be done through a vie…
Comment by
WanWizard
February 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,391
Last Active
9:03PM
Roles
Administrator