I'm new to FuelPHP framework and I'm currently working on a project where I need to pass a variable to the `template.php` file. I've looked through the documentation and couldn't find a clear explanation on how to do this.
I have a variable called `$pageTitle` in my controller file that I want to use in the `template.php` file to set the page title dynamically. Can someone please guide me on how to achieve this?
I would really appreciate it if you could provide some example code or step-by-step instructions on how to pass this variable from the controller to the `template.php` file. Thanks in advance!

User 1:
Hey there! I've encountered a similar situation before while working with FuelPHP. To pass a variable to the `template.php` file, you can use the `$template` variable in your controller to set the variable you want to pass. Here's how you can do it:
In your controller file, you can set the variable `$pageTitle` like this:
Then, in your `template.php` file, you can access the variable using the same name:
This way, the value of `$pageTitle` will be passed from your controller to the `template.php` file, allowing you to dynamically set the page title based on your needs. Hope this helps!
Please let me know if you have any further questions or need more clarification.