divix1988 / laminas_examples Goto Github PK
View Code? Open in Web Editor NEWLaminas MVC Framework for PHP - Book Examples
License: MIT License
Laminas MVC Framework for PHP - Book Examples
License: MIT License
module\Application\src\Module.php:86
Message:
Class 'Utils\Security\Authentication' not found
in chapter 14
i created class Authentication
in module\Utils\src\Utils\Security
Argument 1 passed to Application\Model\AbstractTable::saveRow() must be an instance of Application\Model\Rowset\AbstractModel, instance of Application\Model\Rowset\User given, called in Application\src\Model\UsersTable.php on line 23
Hello everybody; Olmalek,
problem: "zf-commons/zfc-admin": "dev-I-laminas-migration"
with version Composer 2
Solution: never use Version 2 Composer but maximum version Composer 1.10.19
to change version of Composer for example to version Composer 1.10.19
CMD ==> composer self-update -- 1.10.19
In Chapter 11
$userForm->setAttribute('action', $this->url('users', ['action' => 'add']));
in add.phtml
Form Action url \comics_list
that indexAction class UsersController
not to addAction
Hello everybody, Olmalek,
thanks for book.
can not download using composer1 to 2: divix1988/laminas-twig-module": "^1.1"
(this problem are in many Chapiters of book but form me is important in Chapitre 14 Chapitre 15 Chapitre 16)
Solution: i have tried many versions of composer (version 1.0 to version 2 ...) with command in CMD :
CMD ==> composer self-update -- 1.0
CMD ==> composer self-update -- 1.10.19 (i test many version 1 of Composer until version 2 and last)
but your divix1988/laminas-twig-module is not in Composer and can you add this library to Composer?
For each version i launch in (version 1 to 2...):
CMD ==> composer upgrade (to download library in composer.json in the root of website)
CMD ==> composer info or composer show (but composer didn't find the library divix1988/laminas-twig-module)
Thanks
Thanks for your books, the one for ZF3 and now this one published last month. I was hoping to use a LAMP server to follow along the chapters. One question I had is in chapter two, upon enabling the display of all errors, I get blank white pages when using Centos 8. Is this pretty common? I instead enabled display_errors in php.ini but am not sure if that is acceptable practice. Another question I had was, instead of enabling the Intl PHP extension by uncommenting the line that says ;extension=intl, I could instead install something called php74-php-intl.x86_64 ?
I am appending a sort of protocol I have been using in case it might help... after nearly a dozen tries this is what seems to work...
Starting with new Centos 8 install on private network as user phpcat:
sudo yum -y update
shutdown -r now
sudo yum -y install epel-release https://rpms.remirepo.net/enterprise/remi-release-8.rpm
sudo yum config-manager --set-enabled PowerTools
sudo yum -y install tar wget net-tools gcc make zip unzip emacs nkf
sudo yum -y install mariadb mariadb-server mariadb-devel
sudo systemctl enable mariadb.service
sudo systemctl start mariadb.service
mysql_secure_installation
sudo yum -y module install php:remi-7.4
sudo yum -y install zlib-devel curl-devel openssl-devel httpd-devel apr-devel apr-util-devel libffi-devel
sudo yum -y install php-bcmath php-dba php-dbg php-embedded php-enchant php-gd php-gmp php-intl php-ldap php-mysqlnd php-odbc php-opcache php-pdo php-pgsql php-process php-recode php-snmp php-soap php-xmlrpc
systemctl enable httpd
systemctl start httpd
systemctl status httpd
firewall-cmd --permanent --add-service=http
firewall-cmd --permanent --add-service=https
firewall-cmd --reload
cd /etc
sudo nano php.ini
sudo touch /var/log/php_error.log
sudo chown apache:apache /var/log/php_error.log
sudo chmod 666 /var/log/php_error.log
systemctl restart httpd
sudo yum -y install ImageMagick ImageMagick-devel
cd /home/phpcat
sudo wget https://getcomposer.org/installer -O composer-installer.php
sudo php composer-installer.php --filename=composer --install-dir=/usr/local/bin
composer self-update
sudo rm -f composer-installer.php
sudo yum -y install git
su - phpcat
sudo mkdir /var/www/html/laminas_app
sudo chown phpcat /var/www/html/laminas_app
composer create-project -s dev laminas/laminas-mvc-skeleton /var/www/html/laminas_app
#Now when I visit http://lamp.localdomain/laminas_app/public/ I see the Laminas MVC Skeleton welcome page.
sudo yum list php7*intl
sudo yum install php74-php-intl.x86_64
systemctl resetart httpd
#I can stil see the Laminas MVC Skeleton welcome page and toolbar!
sudo nano /var/www/html/laminas_app/index.php
Thanks for your books, the one for ZF3 and now this one published last month. I was hoping to use a LAMP server to follow along the chapters. One question I had is in chapter two, upon enabling the display of all errors, I get blank white pages when using Centos 8. Is this pretty common? I had another concern about international extension but have learned this is done differently when using Centos8.
Line 71 of BootstrapFormRow:
if ($element instanceof Submit)
The following fixes the issue for me:
if ($element instanceof Submit || $element instanceof Button)
The button class is listed in the use statements which makes me think it might have just been an oversight :)
Class BootstrapFormRow line: 74
$classString = 'form-check-input';
Causes the checkbox to overlap the label making it unreadable. The following change fixes it for me in Firexfox Developer Edition and the most recent Google Chrome. Both on windows 10
$classString = 'form-check';
When using the helper with a Captcha element in a form there is an undefined index reported on line 138 due to $type being null. Adding !empty($type) appears to have fixed it for me. If I run into any problems I will updated the issue. Check is on line 94.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.