How to use custom library in zf2

How to use custom library in zf2,custom namesapce in zf2, custom class in zf2 We can use all folder library and create a custom Namespace.Like PHPExcel and Twilio both are library folder. We can use all class files as library and create a custom Namespace.Like PHPExcel.php and IOFactory.php both are library files. ...

Read more

How to use laravel layout

Blade is a powerful easy to use template with Laravel. Some usefull key or function which is used in given below template. @extends('layouts.master') extends the master layout @section('title', 'Users List') sets the value of the title section. @include('layout.menu') used to load a sub view from within a view. @yield('contents') place holder for the content in the view that we will load from the Front cont ...

Read more

Start laravel 5 framework

Install composer create-project --prefer-dist laravel/laravel projectname Database connection projectname/config/database.php if not connected please check this file for environment. projectname/.env then Run command to clear cache :- php artisan config:clear Check Permission of projactname/storage folder if not display "Laravel 5" then use this command chmod 777 -R storage/ Change default message Goto chec ...

Read more

How to create module in zf3

Create new module (Admin) 1.create all structural folders and file Like Admin->src,view,controller,module.php etc 2.goto:-composer.json //Add these line 3.Goto config/modules.config.php //Add these line 4.use command -> 5.Goto module/Admin/config/module.config.php //invoke controller ...

Read more

Basic Tips to secure PHP Application

Always use these tips to protect against SQL injection Validation Prepared statement limited Privilege of database user Validation You can use mysql_real_escape_string() to validate the requested value. Prepared statement It is used to run queries fast and secure.It's defence mechanism against SQL injection attacks. limited Privilege of database user Provide limited privilege of database user like(select,up ...

Read more

© 2014 Powered By