phptal
PHPTAL replace but keep certain attributes?
Is it possible to do a tal:replace=\"whatever\" but maintain certain attributes of the element/tag? For example, if you have the following:[详细]
2023-03-29 15:17 分类:问答Using tal:content and getting <br/>
I am using Zend Framework with PHPTAL templates for view sites.开发者_运维百科 Problem is that I have <span> that contains tal:content = value. Value is the field (string) from database which c[详细]
2023-03-26 22:33 分类:问答PHPTAL and CSV in array
I have data in CSV format: $result->names = array(array(\'x,y,z\'),array(\'a,b,c\')); for example: item.names = \'a,b,c\'[详细]
2023-03-08 15:02 分类:问答What's wrong with my PHPTAL syntax?
.Quick question - I have the following, working syntax: <td tal:define=\"owner record/owner_id; user user/id; mode php:(owner eq user)?\'_edit\':\'_view\'; linkname php:(owner eq user)?\'Edit\':\'[详细]
2023-03-05 03:22 分类:问答How do I conditionally add an id attribute in TAL (PHPTAL)?
I\'m creating a form elements template file in PHPTAL. I would like to be able to OPTIONALLY pass in an id attribute for a field...[详细]
2023-01-16 18:57 分类:问答PHPTAL and specific table
I 开发者_开发知识库have to create specific table in PHPTAL. I have array like that: $tab = array(\'item1\', \'item2\', \'item3\', \'item4\');[详细]
2023-01-03 19:08 分类:问答PHPTAL Nested Repeat
I am having an problem trying to achieve a nested repeat in PHPTAL: <tr开发者_JS百科 tal:repeat=\"business analysis_result\">[详细]
2022-12-31 00:43 分类:问答PHPTAL i18n Call to a member function on a non-object Error
I\'m using PHPTAL in my project I\'m able to successfu开发者_StackOverflow中文版lly implement it almost all the cases except when I want to use its i18n services. I constantly get errors \"Call to a m[详细]
2022-12-21 18:23 分类:问答Cleanup Symfonys View Templates
I\'m evaluating the PHP webframework: Symfony for a project. Everything is quite well organized so far, except for the view templates which suffer from an unreadable/error prone mix of html and php (I[详细]
2022-12-08 02:26 分类:问答