Coder Social home page Coder Social logo

laminas_examples's People

Contributors

adam-omelak avatar divix1988 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

laminas_examples's Issues

Use of form-check-input

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';

Captcha

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 couple concerns when using Centos 8 instead of XAMPP

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.

An error occurred when save data

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

Class not found

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

Problem with route

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

A few concerns when using Centos 8 instead of XAMPP

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

made certain changes...

> error_log = /var/log/php_error.log

> date.timezone = America/Los_Angeles

> pdo_mysql.default_socket=/var/lib/mysql/mysql.sock

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

From within /home/phpcat ... seems to be the only place this will work from...

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

[ __DIR__ . '/../view', ], 'base_path' = > '/laminas_app/public/' sudo nano /var/www/html/laminas_app/public/index.php #Added the following lines just after line 1 where it says

Not in composer and impossible to download using composer: divix1988/laminas-twig-module": "^1.1"

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)

  1. Many bug with library are often do beacause i used Composer version 2 but i rollback to Composer 1 but big problems

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)

  1. Which version of Composer dio you use for the book?

Thanks

problem: "zf-commons/zfc-admin": "dev-I-laminas-migration"

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

Button class is not supported

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 :)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.