Hi,
I have problems understanding how to create 2 actions in the same controller.
I need to save 2 routes in Admin for the 2 actions - right?
For the first route I dont have anything specified and it resolves at actionPost.
However, when I try to add another route in the same controller, I...
I have vote_count and vote_score columns on my new suggestion entity's table which uses ContentVoteTrait;.
Then again it calls static::addVotableStructureElements($structure); from the inside of
public static function getStructure(Structure $structure){....}
I don't know why these vote_count...
hi i need redirect my old site urls to new urls
example :
www.oldsite.com/articles/title/id to www.newsite.com/threads/title.id/
i added a simple controller
class oldtonew extends AbstractController {
public function actionIndex(ParameterBag $params)
{
$url =...
How can I generate a canonical link to an admin route using a template function in an email template?
For example, in an admin template, {{ link('canonical:tools') }} generates the expected http://example.com/admin.php?tools/
However, in an email template, it assumes a public route and...
Hello!
In post_macros template I am adding an action-link (near like link):
<a href="{{ link('posts/best', $post, {'thread_id': $thread.thread_id}) }}" class="actionBar-action actionBar-action--mq.is-selected">Best answer</a>
Next I extend XF\Pub\Controller\Post.php class and adding...
Hello,
Firstly, I'm French and sorry for my bad english.
I want to create a route with two integer, exemple :
https://mysite.com/module/first_id/users/second_id/action
But I can't do this, for the moment I have :
https://mysite.com/module/users/first_id/second_id/action
My xenForo's Route ...
I'm creating an addon for our forum and there I need the current route.
I created a new area with the url "tes". There will be sub areas like tes/skyrim or tes/oblivion. Now I need this route (skyrim or oblivion) in my actionIndex of the ControllerPublic php file.
Route/Prefix file:
class...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.