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
Can I control role of users and permission using ormauth?
Read the docs: http://fuelphp.com/docs/packages/auth/ormauth/intro.html
Comment by
WanWizard
July 2015
permalink
Event class example
To run something on shutdown? Event::register('shutdown', 'Class::method');
Comment by
WanWizard
July 2015
permalink
Can I control role of users and permission using ormauth?
Sorry, I don't understand the question.
Comment by
WanWizard
July 2015
permalink
create new package from existing file
If it's small, just copy them into your APPPATH/bootstrap.php, at the bottom. Then they will be available in your app and in Oil. If you want to keep it a seperate file, place that file in APPPATH/vendor, and use "include" in your ap…
Comment by
WanWizard
July 2015
permalink
create new package from existing file
What do you mean by "package"? If these are global functions, and only a few small ones, you can add them to your APP bootstrap. If it's a large(r) file, place it in APPPATH/vendor, and include if from your APP bootstrap.
Comment by
WanWizard
July 2015
permalink
SQl Server
You might want to check https://github.com/fuel/core/pull/1873 It hasn't been tested (which is why the PR hasn't been accepted yet), mainly because we don't do Microsoft, and therefore no SQL server to test with. Perhaps you are in …
Comment by
WanWizard
July 2015
permalink
How i can validate Orm object?
That example is a copy of the way you do validation with Model_Crud, and copied to an ORM model. It works, it is interchangable with Model_Crud, but it is not integrated in the ORM model, it doesn't use the model properties, and you can't…
Comment by
WanWizard
July 2015
permalink
How i can validate Orm object?
If you use the validation observer, it will throw a ValidationFailed exception if the validation fails. The exception object has a get_fieldset() method which you can use to retrieve the fieldset that was generated for the model object. A fieldset…
Comment by
WanWizard
July 2015
permalink
Model not loading?
What is the exact setup, and the exact error, if any? If the model can be loaded, $things can never be undefined, it gets the return value of the find(), which is either null or an array of model records. If $things is really undefined (as in a PH…
Comment by
WanWizard
July 2015
permalink
Model not loading?
You should not use code in your views, views should contain only HTML, and simple php structures for display purposes only. If you need code, like in this case to retrieve additional data, use a Presenter. Views are only generated (executed if you…
Comment by
WanWizard
July 2015
permalink
File upload memory exhausted
With a 500 message I assume a 500 from the webserver? Check your php.ini file, by default file uploads are restricted to 2Mb in size (look for "upload_max_size").
Comment by
WanWizard
July 2015
permalink
Closure in version 1.7.3
Issue is fixed in 1.8/develop. If you can't switch to the 1.8/dev branch, download these files: view class: https://raw.githubusercontent.com/fuel/core/627441c5341e698b5dd6e8553dab3879f81794c3/classes/view.php presenter class: https://raw.gith…
Comment by
WanWizard
July 2015
permalink
Closure in version 1.7.3
Working on it. ;-)
Comment by
WanWizard
July 2015
permalink
Even page has changed,want to keep input value for search result pagination
Either store the search operation in session flash, and retrieve it at the next page load, or set the pagination URL including the search values as part of the query string.
Comment by
WanWizard
July 2015
permalink
accessing profile field in SimpleAUth
Is a user logged in? Auth methods operate on the current user only.
Comment by
WanWizard
July 2015
permalink
Closure in version 1.7.3
See the issue. We know the issue exists, we don't know yet how to solve it. Further information will be added to the issue.
Comment by
WanWizard
July 2015
permalink
accessing profile field in SimpleAUth
echo Auth::get('accounting', 'not set') would do fine?
Comment by
WanWizard
July 2015
permalink
Closure in version 1.7.3
See https://github.com/fuel/core/issues/1881
Comment by
WanWizard
July 2015
permalink
DB transaction and concurrent update
The way transactions behave, and which queries cause what kind of locking, is different for each RDBMS, and sometimes even between versions of the same RDBMS. Some for example do page locking instead of row locking (which depending on the size of a …
Comment by
WanWizard
July 2015
permalink
Export CSV file From Mysql Database
When you feed an ORM object into Format, it will iterate over all properties of the object, including related objects from the looks of it. And you can't str_replace() on an object. You could try converting the ORM records in $products to arra…
Comment by
WanWizard
July 2015
permalink
Email sending with cron jobs
No images?
Comment by
WanWizard
July 2015
permalink
Email sending with cron jobs
if you do "crontab -e", you create a cron entry for the user you are currently logged-in at. Does that user have (the correct) access to the fuel files?
Comment by
WanWizard
June 2015
permalink
Email sending with cron jobs
Which users crontab is that? It doesn't look like the system cron file, so you might have an issue with permissions.
Comment by
WanWizard
June 2015
permalink
Email sending with cron jobs
It looks like the file isn't there?
Comment by
WanWizard
June 2015
permalink
Print the current form
Printing a webpage is a client-side activity, not something you do in PHP on the server. See http://www.htmlgoodies.com/beyond/javascript/article.php/3471121 for some tips.
Comment by
WanWizard
June 2015
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,369
Last Active
7:27AM
Roles
Administrator