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
How to organize semantic urls for dynamics pages?
I'm not really the person to anwer. Our apps don't use routing (as in the route config) at all. we only have one :any route to our front controller, which assembles the page using different sections via a database lookup. So it is a view…
Comment by
WanWizard
February 2019
permalink
Migration advice
;-) You're welcome.
Comment by
WanWizard
January 2019
permalink
Migration advice
I don't see why you can't do that, we create records all the time in migrations. Indeed, using Models might be a challenge, we always use direct DB calls to avoid issues like that.
Comment by
WanWizard
January 2019
permalink
Migration advice
You are talking about a new application against an already created database? Have you checked what happens? My guess would be nothing, if there is no migration config file, but the database has a migration table, the config file will be synced with…
Comment by
WanWizard
January 2019
permalink
Migration advice
Not sure I understand what you mean. Your entire database should be created by migrations, migrations should be incremental and reversable. So if you deploy your code and run all migrations, the database schema is at the version the code expects. Wh…
Comment by
WanWizard
January 2019
permalink
Oil - setting the env variable
Ah, yeah, if you remove the original code, it no longer works. ;-) Glad to hear you've got it sorted.
Comment by
WanWizard
January 2019
permalink
Oil - setting the env variable
I'm on Fedora and Centos 7.5, and I can't reproduce your issue: /data/www/fuelphp/1.8/master (1.8/master)[wanwizard@catwoman] $ env FUEL_ENV=test php oil -vFuel: 1.8.1 running in "test" mode You can also use it without "env…
Comment by
WanWizard
January 2019
permalink
Oil - setting the env variable
What OS?
Comment by
WanWizard
January 2019
permalink
Using multi-tree nestedset with string tree id
Ok. I've commited it like this. Thanks for the feedback.
Comment by
WanWizard
January 2019
permalink
Using multi-tree nestedset with string tree id
This would even be better: // multi-root tree?if ( ! is_null($tree_field)){ // and no new tree id defined? if (empty($this->{$tree_field})) { // check if there is a tree-id set if (is_null($this->_current_tree_id)) …
Comment by
WanWizard
January 2019
permalink
Using multi-tree nestedset with string tree id
Things are slowly coming back to me. The idea behind the setter/getter is that you could set a tree id that would only be used for when you create a new tree (top-of-tree node), or when you need to get a new top-of-free. It should not set the models…
Comment by
WanWizard
January 2019
permalink
Using multi-tree nestedset with string tree id
The tree id of a new tree is, as you found, generated in: // multi-root tree? And no new tree id defined?if ( ! is_null($tree_field) and empty($this->{$tree_field})){ // get the next free tree id, and hope it's numeric... $this->_da…
Comment by
WanWizard
January 2019
permalink
Nested set and relations
;-) These things happen...
Comment by
WanWizard
January 2019
permalink
Nested set and relations
You don't have to define a primary key in your model. If you don't, the ORM assumes your primary key is a column called "id". If your table doesn't have that, you'll get an error. All those code snippets on that page ca…
Comment by
WanWizard
January 2019
permalink
Crypt keys when using Smarty
Works fine here. As I said, for some reason your app gets an existing session cookie, which is encrytped with old keys, from the browser. This is indicated by the fact that if you add the old keys (which you have from somewhere), the problem goes aw…
Comment by
WanWizard
January 2019
permalink
Crypt keys when using Smarty
I'll try to reproduce it.
Comment by
WanWizard
January 2019
permalink
Crypt keys when using Smarty
There may be a race condition in the code, that can trigger this exception when Crypt::decode() is called without any value (i.e. empty string). as a test, if you add this to the top of legacy_decode(), is your problem fixed? if (empty($value)){ …
Comment by
WanWizard
January 2019
permalink
Crypt keys when using Smarty
What Fuel core version has composer installed?
Comment by
WanWizard
January 2019
permalink
Crypt keys when using Smarty
So you have session data somewhere that was encrypted with keys you don't have in your crypt.php config file. Like I wrote, if you use existing encrypted data, make sure your crypt config has the correct keys for that data.
Comment by
WanWizard
January 2019
permalink
Crypt keys when using Smarty
The crypt.php config file is generated, if it doesn't exist, when you use the Crypt class. It is unrelated to Smarty or anything else, it is a standard framework feature. And Crypt uses symmetric encription, you need the keys to be able to decr…
Comment by
WanWizard
January 2019
permalink
mssql driver
I didn't say that, I only said that we don't have the infrastructure and the people to work on Windows specific solutions. As an open source framework, it is open to everyone to contribute improvements, additions or new features, with the …
Comment by
WanWizard
January 2019
permalink
Bootstrap autoloader issue in production
In the correct codebase, logger() calls \Log::write() which forces the load from the global namespace, and not from \Fuel\Core. The first time you use a class, it will call our autoloader (assuming you have nothing special), that will check if the …
Comment by
WanWizard
January 2019
permalink
Bootstrap autoloader issue in production
I can imagine. It's been on my mind all afternoon, but I can't think of any reason why this should happen. Your other overloaded classes work fine? You can try writing the arguments to Autoloader::load_class() to a file (without using Log…
Comment by
WanWizard
January 2019
permalink
Bootstrap autoloader issue in production
You have to be careful with Reflection that it doesn't influence the execution path. Most likely, your test code triggered an autoload of the class file, and as autoloading isn't broken, it showed the correct info, as did your manual incl…
Comment by
WanWizard
January 2019
permalink
Bootstrap autoloader issue in production
Autoloader::init_class() does a "include", which doesn't generate an error when the file can't be loaded. It can't use a "require" because loading a file at that point is optional. You might have to debug this meth…
Comment by
WanWizard
January 2019
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
7:38AM
Roles
Administrator