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
mod_rewrite and rewritebase with port 8080
Rewritelog and Rewritelevel are (afaik) not supported in .htaccess, you need to put it in your virtualhost definition. I'll see if I can find the time tomorrow to replicate your situation...
Comment by
WanWizard
October 2011
permalink
I am little bit confuse about choosing Platform for my website
If you'll ask it here, the answer is probably going to be Fuel. I don't have any experience with Zend, but I do with Cake and Drupal. Both are very slow, bloated, and complicated. Drupal even more than Cake. Fuel is simple, well designed…
Comment by
WanWizard
October 2011
permalink
Config class question
There's a difference between \Config::load('simpleauth'); and \Config::load('simpleauth', true); The first one merges the config with the already loaded config, the second one creates a 'root' entry in the con…
Comment by
WanWizard
October 2011
permalink
mod_rewrite and rewritebase with port 8080
If Fuel is installed in the 'fuel' folder of your docroot, you'll need RewriteBase /fuel/public as the index.php is in the public directory. If that doesn't work, try something like RewriteRule ^(.*)$ %{HTTP_HO…
Comment by
WanWizard
October 2011
permalink
Question about application installer tools
There is no constraint on 'text'. You can not define a varchar without defining it's size.
Comment by
WanWizard
October 2011
permalink
Calling Classes via Variable
Well, if class_exists() returns false, it's clearly not loaded. If you do this, and it does exist (and can be found), the autoloader should load it and the debug should return true: \Debug::dump(class_exists($class)); Where (in what namespa…
Comment by
WanWizard
October 2011
permalink
Calling Classes via Variable
That is odd, as of PHP 5.3.0 you should be able to do that (see http://php.net/manual/en/language.oop5.static.php). What is the exact error you're getting? Are you it isn't something else, like for example a namespace issue? What does thi…
Comment by
WanWizard
October 2011
permalink
Question about application installer tools
Fuel doesn't load anything automatically (without you initiating something). When you use any DB method, it will connect to the selected database if no connection is present. That should not be a problem as you need a connection to a database …
Comment by
WanWizard
October 2011
permalink
Config class question
Did you load it first? \Config::load('simpleauth', true); This happens automatically when you load the simpleauth driver. If you do it manually, make sure the auth package is loaded.
Comment by
WanWizard
October 2011
permalink
Fuel Table Sort package
Thats why I wrote "the same issues as the pagination class". Ideally, you should be able to define that URI segment x is your page, and URI segment y the sort order. That way it doesn't matter what the URI looks like, and every contr…
Comment by
WanWizard
October 2011
permalink
Uri Class and HTTPS
If the entire application moves from http in dev to https in production, just modify your base_url in the config accordingly, and all URL's are generated with the correct scheme. I personally don't use a base_url, I define '/' a…
Comment by
WanWizard
October 2011
permalink
Explanation of ViewModels
The Viewmodel's view file (which by default has the same name) can be altered using the method set_view() in < 1.1, set_template() in older versions. You can use that inside your viewmodel, to load a different view. Views in Fuel don't…
Comment by
WanWizard
October 2011
permalink
Uri Class and HTTPS
What kind of URL? You can pass anything to Uri::create(): $url = \Uri::create('https://example.com/this/that');
Comment by
WanWizard
October 2011
permalink
Fuel Table Sort package
Looks like this might come in very handy! It suffers from the same issue as the pagination class though, in that the location of the control variables in the URI are hardcoded. So you run into issues when your URI has to be http://darklow.fuel.firs…
Comment by
WanWizard
October 2011
permalink
Captcha
It returns an image, so you can't just call it in your controller, you need to specify it in the href of an tag.
Comment by
WanWizard
February 2011
permalink
Explanation of ViewModels
In Fuel, from a controller point of view, you use a Viewmodel exactly the same way as a view. And for exactly the kind of reasons you mention. // load a view in your controller $view = \View::forge('this/that'); // load a viewmodel ins…
Comment by
WanWizard
October 2011
permalink
Multiple Database Connections
The database class provides a set of static methods to access the database, which all use the current instance, i.e. the one that is defined as active in your database config file. You can create a specific db instance using $db = \Database_Conne…
Comment by
WanWizard
October 2011
permalink
Parser Package with Caching - Cache
I think the Smarty view in the parser package is incomplete. It calls the fetch() method, with the variables as second parameter, which is not correct. With Smarty, you'll have to use the assign() method to pass variables to a template. Could …
Comment by
WanWizard
October 2011
permalink
Error on version 1.0.1 install
Yes.
Comment by
WanWizard
August 2011
permalink
Passing $_GET parameters in pagination url
I'm afraid it's not going to work like that. Fork the github fuel/core repository, make the 1.1/develop branch current, apply your modifications, and send a pull request. That allows us to quickly verify your changes, and merge them when …
Comment by
WanWizard
October 2011
permalink
DB Session class doesn't regenerate ID when adding to session
The session class rotates the session id by default every 300 seconds, this is configurable in the session config. The simpleauth driver in the Auth package rotates the session id after login or logout. If you have your own authentication system, y…
Comment by
WanWizard
October 2011
permalink
How to deploy in site root?
See http://fuelphp.com/docs/installation/instructions.html, "Install inside the document root".
Comment by
WanWizard
October 2011
permalink
[hmvc] Getting 404 while trying to access module.
I can not reproduce it. I've put this public function action_hmvc() { try { $this->response->body = Request::factory('test/admin/index/1/tid/1', false)->execute(); } catch (Request404Exception $e) { echo…
Comment by
WanWizard
October 2011
permalink
Passing $_GET parameters in pagination url
Can't be done without extending the pagination class. It expects the 'root' URL for your page, and just sticks the rest on to it, as you have discovered. I store filtering and sort order in the session. It keeps the URL's clean,…
Comment by
WanWizard
October 2011
permalink
[hmvc] Getting 404 while trying to access module.
Which version of Fuel are you using? The use of the 404 exception would suggest 1.1/develop, but that doesn't use $this->response->body anymore. Controller methods are expected to return there result.
Comment by
WanWizard
October 2011
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,371
Last Active
12:37AM
Roles
Administrator