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
Extending Controllers & Routing
Just out of curiosity: why would you want to extend those classes?
Comment by
WanWizard
June 2016
permalink
Fatal error: Uncaught Error: Class 'PHPSecLib\Crypt_AES' not found on Heroku
It is released. It installs automatically when you are already on 1.8. What I don't understand: It says "Fuel\Core\Crypt_AES" not found. The class isn't in that namespace at all, it is in the "PHPSecLib" namespace. Th…
Comment by
WanWizard
June 2016
permalink
Extending Controllers & Routing
It's not really that much work I think, the biggest job is to figure out where to move the files to, and renaming them (which changes the namespace and classname). Even for a sizable application that should be doable in a day i'd say.
Comment by
WanWizard
June 2016
permalink
Extending Controllers & Routing
The short answer: you can't. A Fuel app is a Fuel app, there is no way you can sub-divide it, for what you want to achieve, your architecture is wrong. You should create the following folder structure: - sitea - app - public - ... - site…
Comment by
WanWizard
June 2016
permalink
Select and sort by count(children), Orm or DB
Don't think you can. The aliases are generated to make easy hydration possible. The code maintains a columnname-to-alias list so it can convert columnnames in things like where(), but the DB::expr() doesn't have a column name. If you in…
Comment by
WanWizard
June 2016
permalink
sql server PDO
It's just SQL, so this should do it: $result = DB::query("EXEC dbo.someProcedure @var=123", DB::SELECT);
Comment by
WanWizard
June 2016
permalink
Select and sort by count(children), Orm or DB
That doesn't address the count sort order. ORM queries support select() and order_by(), perhaps just use atabak's query as the basis and add both? I don't know if the ORM supports DB::expr(), never done it myself.
Comment by
WanWizard
June 2016
permalink
Unit Test
If with parameters you mean GET or POST variables, then yes, due to the static nature of the Input class, there is only one global instance. So you can't use Request::forge() for this. Input::json() directly reads from php://input, so that can&…
Comment by
WanWizard
June 2016
permalink
can I install FUelPHP in sub-URI
If your htaccess is ignored, check http://smartwebdeveloper.com/apache/htaccess-problems for possible solutions. On any modern apache installation, it's probably the AllowOverride that isn't correct.
Comment by
WanWizard
June 2016
permalink
Segmentation Fault on insert after updating to 1.8.
No clue, segfaults are notoriously hard to debug without the proper low-level tools. If you were using the mysql driver before, you might want to try the mysqli driver, as a workaround.
Comment by
WanWizard
June 2016
permalink
sql server PDO
You might want to check out http://fuelphp.com/forums/discussion/comment/20461 which has a discussion on how custom drivers work (it is about Informix, but the same applies for MSSQL).
Comment by
WanWizard
June 2016
permalink
sql server PDO
The current PDO driver is a generic driver that only provides support for ANSI SQL. Unfortunately, MS-SQL is different. Fuel 1.8+ has a "sqlsrv" driver that should allow you to connect and use the list_tables() and list_columns() function…
Comment by
WanWizard
June 2016
permalink
Unit Test
Due to the static nature of the current framework version, it is very difficult to unit test, as you can't really mock a lot of components. The best thing you can do is adopt a thin controller - fat model design, and make sure your model metho…
Comment by
WanWizard
June 2016
permalink
Fatal error: Uncaught Error: Class 'PHPSecLib\Crypt_AES' not found on Heroku
Hotfix has been released. If you're on 1.8, a "composer update" should install it automatically. Note that there is also an update of the public/index.php file. Depending on how you have constructed your local environment, it might n…
Comment by
WanWizard
June 2016
permalink
Extending Existing Auth Driver, Config
The Auth framework supports multiple concurrent login drivers, this is for example used if you want to use a corporate Active Directory driver first, but want local users as fallback, for example because not all users are corporate users. When you …
Comment by
WanWizard
June 2016
permalink
Debug class error in 1.8
You're welcome. Thanks for reporting the issue.
Comment by
WanWizard
June 2016
permalink
Debug class error in 1.8
Fixed: https://github.com/fuel/core/commit/4ab25139b769a6438b7e77c3457f953b1f6b3d08 Fix will be part of the 1.8.0.1 hotfix due in the next few days.
Comment by
WanWizard
June 2016
permalink
Debug class error in 1.8
Forget it, found the problem, it's in the "overload_var_dump" value. The docs state "Before Xdebug 2.4, the default value of this setting was 1." which is what the code uses.
Comment by
WanWizard
June 2016
permalink
Debug class error in 1.8
What does var_dump(ini_get('html_errors')); return? And could you paste all results here: http://bin.fuelphp.com, because the Debug class parses the output and the forum has a way of mangling it when you paste it.
Comment by
WanWizard
June 2016
permalink
Fatal error: Uncaught Error: Class 'PHPSecLib\Crypt_AES' not found on Heroku
Probably best to wait a few days, there's a 1.8.0.1 hotfix in the making that fixes a few urgent issues.
Comment by
WanWizard
June 2016
permalink
Fatal error: Uncaught Error: Class 'PHPSecLib\Crypt_AES' not found on Heroku
The latest Fuel version is 1.8.0. 1.8.x uses the standard PHPSecLib, which is installed using Composer. 1.7.x uses a customized version of PHPSecLib, which is in /fuel/core/vendor/phpseclib. I can't comment on why it can't find it, I am …
Comment by
WanWizard
June 2016
permalink
Debug class error in 1.8
What PHP version are you running? What is result of: var_dump(extension_loaded('xdebug')); var_dump(ini_get('xdebug.overload_var_dump')); and of var_dump($your-object-here);
Comment by
WanWizard
May 2016
permalink
Debug class error in 1.8
Any object? Just used: $model = \Model\Position::find($id, array('related' => array('amount'))); \Debug::dump($model);die(); and that worked fine here.
Comment by
WanWizard
May 2016
permalink
Pagination problem
I depends. it should not be a problem using a segment number, I've never used anything else. Perhaps it has something to do with the fact you have both a folder name and "public" in the URL, which indicates some non-standard rewrite …
Comment by
WanWizard
May 2016
permalink
Pagination problem
I doesn't pick up the page number from the URI, which suggests the uri_segment value is wrong. uri segments aren't counted on the raw URL, the are counted on the internal URI which starts with the controller. So assuming your controller i…
Comment by
WanWizard
May 2016
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,386
Last Active
1:06AM
Roles
Administrator