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
Rest Controller Format Request 404
It gets there because it still goes to the 404 page. How are you checking, using a browser? If so, the HTTP_ACCEPT from the browser header will override the json extension, if you want to skip that, you need to set "ignore_http_accept" to …
Comment by
WanWizard
July 2017
permalink
Rest Controller Format Request 404
Doesn't it display a trace log? The server also outputs what URL it is processing, and what files are returned. I've just tested "php oil server" on one of our apps (one that normally runs under nginx, picked randomly), and that …
Comment by
WanWizard
July 2017
permalink
Rest Controller Format Request 404
Don't use PHP's local server in that way, but use php oil server [help] in the root of your fuel installation (there where the oil script is). If you just load index.php, you miss the required functionality that is in .htaccess, which rewr…
Comment by
WanWizard
July 2017
permalink
Smarty extension
No worries. ;-)
Comment by
WanWizard
July 2017
permalink
FuelPHP and Varnish Cache
Can you explain what exactly the problem with Varnish is, which used in front of a FuelPHP site? It is a piece of cake to exclude the session cookie in the Varnish configuration. If that doesn't give the desired effect, and you are in the same …
Comment by
WanWizard
July 2017
permalink
How to set condition in creating relation
The problem here seems to be your lack of PHP knowledge. ;) You are using the function time() in a variable definition, and you are not allowed to, so that is the PHP syntax error you are getting. If you want define conditions based on runtime infor…
Comment by
WanWizard
July 2017
permalink
Smarty extension
The parser configuration requires a unique expension for every parser, and since .tpl was already used, we have to come up with another default for smarty. However, nobody is stopping you from overriding the config in your app. This should do it: re…
Comment by
WanWizard
July 2017
permalink
Routing
Cool. You're welcome. ;-)
Comment by
WanWizard
July 2017
permalink
Routing
State of the art? Or a necessity? If you (have to) modify core classes, you always have to do rework, and do extensive tests to make sure the update hasn't broken your product, whenever you upgrade the framework. Which takes time, and time == m…
Comment by
WanWizard
July 2017
permalink
Routing
In general, overrwiting framework code (in the fuel/core or fuel/packages directories) is a very bad idea, as your changes will be erased when you upgrade to a newer version. If needed, it is better to extend a core class, like you have done it, but…
Comment by
WanWizard
July 2017
permalink
Routing
What we do in our application framework is use a catch-all route, the last route defined in our route.php: ':any' => 'webengine/loader' // Catch-all this redirects any requests not routed to our loader controlle…
Comment by
WanWizard
July 2017
permalink
How to use the Facebook Graph SDK (2017)
Ok. Sorry I can't help you.
Comment by
WanWizard
July 2017
permalink
How to use the Facebook Graph SDK (2017)
I think you stand a better chance on another platform, like StackOverflow, since I feel this is more SDK related than Fuel related.
Comment by
WanWizard
July 2017
permalink
File::create_dir() getting Invalid basepath: cannot create directory at this location
If the console works, but the code doesn't, chances are you have a rigths issue, where you, as commandline user, are allowed to create it, but the webserver hasn't. You can see that in my console example above: the file is created with my …
Comment by
WanWizard
July 2017
permalink
How to use the Facebook Graph SDK (2017)
Assuming the redirect loop is caused by the redirect in your code, what is the Exception?
Comment by
WanWizard
July 2017
permalink
Auth check() returns false
That's quite old, and the question is if the issue you have is part of the Auth package, the Orm package, or part of the framework classes. Or part of your code. ;-) Not sure what PHP version you are using, but 1.7.2 isn't PHP 7 compatibl…
Comment by
WanWizard
June 2017
permalink
Auth check() returns false
Found an app that uses Ormauth, this is it's base controller: class Base extends \Controller{ /** * @var boolean whether or not we have an authenticated user */ protected $authenticated = null; /** * Controller initi…
Comment by
WanWizard
June 2017
permalink
Auth check() returns false
I've tested it in one of our applications, which uses Auth::check() in it's before() method: /** * Check for access to this controller */public function before(){ // only access for logged-in users\Config::load('simpleauth', t…
Comment by
WanWizard
June 2017
permalink
Alter table in custom query
I haven't tried it, but this should work: \DBUtil::modify_fields($table, array( 'fieldname' => array('name' => 'fieldname', 'after' => 'otherfield'),));
Comment by
WanWizard
June 2017
permalink
Auth check() returns false
Yes, As I told you earlier, the Auth code loads the config file like so: \Config::load('ormauth', true); which means that if that config file wasn't loaded yet, it will load it, and overwrite whatever is currently in memory. So your d…
Comment by
WanWizard
June 2017
permalink
Alter table in custom query
An example: // add a database name column to support multiple clusters\DBUtil::add_fields('licensing_servers', array( 'database_name' => array( 'type' => 'varchar', 'constraint'…
Comment by
WanWizard
June 2017
permalink
File::create_dir() getting Invalid basepath: cannot create directory at this location
Perhaps it is related to your Fuel version, and you've bumped into an issue that has since been fixed?
Comment by
WanWizard
June 2017
permalink
File::create_dir() getting Invalid basepath: cannot create directory at this location
I can't reproduce it: [wanwizard@catwoman] $ oil consoleFuel 1.9-dev - PHP 7.0.20 (cli) (Jun 7 2017 04:59:03) [Linux]>>> $id = "testdir";>>> \File::create_dir(APPPATH.'tmp/',$id,0777); true>>> ^C …
Comment by
WanWizard
June 2017
permalink
File::create_dir() getting Invalid basepath: cannot create directory at this location
I don't think that trailing slash should be there.
Comment by
WanWizard
June 2017
permalink
Auth check() returns false
Again to double check: You present the user with a login form in which the user enters a username, password, and selects a database? When the user submits the form, you change db.active to the selected database, and call Auth::login(). The user logs…
Comment by
WanWizard
June 2017
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
9:34AM
Roles
Administrator