Skip to content

Tag: php

Installing Composer OpenSSL Issue

I am trying to install composer however when I go to install it I get this error: I currently have php 5.4.31 and I am running WAMP2.2 I’ve checked my php.ini file in the bin/php/php5.4.31/ and ensured that the following line is uncommented: The error still resolves and I’m at a loss as to how I c…

Zend redirect to controller if action not exist

For example I have action example.com/books/list But I made mistake and write example.com/books/lists, action lists not exist, how to redirect to controller/index if action not exist. To check before go to action I can use preDispatch(), but how to check do this action exist ? Answer Here is a function to che…

Zend framework ‘Method “init” does not exist

When I submit POST I get Fatal error: I try to disable layout with: But also get same Fatal error. I get an error in this line : Where can be problem in my aplication ? Answer I think the error comes from the adapter you’re using. If you’re athenticating the user via a database table, I suggest yo…

MySQL automatically updating field when inserting data

I’m making a web application to make customers order items for anything. For that I’ve made a MySQL database which has the following tables: customers orders orders-items products In the customers table is all the information about the person such as: The customer ID, for the primary key and auto …

Laravel Simple Month Selection

y tried retrieve month from date field “fechas” (datetime type) where testing with SQL clause MONTH not works… thanks for replies Answer You could use the hide gem whereMonth: I highly recommend to you read the Builder.php source to search for another gems. 🙂 https://github.com/laravel/frame…