phpti icon indicating copy to clipboard operation
phpti copied to clipboard

PHP Template Inheritance (in straight PHP)

Results 5 phpti issues
Sort by recently updated
recently updated
newest added

so you can do something like this... parent.php: ``` My Website Title | ``` child.php: ``` Contact ``` however, there is an issue when superblock() is called and there are...

It would be nice if there was a function to set a small string, rather than a whole block of markup. For example, I like to pass a class attribute...

This is my code. If I remove `form_open`, the code works. ``` Login ``` Here's the error message ![Error](http://i76.photobucket.com/albums/j37/dahwan/Capture-11.png)

``` my value ``` .... don't want this .... ``` ``` PHPTI NEEDS TO BE SMARTER ABOUT THIS

Is there a way to use the old-style composition of having a separate header and footer file with inheritance? I want to create a base layout and include a header...