实例介绍
自己写的ThinkPHP新闻发布系统(带数据库),绝对的简单易懂,带分页,带验证码等常用的功能。半个小时可入门
【实例截图】
【核心代码】
自己写的ThinkPHP新闻发布系统(带数据库)
└── thinkphp02
├── Conf
│ └── config.php
├── data
│ └── data2.sql
├── index.php
├── Lib
│ ├── Action
│ │ ├── CommonAction.class.php
│ │ └── IndexAction.class.php
│ ├── Model
│ │ └── newsModel.class.php
│ └── Org
│ ├── Image.class.php
│ └── Page.class.php
├── Runtime
│ ├── ~app.php
│ ├── Cache
│ │ ├── 0573c70d8602d961e53f714ea77bd87c.php
│ │ ├── 4b781d74f08f4c568755f386a0348388.php
│ │ ├── 9c23eafc5c74e8fd7a26a25e0e463b03.php
│ │ ├── b9fce0cd6ce4bfa7837681d544a45262.php
│ │ └── e81e89f3d988296972f2f7d60eeedd04.php
│ ├── Data
│ │ └── _fields
│ │ └── news.php
│ ├── Logs
│ │ ├── 10_05_27.log
│ │ └── 13_01_24.log
│ └── ~runtime.php
├── ThinkPHP
│ ├── Common
│ │ ├── alias.php
│ │ ├── compat.php
│ │ ├── convention.php
│ │ ├── core.php
│ │ ├── debug.php
│ │ ├── defines.php
│ │ ├── extend.php
│ │ ├── functions.php
│ │ ├── paths.php
│ │ └── runtime.php
│ ├── Lang
│ │ ├── eu-us.php
│ │ └── zh-cn.php
│ ├── Lib
│ │ ├── ORG
│ │ │ ├── Crypt
│ │ │ │ ├── Base64.class.php
│ │ │ │ ├── Crypt.class.php
│ │ │ │ ├── Des.class.php
│ │ │ │ ├── Rsa.class.php
│ │ │ │ └── Xxtea.class.php
│ │ │ ├── Io
│ │ │ │ └── Dir.class.php
│ │ │ ├── Net
│ │ │ │ ├── Http.class.php
│ │ │ │ ├── IpLocation.class.php
│ │ │ │ └── UploadFile.class.php
│ │ │ └── Util
│ │ │ ├── ArrayList.class.php
│ │ │ ├── CodeSwitch.class.php
│ │ │ ├── Date.class.php
│ │ │ ├── HashMap.class.php
│ │ │ ├── Image.class.php
│ │ │ ├── Input.class.php
│ │ │ ├── Page.class.php
│ │ │ ├── RBAC.class.php
│ │ │ ├── simhei.ttf
│ │ │ ├── Socket.class.php
│ │ │ ├── Stack.class.php
│ │ │ └── String.class.php
│ │ └── Think
│ │ ├── Core
│ │ │ ├── Action.class.php
│ │ │ ├── App.class.php
│ │ │ ├── Log.class.php
│ │ │ ├── Model
│ │ │ │ ├── AdvModel.class.php
│ │ │ │ ├── RelationModel.class.php
│ │ │ │ └── ViewModel.class.php
│ │ │ ├── Model.class.php
│ │ │ ├── Think.class.php
│ │ │ └── View.class.php
│ │ ├── Db
│ │ │ ├── Db.class.php
│ │ │ └── Driver
│ │ │ ├── DbIbase.class.php
│ │ │ ├── DbMongo.class.php
│ │ │ ├── DbMssql.class.php
│ │ │ ├── DbMysql.class.php
│ │ │ ├── DbMysqli.class.php
│ │ │ ├── DbOracle.class.php
│ │ │ ├── DbPdo.class.php
│ │ │ ├── DbPgsql.class.php
│ │ │ └── DbSqlite.class.php
│ │ ├── Exception
│ │ │ └── ThinkException.class.php
│ │ ├── Template
│ │ │ ├── TagLib
│ │ │ │ ├── TagLibCx.class.php
│ │ │ │ └── TagLibHtml.class.php
│ │ │ ├── TagLib.class.php
│ │ │ ├── Tags
│ │ │ │ ├── cx.xml
│ │ │ │ └── html.xml
│ │ │ └── ThinkTemplate.class.php
│ │ └── Util
│ │ ├── Behavior.class.php
│ │ ├── Cache
│ │ │ ├── CacheApachenote.class.php
│ │ │ ├── CacheApc.class.php
│ │ │ ├── CacheDb.class.php
│ │ │ ├── CacheEaccelerator.class.php
│ │ │ ├── CacheFile.class.php
│ │ │ ├── CacheMemcache.class.php
│ │ │ ├── CacheShmop.class.php
│ │ │ ├── CacheSqlite.class.php
│ │ │ └── CacheXcache.class.php
│ │ ├── Cache.class.php
│ │ ├── Cookie.class.php
│ │ ├── Debug.class.php
│ │ ├── Dispatcher.class.php
│ │ ├── HtmlCache.class.php
│ │ ├── Session.class.php
│ │ ├── Template
│ │ │ ├── TemplateEase.class.php
│ │ │ ├── TemplateLite.class.php
│ │ │ ├── TemplateSmart.class.php
│ │ │ ├── TemplateSmarty.class.php
│ │ │ └── TemplateThink.class.php
│ │ └── Widget.class.php
│ ├── LICENSE.txt
│ ├── Mode
│ │ ├── Cli
│ │ │ ├── Action.class.php
│ │ │ ├── alias.php
│ │ │ └── App.class.php
│ │ ├── cli.php
│ │ ├── Lite
│ │ │ ├── Action.class.php
│ │ │ ├── alias.php
│ │ │ ├── App.class.php
│ │ │ ├── Db.class.php
│ │ │ ├── Dispatcher.class.php
│ │ │ └── Model.class.php
│ │ ├── lite.php
│ │ ├── Thin
│ │ │ ├── Action.class.php
│ │ │ ├── alias.php
│ │ │ ├── App.class.php
│ │ │ ├── Db.class.php
│ │ │ └── Model.class.php
│ │ └── thin.php
│ ├── ThinkPHP.php
│ ├── Tpl
│ │ ├── PageTrace.tpl.php
│ │ └── ThinkException.tpl.php
│ └── Vendor
│ ├── EaseTemplate
│ │ ├── template.core.php
│ │ └── template.ease.php
│ ├── PHPUnit
│ │ ├── Extensions
│ │ │ ├── Database
│ │ │ │ ├── AbstractTester.php
│ │ │ │ ├── Constraint
│ │ │ │ │ ├── DataSetIsEqual.php
│ │ │ │ │ └── TableIsEqual.php
│ │ │ │ ├── DataSet
│ │ │ │ │ ├── AbstractDataSet.php
│ │ │ │ │ ├── AbstractTableMetaData.php
│ │ │ │ │ ├── AbstractTable.php
│ │ │ │ │ ├── AbstractXmlDataSet.php
│ │ │ │ │ ├── CompositeDataSet.php
│ │ │ │ │ ├── CsvDataSet.php
│ │ │ │ │ ├── DataSetFilter.php
│ │ │ │ │ ├── DefaultDataSet.php
│ │ │ │ │ ├── DefaultTableIterator.php
│ │ │ │ │ ├── DefaultTableMetaData.php
│ │ │ │ │ ├── DefaultTable.php
│ │ │ │ │ ├── FlatXmlDataSet.php
│ │ │ │ │ ├── IDataSet.php
│ │ │ │ │ ├── IPersistable.php
│ │ │ │ │ ├── ITableIterator.php
│ │ │ │ │ ├── ITableMetaData.php
│ │ │ │ │ ├── ITable.php
│ │ │ │ │ ├── Persistors
│ │ │ │ │ │ ├── Abstract.php
│ │ │ │ │ │ ├── FlatXml.php
│ │ │ │ │ │ └── Xml.php
│ │ │ │ │ ├── QueryDataSet.php
│ │ │ │ │ ├── QueryTable.php
│ │ │ │ │ ├── ReplacementDataSet.php
│ │ │ │ │ ├── ReplacementTableIterator.php
│ │ │ │ │ ├── ReplacementTable.php
│ │ │ │ │ ├── TableFilter.php
│ │ │ │ │ ├── TableMetaDataFilter.php
│ │ │ │ │ └── XmlDataSet.php
│ │ │ │ ├── DB
│ │ │ │ │ ├── DataSet.php
│ │ │ │ │ ├── DefaultDatabaseConnection.php
│ │ │ │ │ ├── FilteredDataSet.php
│ │ │ │ │ ├── IDatabaseConnection.php
│ │ │ │ │ ├── IMetaData.php
│ │ │ │ │ ├── MetaData
│ │ │ │ │ │ ├── InformationSchema.php
│ │ │ │ │ │ ├── MySQL.php
│ │ │ │ │ │ ├── Oci.php
│ │ │ │ │ │ ├── PgSQL.php
│ │ │ │ │ │ └── Sqlite.php
│ │ │ │ │ ├── MetaData.php
│ │ │ │ │ ├── ResultSetTable.php
│ │ │ │ │ ├── TableIterator.php
│ │ │ │ │ ├── TableMetaData.php
│ │ │ │ │ └── Table.php
│ │ │ │ ├── DefaultTester.php
│ │ │ │ ├── ITester.php
│ │ │ │ ├── Operation
│ │ │ │ │ ├── Composite.php
│ │ │ │ │ ├── DeleteAll.php
│ │ │ │ │ ├── Delete.php
│ │ │ │ │ ├── Exception.php
│ │ │ │ │ ├── Factory.php
│ │ │ │ │ ├── IDatabaseOperation.php
│ │ │ │ │ ├── Insert.php
│ │ │ │ │ ├── Null.php
│ │ │ │ │ ├── Replace.php
│ │ │ │ │ ├── RowBased.php
│ │ │ │ │ ├── Truncate.php
│ │ │ │ │ └── Update.php
│ │ │ │ └── TestCase.php
│ │ │ ├── GroupTestSuite.php
│ │ │ ├── OutputTestCase.php
│ │ │ ├── PerformanceTestCase.php
│ │ │ ├── PhptTestCase
│ │ │ │ └── Logger.php
│ │ │ ├── PhptTestCase.php
│ │ │ ├── PhptTestSuite.php
│ │ │ ├── RepeatedTest.php
│ │ │ ├── SeleniumTestCase
│ │ │ │ ├── append.php
│ │ │ │ ├── Driver.php
│ │ │ │ ├── phpunit_coverage.php
│ │ │ │ └── prepend.php
│ │ │ ├── SeleniumTestCase.php
│ │ │ ├── Story
│ │ │ │ ├── Given.php
│ │ │ │ ├── ResultPrinter
│ │ │ │ │ ├── HTML.php
│ │ │ │ │ ├── Template
│ │ │ │ │ │ ├── scenario_header.html.dist
│ │ │ │ │ │ ├── scenario.html.dist
│ │ │ │ │ │ ├── scenarios.html.dist
│ │ │ │ │ │ └── step.html.dist
│ │ │ │ │ └── Text.php
│ │ │ │ ├── ResultPrinter.php
│ │ │ │ ├── Scenario.php
│ │ │ │ ├── SeleniumTestCase.php
│ │ │ │ ├── Step.php
│ │ │ │ ├── TestCase.php
│ │ │ │ ├── Then.php
│ │ │ │ └── When.php
│ │ │ └── TestDecorator.php
│ │ ├── Framework
│ │ │ ├── AssertionFailedError.php
│ │ │ ├── Assert.php
│ │ │ ├── ComparisonFailure
│ │ │ │ ├── Array.php
│ │ │ │ ├── Object.php
│ │ │ │ ├── Scalar.php
│ │ │ │ ├── String.php
│ │ │ │ └── Type.php
│ │ │ ├── ComparisonFailure.php
│ │ │ ├── Constraint
│ │ │ │ ├── And.php
│ │ │ │ ├── ArrayHasKey.php
│ │ │ │ ├── Attribute.php
│ │ │ │ ├── ClassHasAttribute.php
│ │ │ │ ├── ClassHasStaticAttribute.php
│ │ │ │ ├── FileExists.php
│ │ │ │ ├── GreaterThan.php
│ │ │ │ ├── IsAnything.php
│ │ │ │ ├── IsEqual.php
│ │ │ │ ├── IsFalse.php
│ │ │ │ ├── IsIdentical.php
│ │ │ │ ├── IsInstanceOf.php
│ │ │ │ ├── IsNull.php
│ │ │ │ ├── IsTrue.php
│ │ │ │ ├── IsType.php
│ │ │ │ ├── LessThan.php
│ │ │ │ ├── Not.php
│ │ │ │ ├── ObjectHasAttribute.php
│ │ │ │ ├── Or.php
│ │ │ │ ├── PCREMatch.php
│ │ │ │ ├── StringContains.php
│ │ │ │ ├── TraversableContainsOnly.php
│ │ │ │ ├── TraversableContains.php
│ │ │ │ └── Xor.php
│ │ │ ├── Constraint.php
│ │ │ ├── Error
│ │ │ │ ├── Notice.php
│ │ │ │ └── Warning.php
│ │ │ ├── Error.php
│ │ │ ├── ExpectationFailedException.php
│ │ │ ├── IncompleteTestError.php
│ │ │ ├── IncompleteTest.php
│ │ │ ├── MockObject
│ │ │ │ ├── Builder
│ │ │ │ │ ├── Identity.php
│ │ │ │ │ ├── InvocationMocker.php
│ │ │ │ │ ├── Match.php
│ │ │ │ │ ├── MethodNameMatch.php
│ │ │ │ │ ├── Namespace.php
│ │ │ │ │ ├── ParametersMatch.php
│ │ │ │ │ └── Stub.php
│ │ │ │ ├── InvocationMocker.php
│ │ │ │ ├── Invocation.php
│ │ │ │ ├── Invokable.php
│ │ │ │ ├── Matcher
│ │ │ │ │ ├── AnyInvokedCount.php
│ │ │ │ │ ├── AnyParameters.php
│ │ │ │ │ ├── Invocation.php
│ │ │ │ │ ├── InvokedAtIndex.php
│ │ │ │ │ ├── InvokedAtLeastOnce.php
│ │ │ │ │ ├── InvokedCount.php
│ │ │ │ │ ├── InvokedRecorder.php
│ │ │ │ │ ├── MethodName.php
│ │ │ │ │ ├── Parameters.php
│ │ │ │ │ └── StatelessInvocation.php
│ │ │ │ ├── Matcher.php
│ │ │ │ ├── MockObject.php
│ │ │ │ ├── Mock.php
│ │ │ │ ├── Stub
│ │ │ │ │ ├── ConsecutiveCalls.php
│ │ │ │ │ ├── Exception.php
│ │ │ │ │ ├── MatcherCollection.php
│ │ │ │ │ ├── ReturnArgument.php
│ │ │ │ │ ├── ReturnCallback.php
│ │ │ │ │ └── Return.php
│ │ │ │ ├── Stub.php
│ │ │ │ └── Verifiable.php
│ │ │ ├── SelfDescribing.php
│ │ │ ├── SkippedTestError.php
│ │ │ ├── SkippedTest.php
│ │ │ ├── SkippedTestSuiteError.php
│ │ │ ├── TestCase.php
│ │ │ ├── TestFailure.php
│ │ │ ├── TestListener.php
│ │ │ ├── Test.php
│ │ │ ├── TestResult.php
│ │ │ ├── TestSuite.php
│ │ │ └── Warning.php
│ │ ├── Framework.php
│ │ ├── Runner
│ │ │ ├── BaseTestRunner.php
│ │ │ ├── IncludePathTestCollector.php
│ │ │ ├── StandardTestSuiteLoader.php
│ │ │ ├── TestCollector.php
│ │ │ ├── TestSuiteLoader.php
│ │ │ └── Version.php
│ │ ├── TextUI
│ │ │ ├── Command.php
│ │ │ ├── ResultPrinter.php
│ │ │ └── TestRunner.php
│ │ └── Util
│ │ ├── Class.php
│ │ ├── CodeCoverage.php
│ │ ├── Configuration.php
│ │ ├── ErrorHandler.php
│ │ ├── Fileloader.php
│ │ ├── Filesystem.php
│ │ ├── FilterIterator.php
│ │ ├── Filter.php
│ │ ├── Getopt.php
│ │ ├── Log
│ │ │ ├── CodeCoverage
│ │ │ │ ├── Database.php
│ │ │ │ └── XML
│ │ │ │ ├── Clover.php
│ │ │ │ └── Source.php
│ │ │ ├── CPD.php
│ │ │ ├── Database
│ │ │ │ ├── MySQL.sql
│ │ │ │ └── SQLite3.sql
│ │ │ ├── Database.php
│ │ │ ├── GraphViz.php
│ │ │ ├── JSON.php
│ │ │ ├── Metrics.php
│ │ │ ├── PEAR.php
│ │ │ ├── PMD
│ │ │ │ ├── Rule
│ │ │ │ │ ├── Class
│ │ │ │ │ │ ├── DepthOfInheritanceTree.php
│ │ │ │ │ │ ├── EfferentCoupling.php
│ │ │ │ │ │ ├── ExcessiveClassLength.php
│ │ │ │ │ │ ├── ExcessivePublicCount.php
│ │ │ │ │ │ └── TooManyFields.php
│ │ │ │ │ ├── Class.php
│ │ │ │ │ ├── File.php
│ │ │ │ │ ├── Function
│ │ │ │ │ │ ├── CodeCoverage.php
│ │ │ │ │ │ ├── CRAP.php
│ │ │ │ │ │ ├── CyclomaticComplexity.php
│ │ │ │ │ │ ├── ExcessiveMethodLength.php
│ │ │ │ │ │ ├── ExcessiveParameterList.php
│ │ │ │ │ │ └── NPathComplexity.php
│ │ │ │ │ ├── Function.php
│ │ │ │ │ ├── Project
│ │ │ │ │ │ └── CRAP.php
│ │ │ │ │ └── Project.php
│ │ │ │ └── Rule.php
│ │ │ ├── PMD.php
│ │ │ ├── TAP.php
│ │ │ └── XML.php
│ │ ├── Metrics
│ │ │ ├── Class.php
│ │ │ ├── File.php
│ │ │ ├── Function.php
│ │ │ └── Project.php
│ │ ├── Metrics.php
│ │ ├── PDO.php
│ │ ├── Printer.php
│ │ ├── Report
│ │ │ ├── Node
│ │ │ │ ├── Directory.php
│ │ │ │ └── File.php
│ │ │ ├── Node.php
│ │ │ └── Template
│ │ │ ├── butter.png
│ │ │ ├── chameleon.png
│ │ │ ├── close12_1.gif
│ │ │ ├── container.css
│ │ │ ├── container-min.js
│ │ │ ├── directory.html.dist
│ │ │ ├── directory_item.html.dist
│ │ │ ├── file.html.dist
│ │ │ ├── file_item.html.dist
│ │ │ ├── file_no_yui.html.dist
│ │ │ ├── glass.png
│ │ │ ├── method_item.html.dist
│ │ │ ├── scarlet_red.png
│ │ │ ├── snow.png
│ │ │ ├── style.css
│ │ │ ├── yahoo-dom-event.js
│ │ │ └── yui_item.js
│ │ ├── Report.php
│ │ ├── Skeleton
│ │ │ ├── Class.php
│ │ │ ├── Template
│ │ │ │ ├── Class.tpl.dist
│ │ │ │ ├── IncompleteTestMethod.tpl.dist
│ │ │ │ ├── Method.tpl.dist
│ │ │ │ ├── TestClass.tpl.dist
│ │ │ │ ├── TestMethodBoolStatic.tpl.dist
│ │ │ │ ├── TestMethodBool.tpl.dist
│ │ │ │ ├── TestMethodExceptionStatic.tpl.dist
│ │ │ │ ├── TestMethodException.tpl.dist
│ │ │ │ ├── TestMethodStatic.tpl.dist
│ │ │ │ └── TestMethod.tpl.dist
│ │ │ └── Test.php
│ │ ├── Skeleton.php
│ │ ├── Template.php
│ │ ├── TestDox
│ │ │ ├── NamePrettifier.php
│ │ │ ├── ResultPrinter
│ │ │ │ ├── HTML.php
│ │ │ │ └── Text.php
│ │ │ └── ResultPrinter.php
│ │ ├── Test.php
│ │ ├── TestSuiteIterator.php
│ │ ├── Timer.php
│ │ ├── Type.php
│ │ └── XML.php
│ ├── SmartTemplate
│ │ ├── class.smarttemplatedebugger.php
│ │ ├── class.smarttemplateparser.php
│ │ └── class.smarttemplate.php
│ ├── Smarty
│ │ ├── Config_File.class.php
│ │ ├── debug.tpl
│ │ ├── internals
│ │ │ ├── core.assemble_plugin_filepath.php
│ │ │ ├── core.assign_smarty_interface.php
│ │ │ ├── core.create_dir_structure.php
│ │ │ ├── core.display_debug_console.php
│ │ │ ├── core.get_include_path.php
│ │ │ ├── core.get_microtime.php
│ │ │ ├── core.get_php_resource.php
│ │ │ ├── core.is_secure.php
│ │ │ ├── core.is_trusted.php
│ │ │ ├── core.load_plugins.php
│ │ │ ├── core.load_resource_plugin.php
│ │ │ ├── core.process_cached_inserts.php
│ │ │ ├── core.process_compiled_include.php
│ │ │ ├── core.read_cache_file.php
│ │ │ ├── core.rm_auto.php
│ │ │ ├── core.rmdir.php
│ │ │ ├── core.run_insert_handler.php
│ │ │ ├── core.smarty_include_php.php
│ │ │ ├── core.write_cache_file.php
│ │ │ ├── core.write_compiled_include.php
│ │ │ ├── core.write_compiled_resource.php
│ │ │ └── core.write_file.php
│ │ ├── Smarty.class.php
│ │ └── Smarty_Compiler.class.php
│ └── TemplateLite
│ ├── class.compiler.php
│ ├── class.config.php
│ ├── class.template.php
│ └── internal
│ ├── compile.compile_config.php
│ ├── compile.compile_custom_block.php
│ ├── compile.compile_custom_function.php
│ ├── compile.compile_if.php
│ ├── compile.generate_compiler_debug_output.php
│ ├── compile.include.php
│ ├── compile.parse_is_expr.php
│ ├── compile.section_start.php
│ ├── debug.tpl
│ ├── template.build_dir.php
│ ├── template.config_loader.php
│ ├── template.destroy_dir.php
│ ├── template.fetch_compile_include.php
│ └── template.generate_debug_output.php
├── Tpl
│ └── default
│ ├── index
│ │ ├── index.html
│ │ ├── insert.html
│ │ ├── news_list.html
│ │ └── update.html
│ └── Public
│ └── success.html
├── web.config
├── 使用说明.txt
└── 数据库备份
└── thinkphp01
└── think_news.frm
93 directories, 446 files
标签:
小贴士
感谢您为本站写下的评论,您的评论对其它用户来说具有重要的参考价值,所以请认真填写。
- 类似“顶”、“沙发”之类没有营养的文字,对勤劳贡献的楼主来说是令人沮丧的反馈信息。
- 相信您也不想看到一排文字/表情墙,所以请不要反馈意义不大的重复字符,也请尽量不要纯表情的回复。
- 提问之前请再仔细看一遍楼主的说明,或许是您遗漏了。
- 请勿到处挖坑绊人、招贴广告。既占空间让人厌烦,又没人会搭理,于人于己都无利。
关于好例子网
本站旨在为广大IT学习爱好者提供一个非营利性互相学习交流分享平台。本站所有资源都可以被免费获取学习研究。本站资源来自网友分享,对搜索内容的合法性不具有预见性、识别性、控制性,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,平台无法对用户传输的作品、信息、内容的权属或合法性、安全性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论平台是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二与二十三条之规定,若资源存在侵权或相关问题请联系本站客服人员,点此联系我们。关于更多版权及免责申明参见 版权及免责申明
网友评论
我要评论