Cover image for Kohana 3.0 Beginner’s Guide.
Kohana 3.0 Beginner’s Guide.
Title:
Kohana 3.0 Beginner’s Guide.
Author:
Straughan, Jason D.
ISBN:
9781849512411
Personal Author:
Edition:
1st ed.
Physical Description:
1 online resource (387 pages)
Contents:
Kohana 3.0 Beginner's Guide -- Table of Contents -- Kohana 3.0 Beginner's Guide -- Credits -- About the Author -- About the Reviewers -- www.PacktPub.com -- Support files, eBooks, discount offers and more -- Why Subscribe? -- Free Access for Packt account holders -- Preface -- Brief history of Kohana -- Kohana's user guide and API reference -- Structure and patterns -- HMVC in a nutshell -- Models, Views, and Controllers -- Alternative syntax -- Routing and request overview -- What this book covers -- Who this book is for -- Conventions -- Time for action-heading -- What just happened? -- Pop quiz-heading -- Have a go hero-heading -- Reader feedback -- Customer support -- Errata -- Piracy -- Questions -- 1. Getting Started -- System requirements -- Case Study -- Downloading and installing from the Web -- Time for action-Downloading from web -- What just happened? -- Installing Kohana from GitHub -- Time for action-downloading using Git -- What just happened? -- Advanced installation with Git -- Taking inventory -- Preparing the Filesystem -- Testing the environment -- Configuring Kohana for Development Environment -- Time for action-Setting your Timezone -- What just happened? -- Configuring URL settings -- Time for action-setting base URL -- What just happened? -- Setting up the Application Environment -- Time for action-Setting Kohana::environment -- What just happened? -- Enabling modules -- Time for action-Enabling the User Guide -- What just happened? -- Creating a default config file -- Server configuration -- Configuring Apache -- Configuring nginx -- Testing your configuration -- Pop quiz-Installation and Configuration -- Summary -- 2. Using Views and Controllers -- What are controllers and views? -- Anatomy of a view -- Anatomy of a controller -- Updating our Welcome Controller.

Time for action-Getting our controller action to use a view file -- What just happened? -- Passing data to the view -- Using the factory( ) method -- Time for action-Passing data via the factory method -- What just happened? -- Using view variables -- Time for action-Passing data as view variables -- What just happened? -- Using the set( ) method -- Time for action-Passing data using the set() method -- What just happened? -- Using the bind( ) method -- Time for action-Passing data using the bind( ) method -- What just happened? -- Putting it all together -- Time for action-Passing data using multiple methods -- What just happened? -- Pop quiz-Controller conventions and View variables -- Using the Template Controller -- Time for action-Extending Kohana's Template Controller -- What just happened? -- Examining the Template controller -- Have a go hero-Explore controllers and view variables -- Setting global view variables -- Time for action-Setting global view variables -- What just happened? -- Binding global view variables -- Time for action-Binding global view variables -- What just happened? -- Beyond the Welcome Controller -- Creating new controllers -- Time for action-Creating our first controller -- What just happened? -- Time for action-Expanding on our first controller -- What just happened? -- Creating a base controller -- Time for action-Creating an abstract controller -- What just happened? -- Pop quiz-Controllers and views -- Putting it all together -- Time for action-Adding stylesheets to template -- What just happened? -- Adding structure to view files -- Time for action-Adding header and footer view files -- What just happened? -- Have a go hero-Customize quickly and easily -- Summary -- 3. Routing and Request Handling -- Hierarchy is King in Kohana -- Cascading filesystem -- Request flow in Kohana -- Using the Request object.

