摘要: 本文重点介绍使用Eclipse+pydev插件来写Python代码, 以及在Mac上配置Eclipse+Pydev 和Windows配置Eclipse+Pydev 编辑器:Python 自带的 IDLE 简单快捷, 学习Python或者编写小型软件的时候。非常有用。 编辑器: Eclipse + p 阅读全文
posted @ 2016-07-05 20:44 jinchunguang 阅读(189) 评论(0) 推荐(0)
摘要: Helpers\URL The URL class is used for having handy methods or redirecting the page and returning the path to the current template. Redirect - To redir 阅读全文
posted @ 2016-07-05 12:10 jinchunguang 阅读(122) 评论(0) 推荐(0)
摘要: Helpers\SimpleCurl The SimpleCurl class is there to curl data from RESTful services. A lot of companies use it nowadays for example twitter, google an 阅读全文
posted @ 2016-07-05 12:09 jinchunguang 阅读(158) 评论(0) 推荐(0)
摘要: Helpers\TableBuilder Table builder helper is a class that would help you to create tables in MySQL (primarily) without really going into details of SQ 阅读全文
posted @ 2016-07-05 12:09 jinchunguang 阅读(212) 评论(0) 推荐(0)
摘要: Helpers\Tags The tags helper is a collection of useful methods: Tags::clean($data) Clean function to convert data into an array. Tags::get($string) Th 阅读全文
posted @ 2016-07-05 12:09 jinchunguang 阅读(166) 评论(0) 推荐(0)
摘要: Helpers\ReservedWords This helper returns an array of reserved words, this includes php 7's new reserved words. ReservedWords::getList() This helper r 阅读全文
posted @ 2016-07-05 12:08 jinchunguang 阅读(113) 评论(0) 推荐(0)
摘要: Helpers\Sessions The session is a static class, this means it can be used in any controller without needing to be instantiated, the class has an init 阅读全文
posted @ 2016-07-05 12:08 jinchunguang 阅读(116) 评论(0) 推荐(0)
摘要: Helpers\PHPMailer PHPMailer is a third party class for sending emails, Full docs are available athttps://github.com/Synchro/PHPMailer Make an alias: u 阅读全文
posted @ 2016-07-05 12:07 jinchunguang 阅读(183) 评论(0) 推荐(0)
摘要: Helpers\Request The Helpers\Request class is used for detecting the type of request and retrieving the request. getMethod() Request::getMethod() Retur 阅读全文
posted @ 2016-07-05 12:07 jinchunguang 阅读(162) 评论(0) 推荐(0)
摘要: Helpers\RainCaptcha This class can validate CAPTCHA images with RainCaptcha. It can generate an URL to display a CAPTCHA validation image served by th 阅读全文
posted @ 2016-07-05 12:07 jinchunguang 阅读(162) 评论(0) 推荐(0)
摘要: Helpers\Number This helper has 2 methods for converting a number format and to get a percentage. Number::format($number, $prefix = '4') Converts a giv 阅读全文
posted @ 2016-07-05 12:06 jinchunguang 阅读(109) 评论(0) 推荐(0)
摘要: Helpers\Pagination Break recordset into a series of pages. First create a new instance of the class pass in the number of items per page and the insta 阅读全文
posted @ 2016-07-05 12:06 jinchunguang 阅读(95) 评论(0) 推荐(0)
摘要: Helpers\Password The password class uses php 5 password_ functions. To create a hash of a password, call the make method and provide the password to b 阅读全文
posted @ 2016-07-05 12:06 jinchunguang 阅读(135) 评论(0) 推荐(0)
摘要: Helpers\Hooks Add modules with hooks The hooks helper allows modules to be created within the module folder. Hooks allow code to be injected into vari 阅读全文
posted @ 2016-07-05 12:05 jinchunguang 阅读(127) 评论(0) 推荐(0)
摘要: Helpers\GeoCode This function connects to google maps and retrieves the lat/lon of the address provided GeoCode::getLngLat(['Hessle Road', 'Hull']) Re 阅读全文
posted @ 2016-07-05 12:04 jinchunguang 阅读(94) 评论(0) 推荐(0)
摘要: Helpers\FastCache phpFastCache is a high-performance, distributed object caching system, generic in nature, but intended for use in speeding up dynami 阅读全文
posted @ 2016-07-05 12:03 jinchunguang 阅读(127) 评论(0) 推荐(0)
摘要: Helpers\Document The document class is a collection of useful methods for working with files. To get the extension of a file call the getExtension met 阅读全文
posted @ 2016-07-05 12:02 jinchunguang 阅读(131) 评论(0) 推荐(0)
摘要: Helpers\Database The database class is used to connect to a MySQL database using the connection details set in the app/Config.php. The constants (DB_T 阅读全文
posted @ 2016-07-05 12:00 jinchunguang 阅读(144) 评论(0) 推荐(0)
摘要: Helpers\Date The Date helper is used for calculations with dates. Date::difference($from, $to, $type = null) $from, $to - from and to date in the form 阅读全文
posted @ 2016-07-05 12:00 jinchunguang 阅读(148) 评论(0) 推荐(0)
摘要: Helpers\CSRF CSRF Protection The CSRF helper is used to protect post request from cross site request forgeries. For more information on CSRF see https 阅读全文
posted @ 2016-07-05 11:48 jinchunguang 阅读(153) 评论(0) 推荐(0)
摘要: Helpers\Data Data helper contains a bunch of useful methods for looking at and altering your data. Data::pr($data) Returns the data inside a print_r w 阅读全文
posted @ 2016-07-05 11:48 jinchunguang 阅读(147) 评论(0) 推荐(0)
摘要: Helpers\Cookie The Cookie helper has the following methods: Cookie::exists($key); Returns true or false Cookie::set($key, $value, $expiry = self::FOUR 阅读全文
posted @ 2016-07-05 11:47 jinchunguang 阅读(106) 评论(0) 推荐(0)
摘要: Helpers\Assets The assets helper is for loading CSS and JS files rather than writing out the full script/link tag for each and every item, instead add 阅读全文
posted @ 2016-07-05 11:46 jinchunguang 阅读(178) 评论(0) 推荐(0)
摘要: Helpers Overview Helpers are classes that are not part of the core system but can greatly improve it by adding new features and possibilities. This se 阅读全文
posted @ 2016-07-05 11:33 jinchunguang 阅读(104) 评论(0) 推荐(0)
摘要: Validation A simple but powerful Validation Engine, in a Laravel-esque style. Its Validation Rules and the basic usage are similar with Illuminate\Val 阅读全文
posted @ 2016-07-05 11:32 jinchunguang 阅读(197) 评论(0) 推荐(0)
摘要: Support Facades Introduction Facades provide a "static" interface to classes that are available in the application's service container. Nova ships wit 阅读全文
posted @ 2016-07-05 11:31 jinchunguang 阅读(122) 评论(0) 推荐(0)
摘要: Response This improved Response API, able to simplify the Framework's Response management. Practically, is now possible to do in a Controller Method: 阅读全文
posted @ 2016-07-05 11:30 jinchunguang 阅读(155) 评论(0) 推荐(0)
摘要: Session Store Configuration Session Usage Flash Data Session Drivers Configuration Since HTTP driven applications are stateless, sessions provide a wa 阅读全文
posted @ 2016-07-05 11:30 jinchunguang 阅读(465) 评论(0) 推荐(0)
摘要: Redirect To use this Class, add the following to the top of the file. use Redirect; Redirect::to($path, $status = 302, $headers = array(), $secure = n 阅读全文
posted @ 2016-07-05 11:29 jinchunguang 阅读(410) 评论(0) 推荐(0)
摘要: Paginator There are several ways to paginate items. The simplest is by using the paginate method on the query builder. Paginating Database Results $us 阅读全文
posted @ 2016-07-05 11:28 jinchunguang 阅读(480) 评论(0) 推荐(0)
摘要: Request The Request class provides many methods for examining the HTTP request for your application and extends the Symfony\Component\HttpFoundation\R 阅读全文
posted @ 2016-07-05 11:28 jinchunguang 阅读(210) 评论(0) 推荐(0)
摘要: Mailing API Configuration Basic Usage Embedding Inline Attachments Mail & Local Development Working along with the classic Mailer Helper Configuration 阅读全文
posted @ 2016-07-05 11:27 jinchunguang 阅读(156) 评论(0) 推荐(0)
摘要: Events The idea behind Events is the ability to send data, as parameters, to interested Listeners and call them when an Event happens. The Listeners c 阅读全文
posted @ 2016-07-05 11:26 jinchunguang 阅读(231) 评论(0) 推荐(0)
摘要: Input Basic Input Old Input Files Please note that both Input and Request do NOT sanitize your data, it is up to you to do that. Basic Input You may a 阅读全文
posted @ 2016-07-05 11:26 jinchunguang 阅读(222) 评论(0) 推荐(0)
摘要: Database ORM Introduction Basic Usage Mass Assignment Insert, Update, Delete Soft Deleting Timestamps Query Scopes Relationships Querying Relations Ea 阅读全文
posted @ 2016-07-05 11:25 jinchunguang 阅读(333) 评论(0) 推荐(0)
摘要: Encryption Configuration Basic Usage Encrypting a value Decrypting a value Configuration Before using Nova's encrypter, you should set the ENCRYPT_KEY 阅读全文
posted @ 2016-07-05 11:25 jinchunguang 阅读(372) 评论(0) 推荐(0)
摘要: Authentication Introduction Configuration Storing Passwords Authenticating Users Basic Usage Introduction All the classes of the Auth system live in t 阅读全文
posted @ 2016-07-05 11:24 jinchunguang 阅读(277) 评论(0) 推荐(0)
摘要: Cookie API All cookies created by the Nova framework are encrypted and signed with an authentication code, meaning they will be considered invalid if 阅读全文
posted @ 2016-07-05 11:24 jinchunguang 阅读(216) 评论(0) 推荐(0)
摘要: Database API Introduction Basic Usage Selects Joins Aggregates Raw Expressions Inserts Updates Deletes Unions Introduction An improved Database API wa 阅读全文
posted @ 2016-07-05 11:24 jinchunguang 阅读(307) 评论(0) 推荐(0)
摘要: Templates Templates are the site's markup, where images and js, css files are located as well as the site html structure. The default template is call 阅读全文
posted @ 2016-07-05 11:23 jinchunguang 阅读(175) 评论(0) 推荐(0)
摘要: Routes Routing lets you create your own URL paths, based on the path you can load a closure or a controller. Routing Set-up Namespaces are included in 阅读全文
posted @ 2016-07-05 11:22 jinchunguang 阅读(155) 评论(0) 推荐(0)
摘要: Route Filters The Controller's Middleware, represents a High-Level processing API, executed by the requested Controller, when it is instantiated, its 阅读全文
posted @ 2016-07-05 11:22 jinchunguang 阅读(1092) 评论(0) 推荐(0)
摘要: Languages A language class exists inside the system/Core folder, this class have 2 methods: load - Loads the language file, can return the data and se 阅读全文
posted @ 2016-07-05 11:21 jinchunguang 阅读(195) 评论(0) 推荐(0)
摘要: Middleware The middleware gives a single shot to the views associated into Controllers, before executing the requested Method, and store the resulted 阅读全文
posted @ 2016-07-05 11:21 jinchunguang 阅读(242) 评论(0) 推荐(0)
摘要: Config Config App Auth Cache Database Languages Mail Modules Routing Session Config Settings for the framework setup in app/Config.php Set the timezon 阅读全文
posted @ 2016-07-05 11:20 jinchunguang 阅读(402) 评论(0) 推荐(0)
摘要: Errors In the event of an error or an exception, a custom error message is displayed: An error occurred, The error has been reported. This comes from 阅读全文
posted @ 2016-07-05 11:20 jinchunguang 阅读(205) 评论(0) 推荐(0)
摘要: CLI Console New to 3.0 is a command line utility aptly named Nova located in the root. It currently supports creating controllers and models from the 阅读全文
posted @ 2016-07-05 11:19 jinchunguang 阅读(402) 评论(0) 推荐(0)
摘要: Views Views are the visual side of the Nova, they are the HTML output of the pages. Views can be located directly inside the views folder or in a sub 阅读全文
posted @ 2016-07-05 11:18 jinchunguang 阅读(262) 评论(0) 推荐(0)
摘要: Controllers Controllers are the bread and butter of the framework they control when a model is used and equally when to include a view for output. A c 阅读全文
posted @ 2016-07-05 11:18 jinchunguang 阅读(380) 评论(0) 推荐(0)
摘要: Models Models control the data source, they are used for collecting and issuing data, this could be a remote service, as XML, JSON or using a database 阅读全文
posted @ 2016-07-05 11:17 jinchunguang 阅读(174) 评论(0) 推荐(0)
摘要: Requirements The framework requirements are limited. PHP 5.5 or greater. Apache Web Server or equivalent with mod rewrite support. IIS with URL Rewrit 阅读全文
posted @ 2016-07-05 11:17 jinchunguang 阅读(214) 评论(0) 推荐(0)
摘要: Upgrade Guide This guide will point out the key points to be aware of when upgrading to version 3. All classes within the app directory have a new nam 阅读全文
posted @ 2016-07-05 11:16 jinchunguang 阅读(139) 评论(0) 推荐(0)
摘要: Contribution Guide Issue Tracker You can find outstanding issues on the GitHub Issue Tracker. Pull Requests Each pull request should contain only one 阅读全文
posted @ 2016-07-05 11:16 jinchunguang 阅读(413) 评论(0) 推荐(0)
摘要: Overview & Change Log Nova Framework is a PHP 5.5+ MVC Framework. It's designed to be lightweight and modular, allowing developers to build better and 阅读全文
posted @ 2016-07-05 11:15 jinchunguang 阅读(158) 评论(0) 推荐(0)
摘要: Upgrading Applications If you have an existing Zend Framework v2 application, and want to update it to the latest versions, you will have some special 阅读全文
posted @ 2016-07-05 11:08 jinchunguang 阅读(284) 评论(0) 推荐(0)
摘要: Component migration documentation The following is a list of migration documents for components we ship. zend-code zend-eventmanager zend-hydrator zen 阅读全文
posted @ 2016-07-05 11:05 jinchunguang 阅读(124) 评论(0) 推荐(0)
摘要: Migration from Zend Framework v2 to v3 Zend Framework v2 to v3 has been intended as an incremental upgrade. We have even made efforts in the past year 阅读全文
posted @ 2016-07-05 11:02 jinchunguang 阅读(156) 评论(0) 推荐(0)
摘要: Using the EventManager This tutorial explores the features of zend-eventmanager in-depth. Terminology An Event is a named action. A Listener is any PH 阅读全文
posted @ 2016-07-05 11:01 jinchunguang 阅读(335) 评论(0) 推荐(0)
摘要: Setting up a database adapter zend-db provides a general purpose database abstraction layer. At its heart is the Adapter, which abstracts common datab 阅读全文
posted @ 2016-07-05 11:00 jinchunguang 阅读(360) 评论(0) 推荐(0)
摘要: Internationalization If you are building a site for an international audience, you will likely want to provide localized versions of common strings on 阅读全文
posted @ 2016-07-05 10:58 jinchunguang 阅读(505) 评论(0) 推荐(0)
摘要: Reviewing the Blog Module Throughout the tutorial, we have created a fully functional CRUD module using a blog as an example. While doing so, we've ma 阅读全文
posted @ 2016-07-05 10:57 jinchunguang 阅读(184) 评论(0) 推荐(0)
摘要: Advanced Configuration Tricks Configuration of zend-mvc applications happens in several steps: Initial configuration is passed to the Application inst 阅读全文
posted @ 2016-07-05 10:57 jinchunguang 阅读(246) 评论(0) 推荐(0)
摘要: Editing and Deleting Data In the previous chapter we've come to learn how we can use the zend-form and zend-db components for creating new data-sets. 阅读全文
posted @ 2016-07-05 10:56 jinchunguang 阅读(306) 评论(0) 推荐(0)
摘要: Making Use of Forms and Fieldsets So far all we have done is read data from the database. In a real-life application, this won't get us very far, as w 阅读全文
posted @ 2016-07-05 10:55 jinchunguang 阅读(195) 评论(0) 推荐(0)
摘要: Understanding the Router Our module is coming along nicely. However, we're not really doing all that much yet; to be precise, all we do is display all 阅读全文
posted @ 2016-07-05 10:53 jinchunguang 阅读(130) 评论(0) 推荐(0)
摘要: SQL Abstraction and Object Hydration In the last chapter, we introduced database abstraction and a new command interface for operations that might cha 阅读全文
posted @ 2016-07-05 10:51 jinchunguang 阅读(172) 评论(0) 推荐(0)
摘要: Preparing for Different Databases In the previous chapter, we created a PostRepository that returns some data from blog posts. While the implementatio 阅读全文
posted @ 2016-07-05 10:50 jinchunguang 阅读(125) 评论(0) 推荐(0)
摘要: Models and the ServiceManager In the previous chapter we've learned how to create a "Hello World" Application using zend-mvc. This is a good start, bu 阅读全文
posted @ 2016-07-05 10:49 jinchunguang 阅读(266) 评论(0) 推荐(0)
摘要: Introducing the Blog Module Now that we know about the basics of the zend-mvc skeleton application, let's continue and create our very own module. We 阅读全文
posted @ 2016-07-05 10:48 jinchunguang 阅读(225) 评论(0) 推荐(0)
摘要: Using zend-paginator in your Album Module TODO Update to: follow the changes in the user-guide use SQLite-compatible SQL syntax, and provide a script 阅读全文
posted @ 2016-07-05 10:47 jinchunguang 阅读(205) 评论(0) 推荐(0)
摘要: Using zend-navigation in your Album Module In this tutorial we will use the zend-navigation component to add a navigation menu to the black bar at the 阅读全文
posted @ 2016-07-05 10:46 jinchunguang 阅读(207) 评论(0) 推荐(0)
摘要: Unit Testing a zend-mvc application A solid unit test suite is essential for ongoing development in large projects, especially those with many people 阅读全文
posted @ 2016-07-05 10:45 jinchunguang 阅读(246) 评论(0) 推荐(0)
摘要: Conclusion This concludes our brief look at building a simple, but fully functional, Zend Framework zend-mvc application. In this tutorial we but brie 阅读全文
posted @ 2016-07-05 10:44 jinchunguang 阅读(199) 评论(0) 推荐(0)
摘要: Forms and actions Adding new albums We can now code up the functionality to add new albums. There are two bits to this part: Display a form for user t 阅读全文
posted @ 2016-07-05 10:43 jinchunguang 阅读(216) 评论(0) 推荐(0)
摘要: Database and models The database Now that we have the Album module set up with controller action methods and view scripts, it is time to look at the m 阅读全文
posted @ 2016-07-05 10:42 jinchunguang 阅读(166) 评论(0) 推荐(0)
摘要: Routing and controllers We will build a very simple inventory system to display our album collection. The home page will list our collection and allow 阅读全文
posted @ 2016-07-05 10:40 jinchunguang 阅读(187) 评论(0) 推荐(0)
摘要: Modules zend-mvc uses a module system to organise your main application-specific code within each module. The Application module provided by the skele 阅读全文
posted @ 2016-07-05 10:39 jinchunguang 阅读(347) 评论(0) 推荐(0)
摘要: Getting started: A skeleton application In order to build our application, we will start with theZendSkeletonApplication available on github. Use Comp 阅读全文
posted @ 2016-07-05 10:38 jinchunguang 阅读(257) 评论(0) 推荐(0)
摘要: Getting Started with Zend Framework MVC Applications This tutorial is intended to give an introduction to using Zend Framework 2 by creating a simple 阅读全文
posted @ 2016-07-05 10:36 jinchunguang 阅读(158) 评论(0) 推荐(0)