Set the necessary parameter values in my own action
Forum rules
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
- ahmed31916
- Advanced
- Posts: 148
- Joined: 14 Apr 2022, 12:15
Set the necessary parameter values in my own action
Hello,
What if I tried to set the necessary parameter values in my own action like this:
what is refers to?
What if I tried to set the necessary parameter values in my own action like this:
Code: Select all
$this->object()->data( $this->view(), $this->tags, $this->expire );
Code: Select all
$this->object()
Re: Set the necessary parameter values in my own action
If you add a decorator to an object which wraps the object, you get an onion-like structure, e.g.:
The "$this->object()" returns the inner object (if called from MyDecorator, it will return MyClass) and you pass the parameters you got in your method down to the next object.
Code: Select all
SomeDecorator (
MyDecorator (
Myclass
)
)
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star
- ahmed31916
- Advanced
- Posts: 148
- Joined: 14 Apr 2022, 12:15
Re: Set the necessary parameter values in my own action
How can I do if "myclass" is a blade file "myclass.blade.php"?
in another words, how to set these parameters in "myclass.blade.php" by the action?
in another words, how to set these parameters in "myclass.blade.php" by the action?
Re: Set the necessary parameter values in my own action
Assign your variable in the addData() method to the view object (which is an adapter to the blade view):
https://aimeos.org/docs/latest/frontend ... s/#example
https://aimeos.org/docs/latest/frontend ... s/#example
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star