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
8243
Activity
Running Oil on Dreamhost
If you run 'oil -v', it will tell you which environment is used.
Comment by
WanWizard
February 2013
permalink
Need to implement PHPSpellChecker with FuelPHP...
In a standard FuelPHP installation all code is outside the DOCROOT (for security reasons), client-side files (js, css, images, etc) can not be stored with the code, they have to be in the public folder. So either move the js files (to for example /…
Comment by
WanWizard
February 2013
permalink
Using FuelPHP with PHP 5.2.6
Not going to work. FuelPHP requires PHP 5.3.3+. It relies heavily on namespaces and late static binding, which is not available before 5.3. Your IT department is aware of the fact that PHP 5.2 was declared end of life 771 days ago? And that …
Comment by
WanWizard
February 2013
permalink
(Close) Beginner Questions
Most be something in your local configuration. Since you're using 'development', and that is the default for Oil, that should not be the issue too. Just to check, if you change the config to this, will it work? return array( …
Comment by
WanWizard
February 2013
permalink
Running Oil on Dreamhost
Ah, you didn't mention an environment change. ;-)
Comment by
WanWizard
February 2013
permalink
(Close) Beginner Questions
And you have a MySQL server running on 127.0.0.1? With a defined database called 'db'?
Comment by
WanWizard
February 2013
permalink
Running Oil on Dreamhost
Since it's a dedicated server: is MySQL actually installed and running? And if so, is the socket file actually in /var/run/mysqld/mysqld.sock (check your /etc/my.cnf)?
Comment by
WanWizard
February 2013
permalink
Running Oil on Dreamhost
run /usr/local/php53/bin/php -v to check if it's really php-cli that is used. After that, check which php.ini it uses. Some setups use a non-standard location for the php.ini file used by the webserver, which means the commandline version lo…
Comment by
WanWizard
February 2013
permalink
Beginner Questions
The error means that the dsn in your app/config//db.php doesn't have the correct syntax.
Comment by
WanWizard
February 2013
permalink
Need to implement PHPSpellChecker with FuelPHP...
Copy it to app/vendor, and run the include as stated in the documentation?
Comment by
WanWizard
February 2013
permalink
Auto AES_ENCRYPT() and AES_DECRYPT solution?
I don't see an immediate solution for this, other then to write a specific model/query combo for it that would deal with it.
Comment by
WanWizard
February 2013
permalink
Breaking relation with belongs_to
ORM can only break relations if it knows they exist. Your find() doesn't fetch the relation, so there is nothing to delete. In your second example, you trigger lazy loading of the related object, after which the ORM knows the relation, and ca…
Comment by
WanWizard
February 2013
permalink
about theme in fuelphp
Glad you've found the issue. You worry about conflicts with app views? I've actually never thought of that, I don't have (user accessable) controllers in my app, so I've never bumped into that issue. I've just commited t…
Comment by
WanWizard
February 2013
permalink
about theme in fuelphp
Hmm, weird, I use it exactly like you, using 'main/index', and use_modules = true. Perhaps it's time for some debugging to figure out where it goes wrong. Theme has a method called find_file() which does all the forensic work, figuri…
Comment by
WanWizard
February 2013
permalink
about theme in fuelphp
But Controller_Main is the one called from the URL (like http://yourhost/main/main/method)? Or is it called some other way?
Comment by
WanWizard
February 2013
permalink
Accents problem in view
This works for me, for an application that imports a lot of CSV files (with accented characters) on a daily basis, that are made with Excel.
Comment by
WanWizard
February 2013
permalink
Module : problem with default view path using Twig
So, in a module controller you have something like View::forge('viewname'), and that works, and when you change it to View::forge('viewname.twig') it no longer does? Which version of Fuel, and which version of Twig? I understand…
Comment by
WanWizard
February 2013
permalink
Custom Error Instead of OOPS!
It's an exception, so put the operation in a try/catch block, catch the exception, and do whatever you want with it. And if you want to redesign the pages, they are views in fuel/core/views/errors. You can copy them to app/views/errors, and c…
Comment by
WanWizard
February 2013
permalink
ORM multiple updates
This is programming, so everything is possible. ;-) Whether or not is makes sense to make it is another question. An ORM is simply not meant or designed for batch or bulk operations.
Comment by
WanWizard
February 2013
permalink
Using oil to generate admin-panel problem
The redirect issue was fixed a few days ago, in 1.6/develop: https://github.com/fuel/oil/commit/1b334d1160736846fe7a3bdc4e3ca5e9fb1abb16
Comment by
WanWizard
February 2013
permalink
Module Model Not Found
It's not really best practice to create such a dependency between modules (or app and a module). But if you want to do that: is the module loaded? If not, the autoloader doesn't know where to find the namespace.
Comment by
WanWizard
February 2013
permalink
Accents problem in view
What a long and very complicated set of instructions. ;-) This will do the trick quite nicely: // read the file $data = \File::read($file['file'], true); // convert it to UTF-8 if it's a windows upload …
Comment by
WanWizard
February 2013
permalink
Exception thrown without a stack frame in Unknown on line 0
1.5.2. has been released in the meantime to fix this problem.
Comment by
WanWizard
February 2013
permalink
about theme in fuelphp
Have you enabled "use_modules" in the theme config? It is required to have the Theme class prefix the view path with the module name, so to change "main/index" to "main/main/index". Note that this will not work if you …
Comment by
WanWizard
February 2013
permalink
Access View from inside View
The best practice answer is: if your view requires variables, make sure you pass them. If your view has optional variables, use isset() before you access them. if you need a global function to do isset($var) ? $var : 'default' the best …
Comment by
WanWizard
February 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,391
Last Active
6:50AM
Roles
Administrator