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.

How to user require,include pages

I want to require more than one pages on my view. Is there any other way in phalcon to include those pages



5.8k
Accepted
answer

Have you had a read of the Views Documentation @ http://docs.phalconphp.com/en/latest/reference/views.html ?

I'm not quite sure what your end goal is, but it sounds like you could be after 'partials' http://docs.phalconphp.com/en/latest/reference/views.html#using-partials



16.7k

<?php $this->partial("shared/adbanner") ?> What is shared and adbanner is shared a folder in a layout and ad_banner is a php file which we want to requre



16.7k

$urlVariables = explode("/",$SERVER['REQUESTURI']); print_r($urlVariables);

Not working in phalcon



16.7k

$urlVariables = explode("/",$SERVER['REQUESTURI']); print_r($urlVariables);