Solved thread

This post is marked as solved. If you think the information contained on this thread must be part of the official documentation, please contribute submitting a pull request to its repository.

assets managment working two time in dispatcher forward

Hi, I use phalcon assets management its work perfectly but now ı have a problem.

I define assets items in controllerbase initialize function and output template master index.volt.

I use dispatcher forward if user not login forward to login action. Problem is hear my assets items output two time ?

Just add check for checking ithere is forward - if yes, don't add it again to assets.



1.7k

how can I do that ?



106.1k
Accepted
answer
edited Oct '16

if(!$this->dispatcher>wasForwarded())