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
Template name having double dots causes problem in v1.7.3
This was the commit that broke it: https://github.com/fuel/core/commit/2c8b0ee0bd7c56b9dbad18b209e008d271334ed3 It revealed a bug that has been present in the parser all along, which does not support the double dots. I've pushed the fix, you …
Comment by
WanWizard
February 2016
permalink
Template name having double dots causes problem in v1.7.3
Ah, wait, sorry, my bad. When you do use $view = \View::forge('example.html.smarty'); what is the exact error message you get? On what line?
Comment by
WanWizard
February 2016
permalink
Template name having double dots causes problem in v1.7.3
Use something else than a dot. For Views, a dot translates to a directory, so "example.html.smarty" will attempt to load "/views/example/html.smarty".
Comment by
WanWizard
February 2016
permalink
Use Jade Template on FuelPHP
Added support, but no opportunity to test it: https://github.com/fuel/parser/commit/25950948372bea5101f9ab13932e7432903d552f Could you have a look and report back? Note that Talesoft's Jade is PHP 5.5+.
Comment by
WanWizard
February 2016
permalink
Use Jade Template on FuelPHP
Ok. I'll switch the parser package over to this Jade implementation. Will take a day or two.
Comment by
WanWizard
February 2016
permalink
Use Jade Template on FuelPHP
That package is a Laravel package, I don't think you should install that one. And since the original is no longer maintained, that isn't an option either. I'm not familiar with Jade, but this looks promissing: https://github.com/Tale…
Comment by
WanWizard
February 2016
permalink
Use Jade Template on FuelPHP
If you use the packagist package, it will be installed in a different location. I can see if I can adapt the parser.
Comment by
WanWizard
February 2016
permalink
Use Jade Template on FuelPHP
How did you install it? And where? The default config expects a manual installation in ./fuel/app/vendor/Jade (case sentitive on *nix). The repo still has the "autoload.php.dist" file in the root of the repo, so if you just cloned the r…
Comment by
WanWizard
February 2016
permalink
Table is read only
This error is usually caused by an issue with the file permissions. It can also happen if your table is corrupt, for example when you copy database files while MySQL is still running. Either way, it is not a Fuel issue, it is a problem with your da…
Comment by
WanWizard
February 2016
permalink
Table is read only
Can you be more specific? What code? Any error messages?
Comment by
WanWizard
February 2016
permalink
CSRF problem
You use Security::generate_token(), which just generates a random token. It doesn't have anything to do with csrf checking. You need to use Security::fetch_token() instead.
Comment by
WanWizard
February 2016
permalink
CSRF problem
Did you configure that fieldname in the config? Because by default the field name is "fuel_csrf_token".
Comment by
WanWizard
February 2016
permalink
CSRF problem
You are sure $_POST contains the hidden csrf token field? And you are not checking manually as well (because that will invalidate the token)? Having multiple windows with forms open? You can use http://docs.fuelphp.com/classes/security.html#/method…
Comment by
WanWizard
February 2016
permalink
Are there any examples of sqlite use in fuelphp?
I've been working to separate everything, which is done in 1.8/develop. It has a separate schema class per driver, which DBUtil uses for platform specific SQL. But as I wrote I haven't gotten around to doing SQLite yet.
Comment by
WanWizard
February 2016
permalink
Improving Documentation
When it comes to Models there are three options: - use ORM - use Model Crud (which uses direct db calls) - code your own model The first two are supported by scaffolding, you can use a commandline switch to indicate which one you want to use. If …
Comment by
WanWizard
February 2016
permalink
Are there any examples of sqlite use in fuelphp?
DB should work through PDO, DButil is being worked on, but is not optimized for SQLite yet.
Comment by
WanWizard
February 2016
permalink
Debugging Config
If you haven't set anything, by default a Fuel application runs in the "development" environment. You should use this, or any other non-production environment, while developing the app, as production mode doesn't display any erro…
Comment by
WanWizard
February 2016
permalink
Creating New Propert from Observer
The observer is passed the object instance, so you can do that without problems. For that you need to define properties in your model class definition, the ORM model has support for custom (= non database) properties.
Comment by
WanWizard
February 2016
permalink
Improving Documentation
The problem with documentation is always that you need: a) a lot of time b) to be able to look at it as an outsider We used to have someone in charge of documentation, but he left the team. The two main developers both have (had) health issues, so …
Comment by
WanWizard
February 2016
permalink
php oil refine robots
If looks like you have a version issue somewhere. Have you (recently) updated the core, but not the index.php and the oil script? Of forgot to run composer to update?
Comment by
WanWizard
February 2016
permalink
Virtual Host Setup
Thanks for reporting. I've added a section on URL rewriting, with an explicit note about the global config. https://github.com/fuel/docs/commit/dc36e161ca053a0123e2cdd3b0c760b47920bc30
Comment by
WanWizard
February 2016
permalink
There is no security.output_filter defined in your application config file
Ok, So you didn't have the file_exists() before? Ok, I think I've got enough to reproduce it.
Comment by
WanWizard
February 2016
permalink
Create hierarchical url paths with Nested sets
You can set the variable "title_field" in your tree configuration, to define which column is used to build the path.
Comment by
WanWizard
February 2016
permalink
Fuelphp + Nginx on windows
Afaik nginx doesn't use the .htaccess file?
Comment by
WanWizard
February 2016
permalink
There is no security.output_filter defined in your application config file
How did you exactly cause the error? You had something in your app bootstrap.php that caused a PHP, before Fuel::init() was called? If we know how to reproduce it, we can address it. I've never had this issue in the 6 years I work with Fuel,…
Comment by
WanWizard
February 2016
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
4:14AM
Roles
Administrator