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
Mysql snapshot on button click
If you need to dump (and possibly restore) in PHP code, you might want to look at an old project of mine that has a similar feature: https://github.com/ExiteCMS/ExiteCMS7/blob/master/administration/db_backup.php Note that this code originated in PHP…
Comment by
WanWizard
September 2018
permalink
PHP OOP novice question in fuel
Yes, PSR-4 is fully supported in 1.8, but you do need to change "controller_prefix" in your config to /** * Controller class prefix */ 'controller_prefix' => 'Controller\\', We've been using this in our apps sin…
Comment by
WanWizard
September 2018
permalink
PHP OOP novice question in fuel
We don't have non-protected/private methods in controllers, or in other words, all non-action methods in a controller are support methods for actions in that same controller. For shared methods, we either use separate helper classes, usually wi…
Comment by
WanWizard
September 2018
permalink
Mysql snapshot on button click
So a snapshot is a file with SQL commands? Like a PHPMyAdmin export? If you have cron access to that server, it's probably easier to schedule a nightly "mysqldump", so that file can be downloaded, instead of trying to generate a SQL d…
Comment by
WanWizard
September 2018
permalink
Mysql snapshot on button click
I can't comment on why you get a 404, you'll have to debug that. As to downloading a database snapshots, that is a very ambiguous task. What is the purpose of this download, what will happen with the data after the download? In which forma…
Comment by
WanWizard
September 2018
permalink
Login driver.....
No problem, that is what a support forum is for.
Comment by
WanWizard
September 2018
permalink
Hosting Fuelphp without accessing public
If you can't define your Documentroot, there are a few options: Some hosters give you diskspace with a "html" or so folder in the root which is the DocumentRoot. In that case, rename ./public to ./html and you're good to go. If t…
Comment by
WanWizard
September 2018
permalink
Login driver.....
Normally you would do that with roles (or groups), and determine that what which user can access what within the application. So you could create a group "snapshot" and members of that group have access to the snapshot data, and another g…
Comment by
WanWizard
September 2018
permalink
Login driver.....
I am still puzzled to what you want to achieve. Fuel has an authentication package called Auth. It comes with two systems, Simpleauth, which uses a users table and simple config files files for groups and rights, and Ormauth, which uses the ORM and …
Comment by
WanWizard
September 2018
permalink
Login driver.....
The login driver is a class, it is totally unrelated to a page?
Comment by
WanWizard
September 2018
permalink
Notice: Undefined variable
As long as you're in control of the server, and you can enable short tags in the php.ini. Because it is disabled by default in a lot of cases.
Comment by
WanWizard
September 2018
permalink
Notice: Undefined variable
You have to be careful with those, some consider short tags "evil", and quite a few hosting companies have them disabled.
Comment by
WanWizard
September 2018
permalink
Email issues
Google uses TLS encryption, but I doubt they use an invalid or self-signed certificate. Rather, I think you have an issue with your server not being able to verify the certificate.In which case disabling "verify peer" should work fine. In…
Comment by
WanWizard
September 2018
permalink
Class Image Missing extension() method?
p.s. the online docs are for the current release version, which is 1.8.1 at the moment. Code changes happen in the develop branch, the docs for develop can be found here: https://fuelphp.com/dev-docs/
Comment by
WanWizard
September 2018
permalink
Class Image Missing extension() method?
Not an oversight, the docs state it is not available with a static interface. As to the why, no idea, the Image class was largely a contribution. It seems the only method in the docs that has no static equivalent, so I agree with you this is an over…
Comment by
WanWizard
September 2018
permalink
Email issues
Odd, no response after sending the email (the dot command means end-of-data). What smtp server are you communicating with? Is the line-end ( \n vs \r\n ) set correctly for that mailserver?
Comment by
WanWizard
September 2018
permalink
Email issues
If you need to do that, the mailserver you connect to had either an invalid or a self-signed SSL certificate. Usually not a good idea. ;) Can you try and see if this fixes it? https://bin.fuelphp.com/snippet/view/OA If so, I'll add this as conf…
Comment by
WanWizard
September 2018
permalink
Email issues
That usually happens when the remote closes the connection, so fputs() tries to write to a connection that is no longer there. You need to debug to figure out what is causing it, could be anything from a problem with the mailserver to using \r\n whi…
Comment by
WanWizard
August 2018
permalink
cache
You're mixing two concepts: the ORM object cache, and a data cache. The ORM by defaults caches all results (all model objects) in memory by primary key, so that if you fire two queries that have the same record in the result set, the same model…
Comment by
WanWizard
August 2018
permalink
Advice about DB Localization
No, there is only one __event_after_load call: https://github.com/fuel/orm/blob/1.9/develop/classes/model.php#L944
Comment by
WanWizard
August 2018
permalink
Advice about DB Localization
What do you mean? What exactly do you want to do (functionally)? The event is just triggered once, after the record is loaded.
Comment by
WanWizard
August 2018
permalink
Advice about DB Localization
It needs Observer_Self to run observer events in the model class itself.
Comment by
WanWizard
August 2018
permalink
Running fuel on localhost
Yes, the web.config file in the document root (which normally is your public folder) contains the IIS rewrite instructions. config in general doesn't need any changes unless you're doing very weird stuff...;) If you have a setup where publ…
Comment by
WanWizard
August 2018
permalink
Advice about DB Localization
My 2ct's: That depends who is in charge of the localisation. If that is the developer, and the localisation strings are static, I would use lang files, the default in Fuel. If the localisation strings are dynamic and edited by the user of the a…
Comment by
WanWizard
August 2018
permalink
Running fuel on localhost
IIS doesn't use .htaccess, that is a file for Apache. IIS uses the web.config file, a default one is included but you'll have to modify it for your specific setup to make the rewrites work.
Comment by
WanWizard
August 2018
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,365
Last Active
April 26
Roles
Administrator