
PHP_Framework
文章平均质量分 61
wonderfan
云计算,电商和移动互联网
展开
-
Zend Front Controller Plugin
What is a Front Controller Plugin?In Zend Framework, plugins are used to listen for certain events inthefront controller. Events in the front controller bookend each ofthe majoractions that occu原创 2012-12-26 18:53:16 · 486 阅读 · 0 评论 -
Joomla execution path work-through
When debugging issues or doing development in Joomla!, it ishelpful to understand the basic Joomla! Execution Path. The execution path is the list of function callsthat are made during each page reque原创 2012-12-26 18:51:59 · 727 阅读 · 0 评论 -
Define your own WordPress loop search
We all know what the WordPressLoop is right? If not,there are many great tutorials around the web that explain theWordPress Loop.One of the easiest ways to navigate and manipulate the loop is tous原创 2012-12-26 18:53:35 · 400 阅读 · 0 评论 -
WordPress: Custom Post Type Guide
One of the most anticipatedfeatures of WordPress 3.0 was the ability to add your owncustom post types to WordPress, which allows you to display andcategorize different types of content outside of th原创 2012-12-26 18:50:05 · 942 阅读 · 0 评论 -
Joomla components and execution path
The entry point into a Joomla! component is similar fromcomponent to component. For this example, we willuse the Web Links core component. The first fileto be executed in the front end is:.../comp原创 2012-12-26 18:52:02 · 823 阅读 · 0 评论 -
CMS Theme
The function hook_css_alter() lets you replace, add, or substractCSS files from the page prior to the files beding output. Viewsgoes through a relativaely long process from starting a view tofinally p原创 2012-12-26 18:53:41 · 353 阅读 · 0 评论 -
The Ultimate Guide to WordPress Loop
What is The Loop?You’re probably still wondering what The Loop even is. Basically,it’s what displays the content you see on your homepage,your singleposts, pages,archives, search results, and more原创 2012-12-26 18:53:32 · 616 阅读 · 0 评论 -
Zend Framework 2 : Event and DI
public static function init($configuration = array()){ $smConfig = isset($configuration['service_manager']) ? $configuration['service_manager'] : array(); $listeners = isset($configuration['listene原创 2014-01-14 22:51:08 · 561 阅读 · 0 评论 -
[PHP] small example to show dynamic type change
When you declare one variable, the initial type is null, but the type can be changed by assign statement.原创 2014-02-07 18:50:51 · 827 阅读 · 0 评论 -
[PHP] DBI in WordPress
DBI in WordPress原创 2014-02-09 10:07:16 · 779 阅读 · 0 评论 -
[PHP] create plugin and short code in WordPress
WordPress plugin and short-code example原创 2014-02-07 20:12:12 · 734 阅读 · 0 评论 -
[PHP] Http API with JSON data
Http API with JSON data原创 2014-02-09 10:02:41 · 1085 阅读 · 0 评论 -
[PHP]WordPress HTTP API
WordPress HTTP API原创 2014-02-08 09:33:44 · 1122 阅读 · 0 评论 -
[PHP]Magic methods in PHP
Magic methods in PHP原创 2014-02-08 22:28:10 · 737 阅读 · 0 评论 -
[PHP]Use PHP script to tidy Dojo toolkit
In the Dojo toolkit, there are some unused files so it is better to remove them.<?php@set_time_limit(0);$target_path = getcwd().DIRECTORY_SEPARATOR.'wp-includes'.DIRECTORY_SEPARATOR.'js'.DIREC原创 2014-03-27 18:45:15 · 944 阅读 · 0 评论 -
[PHP]How to get the system info?
it is much easier to get the same result through PHP because the PHP language offers some global constant variables and built-in functions.原创 2014-07-06 12:43:18 · 849 阅读 · 0 评论 -
Zend Framework: view and table
defined is a special operator that takes the form of a method callto determin whether ornot the passed expression is defined. it returns a descriptionstring of the expression, ornil if the exp原创 2012-12-26 18:52:16 · 340 阅读 · 0 评论 -
Data Grid in Zend
1. Create data grid in action function simpleAction() { //Zend_Config $config = new Zend_Config_Ini('./application/grids/grid.ini', 'production'); //Grid In原创 2012-12-10 17:27:05 · 394 阅读 · 0 评论 -
PHP programming
Blocksare the brains behind magento's templating scheme.Blocks for anested set of objects that coordinate the models with the templatefiles. Each block controls one template file: a simple html and原创 2012-12-26 18:52:18 · 505 阅读 · 0 评论 -
Tell you more about Zend_Form
Zend_Form makes use of several Zend Framework components to accomplish its goals, including Zend_Config, Zend_Validate, Zend_Filter, Zend_Loader_PluginLoader, and optionally Zend_View.You have two o原创 2012-11-23 11:14:53 · 368 阅读 · 0 评论 -
How does Zend View use view helpers?
To use a helper in your view script, call it using $this->helperName(). Behind the scenes, Zend_View will load the Zend_View_Helper_HelperName class, create an object instance of it, and call its he原创 2012-11-14 14:56:03 · 300 阅读 · 0 评论 -
class loader in zend
1.What is Zend_Loader?Zend_Loader provides two static methods loadClass() and loadFile(). Class and File have one-to-one relationship.2.Zend AutoLoader3.Zend Plugin Loader原创 2012-11-13 22:43:43 · 286 阅读 · 0 评论 -
Factory pattern in Zend data grid
In the abstract class Bvb_Grid, there is static method named factory() which acts as a factory to create specific grid deploy class. public static function factory($defaultClass = 'Table', $opt原创 2012-12-11 08:52:11 · 431 阅读 · 0 评论 -
Xoops----powerful portal and cms
Code analysis ForXoopsFrom the index.php, it invokesmainfile.php at the first time.Mainfile.php does some securitycheck and include the include/common.php. Common.php plays a vitalrole in the原创 2012-12-26 18:51:45 · 586 阅读 · 0 评论 -
Use Dojo in Zend
How can we use Dojo in Zend?Dojo is one kind of resources in Zend and it can be initiated by bootstrap. (Here leaves us a question: what kinds of stuff can be treated as resource in Zend?) publi原创 2012-11-15 08:55:44 · 388 阅读 · 0 评论 -
Zend_View_Helper
Interface Zend_View_Helper_Interface:Zend_View_Helper_Interface defines the contract between the view and helpers.interface Zend_View_Helper_Interface{ /** * Set the View object *原创 2012-11-13 21:49:24 · 466 阅读 · 0 评论 -
One showcase of data grid
1.Image show case;2.Related codes public function doAction() { $config = new Zend_Config_Ini('./application/grids/grid.ini', 'production'); $id = 'grid'; $g原创 2012-12-11 10:53:57 · 389 阅读 · 0 评论 -
Database layer in Zend
When we want to use database, we needs some connection parameters to get the connection. It can be from configuration file like application.ini or variable declared in the php file.db.adapter = PD原创 2012-12-05 17:57:32 · 310 阅读 · 0 评论 -
Dive into Zend_Config Deeply
As we all know,there is application.ini file during the bootstrap period. The configuration file as a parameter passes into the Zend_Application; public function __construct($environment, $opti原创 2012-11-28 17:51:04 · 430 阅读 · 0 评论 -
Understand Zend_Controller_Action
Zend_Controller_Action is an abstract class you may use for implementing Action Controllers for use with the Front Controller when building a website based on the Model-View-Controller (MVC) pattern.原创 2012-11-27 17:38:06 · 333 阅读 · 0 评论 -
Zend Application
Getting an MVC applicationconfigured and ready to dispatch has required an increasing amountof code as more features become available: setting up the database,configuring your view and view helpers,原创 2012-12-26 18:53:21 · 333 阅读 · 0 评论 -
Zend Front Controller
Overview ¶Zend_Controller_Front implementsa »Front Controller pattern usedin »Model-View-Controller (MVC) applications. Itspurpose is to initialize the request environment, route theincoming原创 2012-12-26 18:53:18 · 459 阅读 · 0 评论 -
Good points in Zend-Framework-Skeleton
1.Rewrite the bootstrapIt defines all kinds of _init methods in the Bootstrap class.It is good idea to tip constructor to finish the inialization. public function __construct($boostrapEveryth原创 2012-11-20 21:04:20 · 347 阅读 · 0 评论 -
The Test in the LINUX Shell
Tests occur on a daily basis in our life, from seeing if you can get up early enough to get to your job to seeing how good you are at passing tests. When you start to do shell programming, tests will原创 2012-12-18 10:39:51 · 678 阅读 · 0 评论