Share: My little brother my PHP framework is updated again, the cottage version of thinkphp, the development efficiency again greatly improved

Source: Internet
Author: User
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
  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.