zend-view Questions

4

Solved

I'm looking for a php function which can mask credit card & bank information such as routing number and account numbers. I need to mask many formats, so the existing stack overflow answers don'...
Kalila asked 10/10, 2011 at 20:25

7

By default the page is set like this in the Application module.config array: 'template_map' => array( 'error/404' => __DIR__ . '/../view/error/404.phtml' I want to change the page. I want...

4

I want my customer section to be https, e.g. registration, login, personal details, order details, etc. I have set up my route to include the https scheme (I can access the customer section via htt...

2

How I can obtain traslator locale in my view? I want to do it starting from the variable $this (the PhpRenderer of the view). i.e. I don't want use onBootstrap nor ActionController because I don't...

3

I wanted to access the application config from a view. How can I achieve that in ZF 2?
Brest asked 14/5, 2013 at 11:25

3

Solved

I have the following controller that, among other methods it has this one: class EquipasController extends OccControllerAction { public function listaAction() { $this->_helper->viewRend...
Snippet asked 26/11, 2010 at 18:1

2

Solved

Is it possible in ZendFramework to set custom template when I call some action ? For example I call /category/show/id/123 and View is rendering /category/show.html file. I want to be able to rende...
Gantry asked 29/6, 2010 at 8:24

8

Solved

In my project I have a number of dynamic elements that are consistently on every page. I have put these in my layout.phtml My question is: How can I send variables into my layout from my controlle...
Regen asked 8/10, 2009 at 13:9

3

Solved

In Zend Framework 2.1.4 I am using the standard form view helpers to render out my form elements. When I try: <?php echo $this->formRow($form->get('Title'));?> The label text and in...
Bronez asked 11/4, 2013 at 10:59

3

Solved

I need to change the output of Zend_View_Helper_Navigation_Menu. I've found the two functions that I'll need to modify, and I know how to make the changes I need. What I don't know is how to make t...
Adalai asked 2/3, 2010 at 16:19

7

Solved

I am using this ViewScript for my standard form elements: <div class="field" id="field_<?php echo $this->element->getId(); ?>"> <?php if (0 < strlen($this->element->...

2

Solved

I am quite confused how to use partialLoop Currently I use foreach ($childrenTodos as $childTodo) { echo $this->partial('todos/_row.phtml', array('todo' => $childTodo)); } $childrenTodo...
Corcyra asked 25/1, 2011 at 14:21

2

Solved

I'm trying to access a partial view in foo from another module bar. Simplified file structure: application/ modules/ foo/ index.phtml bar/ partial.phtml And in index.html you would have the...
Sybilla asked 8/4, 2011 at 19:53

1

Solved

What is a Zend View Filter? I see them mentioned in the ZF1 documentation, http://framework.zend.com/manual/1.12/en/zend.view.introduction.html, and in the Zend_View code, but I can't find an expla...
Shemeka asked 4/4, 2013 at 4:58

1

Solved

Does anyone know if PHPStorm has some builtin support for view helper autocompletion or a possibility to write a plugin for it. I don't want to use inline var definitions for this as this would be ...
Barto asked 28/2, 2013 at 15:1

6

Solved

Case: you're developing a site with Zend Framework and need relative links to the folder the webapp is deployed in. I.e. mysite.com/folder online and localhost:8080 under development. The followin...
Muna asked 11/3, 2009 at 18:12

1

Solved

I wrote a partial which I want to use in several modules. I thought the best way would be to put it into my custom library. But unfortunately I couldn't figure out a way to include this partial wi...
Whiles asked 21/12, 2012 at 13:46

3

Solved

I have a Controller that I want to use for ajax scripts to call and set session variables, get information, etc. How do I set it so that that particular controller doesn't use the default layout (s...

2

Solved

I have earlier asked this question, and I got good answers there. However, that was for beta4, and no longer works. So where and how do I add my own view helpers to ZF2?
Welles asked 9/7, 2012 at 9:47

2

Solved

NOTE: This is an old question and the answers here no longer works (since beta5). See this question on how to do it with ZF2 stable version. I have looked at this example from the manual. Note tha...
Crustal asked 16/6, 2012 at 11:16

3

Solved

I have a form that is extend from Zend_Form. I am placing the form into a ViewScript decorator like this: $this->setDecorators(array(array('ViewScript', array('viewScript' => 'game/forms/gam...
Enliven asked 25/1, 2010 at 19:44

4

Solved

I want to generate a dynamic site using Zend_Layout. My layout (/application/layouts/scripts/layout.phtml) contains the following lines: ... <body> <?php echo $this->render('header...
Singapore asked 21/8, 2009 at 22:11

2

Solved

I'm sure it's a simple one-liner, but I can't seem to find it. How can I use a different layout file for a particular action? Update: This worked for me, thanks! // Within controller $this->_...
Carnassial asked 23/10, 2009 at 21:20

3

Solved

I need help in understanding the actual actions of a helper function in Zend Framework. I need someone to explain to me what $this->escape($string) actually does to the string passed to it befo...
Cavein asked 18/12, 2009 at 0:0

3

Solved

This is my fork in the road. I want to display some sort of button on my webpage and I want to do it in many places. This 'button' is really just gonna act like a link to some other page and all ...
Arrive asked 25/5, 2011 at 1:39

© 2022 - 2024 — McMap. All rights reserved.