CakePHP Cookbook 2.x
Controller class KissesAndHugsController would be found in a file named KissesAndHugsController.php The Component class MyHandyComponent would be found in a file named MyHandyComponent.php The Model class OptionValue Extensions (“Components”) A Component is a class that aids in controller logic. If you have some logic you want to share between controllers (or applications), a component is usually a good fit. As an chapter. View Extensions (“Helpers”) A Helper is a class that aids in view logic. Much like a component used among controllers, helpers allow presentational logic to be accessed and shared between views0 码力 | 1096 页 | 958.62 KB | 1 年前3CakePHP Cookbook 2.x
class KissesAndHugsController would be found in a file named KissesAndHugsCon- troller.php • The Component class MyHandyComponent would be found in a file named MyHandyComponent.php • The Model class OptionValue Extensions (“Components”) A Component is a class that aids in controller logic. If you have some logic you want to share between controllers (or applications), a component is usually a good fit. As an chapter. View Extensions (“Helpers”) A Helper is a class that aids in view logic. Much like a component used among controllers, helpers allow presentational logic to be accessed and shared between views0 码力 | 820 页 | 2.52 MB | 1 年前3CakePHP Cookbook 3.x
Integration with FormHelper CSRF Protection and AJAX Requests Disabling the CSRF Component for Specific Actions Security Component Handling Blackhole Callbacks Restrict Actions to SSL Restricting Cross Controller Controller Communication Form Tampering Prevention Usage CSRF Protection Disabling Security Component for Specific Actions Sessions Session Configuration Built-in Session Handlers & Configuration Session longer – and you’ll also be lightening our support load. Both the manual and the API have an online component. The Bakery https://bakery.cakephp.org The CakePHP Bakery is a clearing house for all things0 码力 | 1244 页 | 1.05 MB | 1 年前3CakePHP Cookbook 3.x
longer – and you’ll also be lightening our support load. Both the manual and the API have an online component. The Bakery https://bakery.cakephp.org The CakePHP Bakery is a clearing house for all things class LatestArticlesController would be found in a file named LatestArticlesCon- troller.php • The Component class MyHandyComponent would be found in a file named MyHandyComponent.php • The Table class OptionValuesTable add your article.')); } $this->set('article', $article); } } Note: You need to include the Flash component in any controller where you will use it. Often it makes sense to include it in your AppController0 码力 | 967 页 | 2.80 MB | 1 年前3CakePHP Cookbook 4.x
longer – and you’ll also be lightening our support load. Both the manual and the API have an online component. The Bakery https://bakery.cakephp.org The CakePHP Bakery is a clearing house for all things class LatestArticlesController would be found in a file named LatestArticlesController.php The Component class MyHandyComponent would be found in a file named MyHandyComponent.php The Table class OptionValuesTable functions they display, in an underscored form Helper ArticlesHelper.php MenuLinksHelper.php Component ArticlesComponent.php MenuLinksComponent.php Plugin Bad: cakephp/articles Good: you/cakephp- articles0 码力 | 1249 页 | 1.04 MB | 1 年前3CakePHP Cookbook 4.x
longer – and you’ll also be lightening our support load. Both the manual and the API have an online component. The Bakery https://bakery.cakephp.org The CakePHP Bakery is a clearing house for all things class LatestArticlesController would be found in a file named LatestArticlesCon- troller.php • The Component class MyHandyComponent would be found in a file named MyHandyComponent.php • The Table class OptionValuesTable add your article.')); } $this->set('article', $article); } } Note: You need to include the Flash component in any controller where you will use it. Often it makes sense to include it in your AppController0 码力 | 967 页 | 2.88 MB | 1 年前3CakePHP Cookbook Documentation 5.x
longer – and you’ll also be lightening our support load. Both the manual and the API have an online component. The Bakery https://bakery.cakephp.org The CakePHP Bakery is a clearing house for all things class LatestArticlesController would be found in a file named LatestArticlesController.php The Component class MyHandyComponent would be found in a file named MyHandyComponent.php The Table class OptionValuesTable MenuLinksBehavior.php View ArticlesView.php MenuLinksView.php Helper ArticlesHelper.php MenuLinksHelper.php Component ArticlesComponent.php MenuLinksComponent.php Plugin Bad: cakephp/articles Good: you/cakephp- articles0 码力 | 1080 页 | 939.39 KB | 1 年前3CakePHP Cookbook Documentation 5.x
longer – and you’ll also be lightening our support load. Both the manual and the API have an online component. The Bakery https://bakery.cakephp.org The CakePHP Bakery is a clearing house for all things class LatestArticlesController would be found in a file named LatestArticlesCon- troller.php • The Component class MyHandyComponent would be found in a file named MyHandyComponent.php • The Table class OptionValuesTable add your article.')); } $this->set('article', $article); } } Note: You need to include the Flash component in any controller where you will use it. Often it makes sense to include it in your AppController0 码力 | 848 页 | 2.53 MB | 1 年前3Falcon v3.0.0 Documentation
convert any instance or subclass of falcon.HTTPError raised by a responder, hook, or middleware component into an appropriate HTTP response. You may raise an instance of falcon.HTTPError directly, or use pifpaf run redis -- uvicorn asgilook.asgi:app We will perform caching with a Falcon Middleware component. Again, note that all middleware callbacks must be asynchronous. Even initializing the Redis connection DEFAULT_REDIS_HOST self.uuid_generator = Config.DEFAULT_UUID_GENERATOR Let’s complete the Redis cache component by implementing two more middleware methods, in addition to process_startup(). Create a cache.py0 码力 | 1055 页 | 739.30 KB | 1 年前3Falcon v3.0.1 Documentation
convert any instance or subclass of falcon.HTTPError raised by a responder, hook, or middleware component into an appropriate HTTP response. You may raise an instance of falcon.HTTPError directly, or use pifpaf run redis -- uvicorn asgilook.asgi:app We will perform caching with a Falcon Middleware component. Again, note that all middleware callbacks must be asynchronous. Even initializing the Redis connection DEFAULT_REDIS_HOST self.uuid_generator = Config.DEFAULT_UUID_GENERATOR Let’s complete the Redis cache component by implementing two more middleware methods, in addition to process_startup(). Create a cache.py0 码力 | 1058 页 | 741.59 KB | 1 年前3
共 59 条
- 1
- 2
- 3
- 4
- 5
- 6