Questions tagged [laminas]

Laminas (previously Zend Framework), is an open source general purpose application framework implemented in PHP and licensed under the New BSD license.

Laminas, previously , is an open source web application framework implemented in PHP and licensed under the New BSD license.

The Laminas Project is comprised of the following sub-projects:

154 questions
1
vote
0 answers

Using Zend Framework 1 library in Laminas API tools - auto loading vendor prefix class

I am working on a Laminas API tools (version 1.4) project. There is ZF1 library which I need in my code. the structure of library is: DirectoryA .DirectoryB file1.php =====> DirectoryA_DirectoryA_className as shown above class…
Akhtar
  • 11
  • 2
1
vote
2 answers

laminas: application wide access of variables from config files

i'm on this for several hours. i'm looking for a way to access easily application wide variables from config files. i've read under https://discourse.laminas.dev/t/define-global-constant-for-use-site-wide/1455 that constants are not a good way. on…
jan7007
  • 41
  • 4
1
vote
2 answers

Doctrine ORM\Table(name="name") not working

My Entity class: use Doctrine\ORM\Mapping as ORM; /** * CustomerEntity * @ORM\Entity * @ORM\Table(name="customers") * @ORM\Table(uniqueConstraints={ * @ORM\UniqueConstraint(name="email", columns={"email"}), * }) *…
Adarsh Khatri
  • 358
  • 1
  • 5
  • 23
1
vote
1 answer

Does Laminas Framework DB Adapter automatically strip tags etc. like mysqli_real_escape_string?

I'm using Laminas framework (formerly ZEND Framework) and would like to know if the DB Adapter automatically strip tags etc. at Insert and Select Statements / Execution ($statement->prepare() / $statement->execute()->current()) to avoid SQL…
jan7007
  • 41
  • 4
1
vote
0 answers

PHP session expires on airtel wifi hotspot. How can I debug this?

This can be a strange error based on a network connection from India. My php session is expiring frequently for the last few days when connected to internet with wifi from Cellular Hotspot. This is felt only when connected to my particular cellular…
1
vote
1 answer

Laminas hide errors on productive server

For my website, I use Laminas. I run it locally on a development server and on a public productive server. I want to hide errors to the public and only let them be visible on the dev server. Therefore I wrote these lines into the public/index.php…
Boba Fit
  • 819
  • 6
  • 17
1
vote
1 answer

How to get module name using shardManager in Laminas?

I need to get the module name of dispatched request within Module.php onBootstrap method in a zf3 application. With the previous version (which was under Zend namespace) I was able to do that by using shared event manager as mentioned below. public…
sasitha999
  • 386
  • 1
  • 3
  • 12
1
vote
0 answers

Gmail smtp xoauth2 via laminas(zend)mail

I have a small problem with gmail authentication, trying to connect via the token received by OAuth2. I put my code below. try { $xOAuthRequest = base64_encode('user=' . $account->getSmtpServer()->getLogin() . "\1auth=Bearer " .…
Dawid Walczyk
  • 19
  • 1
  • 3
1
vote
1 answer

Connecting To Mongo Replica Set With Doctrine MongoODM Module

We are in the process of updating our API's MongoDB hosting provider from mLab to MongoDB Atlas. I have updated our connection server to PHP 7.4 with MongoDB PHP extension 1.7.4. I have updated our API framework from Apigility to Laminas API Tools…
Jamie_D
  • 979
  • 6
  • 13
1
vote
1 answer

How to get $id from url parameter in Laminas?

if i have url like: http://localhost/customer/view/7 'route' => '/customer[/:action[/:id]]' I want to get 7 as $id for my editAction() but i cant use $id = (int) $this->params()->fromRoute('id' , '0'); So how can i get it? Thank you
1
vote
0 answers

What is function setInputFilter() in Laminas Framework and how can use it?

i have to learn about laminas framework for my job and got stuck about Forms and Action in https://docs.laminas.dev/tutorials/getting-started/forms-and-actions/ As you can see public function setInputFilter(InputFilterInterface $inputFilter) { …
0
votes
0 answers

How do I fix the Laminas HelperPluginManager already being declared in laminas-view?

I have just upgraded an old Zend Framework (version 2) project using the laminas migration package. All worked well during the migration but now I get an error when trying to view the site; Warning: Class "Laminas\View\HelperPluginManager" not found…
Danny Connolly
  • 879
  • 3
  • 10
  • 27
0
votes
0 answers

I'm doing a laminas framework tutorial and getting some errors trying to access localhost/album

The error code is Laminas\ServiceManager\Exception\ServiceNotFoundException File: D:\Projects\validation\vendor\laminas\laminas-servicemanager\src\ServiceManager.php:586 The error message is Unable to resolve service…
oskar
  • 1
0
votes
0 answers

Laminas abstract factories calling order

I have list of my own abstract factories in module.config.php of my module: 'service_manager' => [ 'abstract_factories' => [ \Base\Logic\Factory\AbstractLogicFactory::class, \Base\Form\AbstractFormFactory::class, …
b4rt3kk
  • 1,419
  • 3
  • 17
  • 26
0
votes
0 answers

Laminas filesystem cache usage

I'm trying to use file cache in my app. Steps I'm doing: require laminas/laminas-cache-storage-adapter-filesystem adding section to my autoload/cache.global.php: 'filesystem' => [ 'name' => 'filesystem', 'options' => [ …
Cawa
  • 1,269
  • 3
  • 25
  • 44
1 2
3
10 11