I want an object in my partial. I want to use object variables and functions in partial. Is it possible to pass an object to the include_partial () function? Or how can I access an object in partial? I do not want to set the object in a symfony request.
In this way:
include_partial('moduleName/partialName', array( 'object1' => $Object1, 'object2' => $Object2 ));
then in partial use $ object1, $ object2, etc.
Source: https://habr.com/ru/post/1434361/More articles:C unsigned char array of strings - cHow to recover deleted git branch? - gitAndroid ActionBarSherlock Custom View - androidwhat is the fastest way to convert a string timestamp to an era using python? - pythonHow can a control be notified when its parent gains and loses focus in Delphi? - delphifaster way to process a time string using python - pythonSubject 1: EXC_BAD_ACCESS (code = 1, address = 0x30000008) there was a problem - iosHow can I start a UITableView section with number 0 when I have multiple sections? - iosFlash in Gmail to upload files - javascriptfiltering switches in jquery, comparing values - jqueryAll Articles