Share: My PHP Framework is updated again, the cottage version of thinkphp, the development efficiency again greatly improved
Version number: Number No. 20120608
Download Address: http://www.stu80.com/gonggao/new.php
This modification was mainly changed to 2 places
1. Core class youya.php 267 lines, fixed Error in label parsing, accidental discovery
2 Core class youya.php 305 lines,
Add two-D array support for functions in the template, which can be written in the future
{$data. 0|show}
Parsing out is
Conclusion:
This framework in many places I deliberately like thinkphp, no other reason, mainly used to use thinkphp, it is natural that some functions use similar names.
This framework is very easy to expand, its ease of the tongue, so that I do not bother to upgrade, the use of what to expand the expansion, everyone to try it.
The above-mentioned expansion function is inspired by the following example.
PHP Code
Select ("Select info from Personal_info"); $dat =array (); foreach ($data as $v) { $tmp =unserialize ($v [' info ']); $dat []= $tmp; } $this->assign (' data ', $dat); $this->display ("index.html");} }
HTML Code
| Name |
Age |
Gender |
| {data.0} |
{data.1} |
{Data.2|showall} |
With my previous comparison, I can see that logic is clear.
Http://topic.csdn.net/u/20120607/08/3f1ea41e-357f-44ee-af32-e298eb6ae97f.html
Welcome reference ...
------Solution--------------------
{Data.2|showall} is parsed as ShowAll ($data. 2) $data. 2 What is it? Is it an array?
------Solution--------------------
Watch the crowd ... I also have a period of time not updated.
------Solution--------------------
It's all cow B characters ~
------Solution--------------------
Strict Standards:non-static Method App::run () should not being called statically in D:\AMP\web\YouYaX\index.php on line 13