Creating a profile page to render messages -- Time for action-Creating a profile page with messages -- What just happened? -- Calling a new request inside a request -- Time for action-Creating a request within a request -- What just happened? -- Have a go hero-Create a request from within a view -- Routing in Kohana -- Time for action-Making profiles dynamic using ID -- What just happened? -- Creating friendly URLs using custom routes -- Time for action-Creating a Custom Route -- What just happened? -- Making routes explicit -- Time for action-Adding regex to a route -- What just happened? -- Allowing additional data in a URI -- Time for action-Allowing additional segments in a route -- What just happened? -- Using subdirectories with routes -- Time for action-Using Subdirectories and Routes -- What just happened? -- Pop quiz-Understanding Routes and the Kohana Filesystem -- Summary -- 4. Working with Helpers and Classes -- Autoloading classes -- Introducing helpers -- The Date class -- Have a go hero-Customizing fuzzy date text -- The HTML Class -- The HTML::chars() method -- The HTML::obfuscate() method -- The HTML::email() method -- The HTML::anchor() method -- The HTML::image() method -- The HTML::mailto() method -- The Inflector Class -- The URL class -- The URL::title() method -- The URL::base() method -- The URL::query() method -- The Arr (Array) Class -- The Arr::get() method -- The Arr::extract() method -- The Arr::pluck() method -- The Arr::merge() method -- The Arr::overwrite() method -- The Arr::flatten() method -- The Arr::unshift() method -- The Arr::map() method -- The Arr::is_array() method -- The Arr::range() method -- The Cookie class -- The Encrypt (Encryption) Class -- Time for action-Creating configuration for Encryption -- What just happened? -- The Feed Class -- The Form Class.

Time for action-Creating a login form using the Form helper class -- What just happened? -- Time for action-Creating a signup form for new users -- What just happened? -- Have a go hero-Creating a lost password reset form -- Extending Helpers -- Transparent Class Extension -- Time for action-Extending the HTML helper method -- What just happened? -- Creating your own helpers -- Summary -- 5. Installing and Configuring Modules -- Anatomy of a Module -- Loading and configuring modules -- Bundled modules -- User guide module -- Image module -- oAuth module -- Database and ORM modules -- Time for action-Configuring your application to use a database -- What just happened? -- Time for action-Creating a database table and using the query builder -- What just happened? -- Pagination module -- Time for action-Adding pagination to database results -- What just happened? -- Have a go hero-Explore the Pagination module -- Auth module -- Code Bench module -- Cache and Unit Test modules -- Installing modules -- Installing modules from source files -- Time for action-Installing a module from an archive -- What just happened? -- Installing modules via Git -- Time for action-Installing a module using git -- What just happened? -- Creating your own modules -- Pop quiz-Working with Modules -- Summary -- 6. Interacting with the Database -- Anatomy of a model -- Creating models -- Using the Database module -- Configuring the Database module -- Creating and running queries -- Using the Query Builder -- Select statements -- Using results -- Time for action-Refactoring Model_Message to allow dynamic search -- What just happened? -- Have a go hero-Adding new messages page using query builder -- Insert statements -- Time for action-Adding the ability to insert messages in case study site -- What just happened? -- Updating statements.

Time for action-Add ability to edit messages in case study site -- What just happened? -- Delete statements -- Time for action-Add ability to delete messages from the case study site -- What just happened? -- Other functions and expressions -- Using the Database Module with sessions -- Configuring database sessions -- Time for action-Adding session handling with the database adapter -- What just happened? -- Using Database Sessions -- Pop quiz-Using the Database Module -- Summary -- 7. Using the ORM and Auth Modules -- Using the ORM module -- Setting up the ORM module -- Convention over configuration -- ORM API Overview -- Time for action-Updating Message Model to use ORM -- What just happened? -- ORM, Forms, and Validation -- The Validation class -- Time for action-Adding validation to Message Model -- What just happened? -- ORM and Relational Data -- Using the Auth module -- Configuring the Auth module -- Time for action-Adding users and Auth to case study site -- What just happened? -- Implementing the Auth module -- Time for action-Adding the Auth functionality to the case study site -- What just happened? -- Securing controllers and actions -- Time for action-Adding secure actions to the case study site -- What just happened? -- Have a go hero-Adding new messages page using query builder -- Pop quiz-Using the ORM and Auth modules -- Summary -- 8. Troubleshooting and Error Handling -- Debugging code with Kohana -- Debugging with the Kohana class -- Error and exception handling -- Time for action-Adding error messages to signup form -- What just happened? -- Have a go hero-Add error messages to login form -- Disabling the error handler -- Viewing the error logs -- Handling 404 redirects -- Time for action-Adding a custom 404 page -- What just happened? -- Profiling our applications -- Time for action-Adding profiling to the case study project.

What just happened?.
Abstract:
Develop professional web applications with Kohana.
Local Note:
Electronic reproduction. Ann Arbor, Michigan : ProQuest Ebook Central, 2017. Available via World Wide Web. Access may be limited to ProQuest Ebook Central affiliated libraries.
Electronic Access:
Click to View
Holds: Copies: