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
8248
Activity
1.6 install issues.
Doesn't that do exactly the same? It just installs composer centrally and gives you a start script so don't need the php prefix bit (like we do with oil).
Comment by
WanWizard
May 2013
permalink
Problem with to_array on nested relations
Which version of Fuel? Have you looked at the SQL generated (enable the profiler and db profiling to see it) to see if you can spot what could be wrong?
Comment by
WanWizard
May 2013
permalink
Easy way to throttle API requests?
What do you mean by request throttling? Limit the number of requests per second? It total? or per client?
Comment by
WanWizard
May 2013
permalink
oil and Session
Sessions work with cookies, that take care of the persistence between requests. There is no cookie support on the commandline, so you can't use sessions.
Comment by
WanWizard
May 2013
permalink
Pagination with numbers
Can you be more specific?
Comment by
WanWizard
May 2013
permalink
1.6 install issues.
Usually the conflicts are minimal, there isn't a lot of code in the fuel/fuel repo.
Comment by
WanWizard
May 2013
permalink
How to use the Auth_User model to create a sign up form with custom profile fields?
Fuel can do some automagic, but there are limits. There is no way the Fieldset can detect what else you would like to have in there, and you can't use the model's properties for that, because they are reserved for table colums. A property…
Comment by
WanWizard
May 2013
permalink
1.6 install issues.
If your origin is still set to github's fuel/fuel repository, you have a bit of an issue with regards to the changes you've made locally. a simple pull will work within the branch you're currently working in, but you can't switch…
Comment by
WanWizard
May 2013
permalink
Corresponding URI does not exist
Your application seems to have a custom Auth class called Auth_Acl_CustomAcl which generates this message.
Comment by
WanWizard
May 2013
permalink
1.6 install issues.
If you're using git, you can just pull in upstream 1.6/master (or 1.7/develop) of the fuel/fuel repo, which will update your local installation. After that you can update the submodules, and Fuel itself is up to date. This process hasn't c…
Comment by
WanWizard
May 2013
permalink
Corresponding URI does not exist
This debug line is generated by your own code (it's not generated by the Framework), so I don't think you'll find help here regarding this message.
Comment by
WanWizard
May 2013
permalink
Image upload and manipulation process
I assume this is because $file['extension'] contains ".tmp", which is something the Image class can't handle. Instead, use the mimetype information in the upload file array to determine if it's a png, gif or jpg, and p…
Comment by
WanWizard
May 2013
permalink
How to create a page and make a url link to it
What error? You haven't mentioned any error? You said you were confused to how it worked?
Comment by
WanWizard
May 2013
permalink
How to find the previous or next key in an array()
Here you go... // return the key or value before whatever is in $current public function previous($array, $current, $use_key = false) { // we'll return null if $current is the first in the array (there is no previous) $previous = null;…
Comment by
WanWizard
May 2013
permalink
How to create a page and make a url link to it
FuelPHP uses a mechanism called URI segment routing. It means that it will look at the segments of the URI (the path of the requested URL), and will map that to a controller action method. If for example your URL is http://example.org/try/this/out…
Comment by
WanWizard
May 2013
permalink
Unit Testing and Model Inheritance
I find this very odd. FuelPHP aliases all core classes to the global namespace (hence the use of the \ prefix everywhere), but the ORM package namespace isn't. So all I can think of is something in your code somewhere that does this. Do you h…
Comment by
WanWizard
May 2013
permalink
How to find the previous or next key in an array()
Are these arrays indexed or assoc?
Comment by
WanWizard
May 2013
permalink
Image upload and manipulation process
output() does what it says, it outputs the file to the browser. Which is probably not what you want, you probably want to call save() instead, see http://docs.fuelphp.com/classes/image.html#/method_save
Comment by
WanWizard
May 2013
permalink
How to find the previous or next key in an array()
There are currently no methods available in the Arr class to do this, so you'll have to code up your own method for doing this.
Comment by
WanWizard
May 2013
permalink
Image upload and manipulation process
When you upload a file using PHP, it will be stored in a temp location on disk after the upload. After you have called Upload::process() (if auto_process is false in your config, otherwise it happens automatically), you can call get_files() to get t…
Comment by
WanWizard
May 2013
permalink
How to use the Auth_User model to create a sign up form with custom profile fields?
What are "your custom profile fields"? Ormauth (since you mention the Auth_User model) doesn't use profile fields at all, it uses a separate metadata table to store user related information, which is accessed from the User object thr…
Comment by
WanWizard
May 2013
permalink
Redirecting to a new page in a new link.
I'm afraid I can't help you further on this, as it is Smarty specific, not FuelPHP specific. My Smarty knowledge is very rusty, but I can recall you either have to allow PHP in your templates to be able to call framework methods, or creat…
Comment by
WanWizard
May 2013
permalink
1.6 - Major issues with soft delete
For the query bit, an issue was already opened: https://github.com/fuel/orm/issues/256 For the belongs_to notice, the issue https://github.com/fuel/orm/issues/255 was fixed in 1.7/develop. You can backport fuel/packages/orm/classes/belongsto.php to…
Comment by
WanWizard
May 2013
permalink
Redirecting to a new page in a new link.
I think you need to understand the design concepts of a FuelPHP application. An application consists of Controllers, and each controller defines action methods. URI's map directly to controller actions, so a URI path like '/user/login…
Comment by
WanWizard
May 2013
permalink
1.6 install issues.
Very well spotted, I'll fix that. Fixed pushed to the 1.7/develop repository.
Comment by
WanWizard
May 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,475
Last Active
March 6
Roles
Administrator