I actually have 2 questions here:
- I am using a lightbox plugin that when clicked loads up an iFrame of a page, how to I get it to point to a file in the view folder?
- Second question will that allow the contents of the iFrame to be translated using the
__()method?
You can’t just point it to a view file, you want to create a route to a controller/action that will eventually show that view; just like you would create any other page in Kohana. And in that case, yes, you will be able to use
__()to translate its contents.Example; in the routes file:
Then you can create a controller
iframe.phpand add the actionindexor whatever other (static, I assume) pages you want to use in an iframe. e.g.:and then create
iframes/index.phpin your views folder, and voila. You can access it with the urlmysite/iframe/🙂