hi ..<br>i am facing a problem in view filters. actually i have create a view and it has 3 argument. i want that these argument are used as value in filter.<br><br>i tried this code but it is not working.<br>if any body has solution please post it. I am very thankful.<br>
Regards<br><br><div class="codeblock"><code><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 187);"><?php<br></span><span style="color: rgb(0, 119, 0);">if (</span><span style="color: rgb(0, 0, 187);">$args</span><span style="color: rgb(0, 119, 0);">[</span><span style="color: rgb(0, 0, 187);">0</span><span style="color: rgb(0, 119, 0);">]) {<br>
</span><span style="color: rgb(0, 0, 187);">$view</span><span style="color: rgb(0, 119, 0);">-></span><span style="color: rgb(0, 0, 187);">filter</span><span style="color: rgb(0, 119, 0);">[</span><span style="color: rgb(0, 0, 187);">0</span><span style="color: rgb(0, 119, 0);">][</span><span style="color: rgb(221, 0, 0);">'value'</span><span style="color: rgb(0, 119, 0);">] = </span><span style="color: rgb(0, 0, 187);">$args</span><span style="color: rgb(0, 119, 0);">[</span><span style="color: rgb(0, 0, 187);">0</span><span style="color: rgb(0, 119, 0);">]; </span><span style="color: rgb(255, 128, 0);">// set the value of filter[0]<br>
</span><span style="color: rgb(0, 119, 0);">}<br><br>if (</span><span style="color: rgb(0, 0, 187);">$args</span><span style="color: rgb(0, 119, 0);">[</span><span style="color: rgb(0, 0, 187);">1</span><span style="color: rgb(0, 119, 0);">]) {<br>
</span><span style="color: rgb(0, 0, 187);">$view</span><span style="color: rgb(0, 119, 0);">-></span><span style="color: rgb(0, 0, 187);">filter</span><span style="color: rgb(0, 119, 0);">[</span><span style="color: rgb(0, 0, 187);">1</span><span style="color: rgb(0, 119, 0);">][</span><span style="color: rgb(221, 0, 0);">'value'</span><span style="color: rgb(0, 119, 0);">] = </span><span style="color: rgb(0, 0, 187);">$args</span><span style="color: rgb(0, 119, 0);">[</span><span style="color: rgb(0, 0, 187);">1</span><span style="color: rgb(0, 119, 0);">]; </span><span style="color: rgb(255, 128, 0);">// set the value
of filter[1]<br></span><span style="color: rgb(0, 119, 0);">}<br><br></span><span style="color: rgb(0, 0, 187);">$view</span><span style="color: rgb(0, 119, 0);">-></span><span style="color: rgb(0, 0, 187);">is_cacheable </span><span style="color: rgb(0, 119, 0);">= </span><span style="color: rgb(0, 0, 187);">0</span><span style="color: rgb(0, 119, 0);">;<br>
</span><span style="color: rgb(0, 0, 187);">?><br><br></span></span></code>if any body has solution please post it. I am very thankful.<br>
Regards<br>Sidharth<br>
<br><code><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 187);"><br><br></span></span></code></div><div style="visibility: hidden; display: inline;" id="avg_ls_inline_popup"></div><style type="text/css">#avg_ls_inline_popup { position:absolute; z-index:9999; padding: 0px 0px; margin-left: 0px; margin-top: 0px; width: 240px; overflow: hidden; word-wrap: break-word; color: black; font-size: 10px; text-align: left; line-height: 13px;}</style>