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
Dompdf problem
Looks like the mimetype isn't properly set on the downloaded file. I've never used dompdf, so I can't help you. Maybe someone else can?
Comment by
WanWizard
October 2012
permalink
Session::key('session_id') returns false first time it is called
That is an option. Just create a Session_Yourdriver in app/classes/session/yourdriver.php, add it to the app bootstrap, and you can define 'yourdriver' as the session driver to use. If you make sure it extends \Session_Driver and implemen…
Comment by
WanWizard
October 2012
permalink
How to improve FuelPHP world.
Wonderful! First hurdle will probably be to upgrade it to 1.4/develop, haven't even had time for that. I can see if I can do that later today so you don't have to.
Comment by
WanWizard
October 2012
permalink
Session::key('session_id') returns false first time it is called
You don't want the session cookie being send in the response header? Ever? Sending the session ID back and forth in plain text is ihmo a bad idea from a security point of view, it isn't encrypted for nothing. And server side you can'…
Comment by
WanWizard
October 2012
permalink
My HMVC request gets converted to string
execute() on a Request object results in a Response object returned. The objects contents (the return value of the HMVC call) will be converted to string by the Response objects __toString() method as soon as you try to echo it out. Normally you wa…
Comment by
WanWizard
October 2012
permalink
Session::key('session_id') returns false first time it is called
Sorry, I missed the second part of the question. If you use the Session class, the cookie will be set, otherwise you can't maintain the session. Why do you want to stop that?
Comment by
WanWizard
October 2012
permalink
how to create the PBKDF2 hash of a password using pure php only?
The Auth driver uses pbkdf2($password, \Config::get('auth.salt'), 10000, 32, 'sha256')); So you also need the configured password salt.
Comment by
WanWizard
October 2012
permalink
simplegroup - getting group id from group name?
That this works is a by-product of the __callStatic() method in the Auth class, in combination with the fact that you only have one group driver loaded. Having said that, we are absolutely aware that the docs can be improved. If you see something i…
Comment by
WanWizard
March 2012
permalink
Session::key('session_id') returns false first time it is called
*** moved to General, this is not an installation question *** The session is only created on write, which happens in the shutdown event. So this is by design, but I understand in this case not desirable. Can you create an issue for this at http://…
Comment by
WanWizard
October 2012
permalink
How to improve FuelPHP world.
It is in the planning to make that part of Depot, but other then the menu entry and the module folder nothing has been made yet. We had a nearly finished application about a year ago called Cells, we're going to use bits of that for the new si…
Comment by
WanWizard
October 2012
permalink
How to improve FuelPHP world.
We're working on the forum issue. It requires moving away from Pagodabox, and converting the current data to a new format. Give us a few more weeks. As for the rest, we're working on an application ( called "Fuel Depot" ) that w…
Comment by
WanWizard
October 2012
permalink
routing htaccess issue (with javascript)
If I load http://scripttesting.com/mindmapping/home with firebug open, the logs fills rapidly with messages like "NetworkError: 404 Not Found -
Comment by
WanWizard
October 2012
permalink
for why in fuelphp double backslash in bootstrap?
In PHP strings, the backslash is an escape character, so you need to use two backslashes of you want to use a backslash in your string. Now officially you only have to do this with strings in double quotes, and not for strings in single quotes. How…
Comment by
WanWizard
October 2012
permalink
routing htaccess issue (with javascript)
I understand that. But I'm not a psychic, I don't know what it's supposed to do, and what is "intended". Can you post your view and javascript code on http://scrp.at and tell us what it should do?
Comment by
WanWizard
October 2012
permalink
routing htaccess issue (with javascript)
FuelPHP doesn't do anything with javascript. So what is exactly the problem? Is your .js file not loaded? Is it loaded but it doesn't do what it should? What's in your view?
Comment by
WanWizard
October 2012
permalink
routing htaccess issue (with javascript)
Have you updated your config.php? Set your "base_url" to null, and "index_file" to false if you have a standard install and use a rewrite rule to remove your index.php from the URI.
Comment by
WanWizard
October 2012
permalink
Can't
That exception means the file can't be found on disk. Assuming you uploaded everything, did you develop on Windows, and your new host is a linux machine? If so, do you have filename case issues? A Linux filesystem is case sensitive, so "K…
Comment by
WanWizard
October 2012
permalink
ORM Cascade Delete - Primary Key error
The only rule when it comes to keys and relations is that you can not have a table in which the primary key is also the foreign key. Which in a one-to-many that is never a problem, since your foreign key is not unique, and therefore can not be the …
Comment by
WanWizard
October 2012
permalink
FuelPHP-s learning curve compared to CodeIgniter
The 2.0 kernel and core packages are usable, but nothing other then that exists publicly today. So if you want to use that you'll have to find a lot of 3rd-party components to be able to make an application.
Comment by
WanWizard
October 2012
permalink
ORM get format
The ORM's get() returns an array of Model objects. In case of numeric PK's, the array index is equal to the PK, which allows you to access results directly on PK value without looping over the result array. This is intentional and by desi…
Comment by
WanWizard
October 2012
permalink
need help in installation/deployment: error throw new \Database_Exception('No MySQLi Connection', 0)
I'm not sure there is any performance impact. mysql is based on old driver technology, and deprecated by PHP. So we default on mysqli. Also if you are using PDO, you will use the underlying mysqli driver. Looks like your host has a crappy PHP …
Comment by
WanWizard
October 2012
permalink
Calling Classes In Namespace
Your file is in app/classes. It therefore can NOT have a namespace. If you want the class in app, AND you want the namespace, it should be // namespaces uses backslashes, check the PHP documentation $val = new \Classname\Myhtml(); // both namespa…
Comment by
WanWizard
October 2012
permalink
Calling Classes In Namespace
You haven't read the documentation on how namespaces and classnames work, and how the autoloader interacts with it. For the application, app/classes is the classes root. So classes in there are defined in the global namespace, and without a pr…
Comment by
WanWizard
October 2012
permalink
FuelPHP - CodeIgniter Upload Class adapted
No problem, it's a way for us to see how we can improve the framework. This discussion has made me start to think about how to change the Upload class to make it easier to deal with multiple uploads which require different treatment. If you go…
Comment by
WanWizard
October 2012
permalink
ViewModel not work
A viewmodel is a class and should therefore go in app/classes/view. If something doesn't work as expected, tell us what you have done, what you expected, what the error message was. We can't do much with "it doesnt work"...
Comment by
WanWizard
October 2012
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
3:49AM
Roles
Administrator