Quantcast
Channel: Web Development Tips » CakePHP
Browsing all 6 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

Pagination in CakePHP

In the controller file like I have Employeecontroller.php, write the following code: <?php class EmployeeController extends AppController { public $paginate = array( ‘limit’ => 2, ‘order’ =>...

View Article


Image may be NSFW.
Clik here to view.

Confirm before Deleting post in CakePHP

In the controller, create a delete function: <?php class EmployeeController extends AppController { public function delete($id) { $this->Employee->delete($id);...

View Article


Image may be NSFW.
Clik here to view.

Login with Google in CakePHP

Implementing Google login system in your website is very easy with OAuth2 support, a simple and standard authorization method. With minimal line of PHP codes, we can acquire required user information...

View Article

Image may be NSFW.
Clik here to view.

[RFC] PHP 5.4 Strict Error Reporting

Testing with PHP 5.4 at E_ALL produces strict warning messages such as: Strict (2048): Declaration of Product::beforeSave() should be compatible with Model::beforeSave($options = Array)...

View Article

Image may be NSFW.
Clik here to view.

CakePHP 2.0 Naming Conventions

The PHP’s popular Framework has some Naming conventions that need to be followed at the time of development. Controller Conventions Controller class names are plural, CamelCased, and end in Controller...

View Article


Image may be NSFW.
Clik here to view.

Add onClick event on form input with multiple checkbox

To add a javascript onclick event on a form input with multiple checkbox, use this alternative method: $options = array(); foreach($roles as $value => $label) { $options[] = array( 'name' =>...

View Article
Browsing all 6 articles
Browse latest View live