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
Load view from Module
From a controller inside the module? Exactly the same as from every other controller: $view = \View::forge('index'); FuelPHP is context aware, it knows you're executing a module controller, so it knows to look in the module for view…
Comment by
WanWizard
June 2014
permalink
Load view from Module
You mean: how can I load a module view from a controller outside the module? The short answer: make sure the module is loaded, and then hardcoded load the view from the module. \Module::load("[name_module]"); $view = \View::forge("[…
Comment by
WanWizard
June 2014
permalink
Trying to perform oauth2 code => acesss_token exchange using Request class, getting redirects
It may be foursquare that is doing the redirecting? I never used it, but quite a few require you to define the redirect URL centrally for security reasons.
Comment by
WanWizard
June 2014
permalink
Profiling mess up jQuery UI dialog.
I assume it has to do with the CSS it injects. You can easily check with something like Firefox "Inspect Element", just right-click on your modal, inspect it, and check the effective CSS list on the right for entries that are not from yo…
Comment by
WanWizard
June 2014
permalink
many_to_many relationship error: Object of class ___ could not be converted to string
If you still have the issue in 1.8/dev, please create an issue for it at https://github.com/fuel/orm/issues with a documented use case and code samples.
Comment by
WanWizard
June 2014
permalink
Profiling mess up jQuery UI dialog.
I have no experience with JQuery UI, so I can't comment. Profiler output is injected in the page directly before , so it should not have any influence. It could always be that there is css used by the profiler which may interfere, we tried h…
Comment by
WanWizard
June 2014
permalink
many_to_many relationship error: Object of class ___ could not be converted to string
I see two possible issues: Your classes are named incorrect. There should be a capital after the underscore, so Model_Language, and Model_User. And when specifying relations, you should not use a leading backslash when specifying fully namespaced …
Comment by
WanWizard
June 2014
permalink
many_to_many relationship error: Object of class ___ could not be converted to string
And how is the other side of the relation defined?
Comment by
WanWizard
June 2014
permalink
Problem with Request::forge
In Fuel v1, Input is global, which means it isn't used in secondary requests. Insteaad, data passed to execute() will be passed as parameters to the controller method called (as if it where URi parameters). So try something like: public funct…
Comment by
WanWizard
June 2014
permalink
problem in using composer
Yeah. Since then Composer became a required component for Fuel v1.
Comment by
WanWizard
June 2014
permalink
problem in using composer
Why did you put that code in the bootstrap? That is not needed, Fuel will load and initialize the composer autoloader itself (and it doesn't install in app/vendor, it installs in fuel/vendor).
Comment by
WanWizard
June 2014
permalink
Create table for auth
The Auth package comes with it's own migrations. Make sure you have a working database config, and a properly setup auth.php config file in app/config, and run the migrations. The required tables (for simpleauth or ormauth, depending on your c…
Comment by
WanWizard
June 2014
permalink
Differences in markdown parsers
No problem, glad we sorted out the confusion. ;)
Comment by
WanWizard
June 2014
permalink
Differences in markdown parsers
Sorry? Afaik we used (up until 1.7.1) to distribute Michel Fortin's Markdown Extra, which is an extended version of the oriignal Markdown class from Daring Fireball. As of 1.7.2 (and in 1.8/dev) we switched to "michelf/php-markdown"…
Comment by
WanWizard
June 2014
permalink
Differences in markdown parsers
Afaik most of the Markdown implementations are based on John Grubers Mardown, which has been virtually unchanged since 2004, but know several additions, both public (like Markdown_Extra) and propriatary (like github flavoured markdown). Markdown is…
Comment by
WanWizard
June 2014
permalink
Log EAV Container
EAV is implemented as an ORM related table, and a modification of the child object is not seen as a change of the parent. The update observer only runs if the object itself has been modified.
Comment by
WanWizard
June 2014
permalink
Question on Orm and Pagination
What is your URI? Do you really type in http://nikita.dev/admin/pages/index/ in your browser, or something else? If you type for example http://nikita.dev/admin/pages/, because the index part is default, null will not work, since Uri::main() will …
Comment by
WanWizard
June 2014
permalink
Question on Orm and Pagination
If you don't pas a pagination_url, it will be set to Uri::main(), which is the URI that is used to get the page containing the pagination. So you need to count the number of segments on that (excluding hostname, including controller, method an…
Comment by
WanWizard
June 2014
permalink
Question on Orm and Pagination
On http://nikita.dev/admin/pages/index ? Of did you leave the "" in (which is absolutely not correct)?
Comment by
WanWizard
June 2014
permalink
Question on Orm and Pagination
Can you change your template from echo $pagination; // or some other var... to echo $pagination->render(); so you can see which exception is thown?
Comment by
WanWizard
June 2014
permalink
Question on Orm and Pagination
Off course you can. Most common error is that the URI segments are counted wrong. If your page URI is /admin/pages/index, and you want the second page to be /admin/pages/index/2, the URI segment number is 4.
Comment by
WanWizard
June 2014
permalink
Captcha Package - Driver based
Your webpage needs to include and the "action_method" in "controller" needs to do that echo.
Comment by
WanWizard
June 2014
permalink
Fuelphp 2.0 update problem
Rights issue? I don't see any other reason (disk full possibly?) why the vendor folder could not be created.
Comment by
WanWizard
June 2014
permalink
Admin move it into a Module
Depends on what you want to route. Module route are required to have the primary segment as the module name. Meaning all your module routes should start with 'admin/...' otherwise they can not be used. So you can use module routes to rou…
Comment by
WanWizard
June 2014
permalink
Admin move it into a Module
Thought so, so you have to change it to if (\Request::active()->controller !== 'Admin\Controller_Admin' or ! in_array(\Request::active()->action, array('login', 'logout')))
Comment by
WanWizard
June 2014
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
1:32AM
Roles
Administrator